programming

garssa85 ,

what rules do you use to name your functions in javascript, python or php? that's the way I use it ;-) https://chat-to.dev/post?id=20

xiffu ,

why node.js makes me uncomfortable
I've always programmed with php for the web and during that time I've never needed to download packages (like npm) and update them. When I needed a specific function, like sending emails, uploading files or making my application drier, I just had to look at the documentation and implement it. But with node.js it doesn't work like that, and that bothers me. If I'm wrong, please correct me

xiffu OP ,

my biggest fear in all this is the malware spreading around :/

xiffu , Portuguese

How do you start your applications once the idea has been created? Do you implement the screens first and then work on the backend, or do you build the backend first and then take on the visual part (the screens)?

RagnarokOnline ,

I do model first, then backend, then I normally pause to get a bit of the front end done and do some testing.

Then I tweak from there. It’s kind of like I “sneak up” on my final final solution with adjustments to the MVC.

That’s the process is if I’m building something and already have a clear idea of what stakeholders want. If that’s unclear, I start with mockups of screens and ship them off for approval.

What do you do?

irmoz ,

Start with a dummy backend with hardcoded values, then make a frontend to display and manipulate thos values. Once that’s done, create the real backend, and maintain from there

xiffu ,

i'm thinking of programming a simple news aggregator, what technologies do you recommend for the backend?

DmMacniel ,
@DmMacniel@feddit.de avatar

Of course, never let others tell that your tools are bad and you should feel bad. Just make sure to keep your tools and wits sharp and follow the latest security guidelines to keep you and your users safe.

xiffu OP ,

@DmMacniel that's right. i've been getting better at it and bringing in more and more new tools. thanks

Deykun ,
@Deykun@kbin.social avatar
bewayas168 ,

F4nsix - Free URL Shortener. No Sign up required
https://www.f4nsix.xyz

readbeanicecream ,
@readbeanicecream@kbin.social avatar

IBM’s generative AI tool aims to refactor ancient COBOL code for its mainframes: Humans are still "in the driver's seat," but it could make code more modular.
https://arstechnica.com/information-technology/2023/08/ibms-generative-ai-tool-aims-to-refactor-ancient-cobol-code-for-its-mainframes/

HarkMahlberg ,
@HarkMahlberg@kbin.social avatar

Shout out to Paint.net! Great software, but it's almost 20 years old and still doesn't have an Autosave feature. The forums are full of people begging for this feature for years and they still haven't added one. Their response is the classic "you should save more often."

I've started using LibreOffice and it likes to crash on my PC pretty regularly. It's kind of a pain to have to re-open my document every half hour, but it never fails to recover exactly where I left off.

Anyway. Autosave. Good feature.

HarkMahlberg OP ,
@HarkMahlberg@kbin.social avatar

Speaking of, PDN has the Edit History, which is a really useful feature too! Why can't that be saved to a supplementary file so I can keep my history when I close and re-open my image? That would be pretty slick.

myofficialaccount ,

I guess such sidecar files are annoying for the gros of users. A configurable option for it might be an idea though.

neuraltimes ,
@neuraltimes@kbin.social avatar

Talk to your News Reporter with our Entirely Automated AI-Aggregated News Site

You can now ask our AI questions about the news article. The AI is given context from all the aggregated articles which include 2 left, 2 right, and 2 center. We do this by vectorizing each article and storing them in a *vector database called pinecone. You now have access to significantly more information for top news stories. This feature is currently in beta and may not function perfectly. We would love to hear your feedback

neuraltimes ,
@neuraltimes@kbin.social avatar

Completely Automated, AI-Powered Newsletter: Top Headlines in Politics, Events, Technology, and Business

Hello Everyone!

I'm excited to announce my newest project - an entirely automated Top Headlines Newsletter, powered by GPT-4. Top news that is picked and written entirely by AI is delivered to your inbox every morning at 9 AM PST.

Our system is** fully automated**, taking care of everything from selecting topics to sending the newsletter. This means that if I were to die today, you would still receive a newsletter every morning.

Our newsletter is integrated with our site, and all stories use 2 left, 2 center, and 2 right wing sources (characterized by AllSidesMedia).

I truly think that AI can revolutionize how we consume news, from mitigating polarization, stopping misinformation spread, and minimizing bias. Please let me know your opinions below!

https://www.neuraltimes.org/newsletter

xiffu ,

Callbacks

We can achieve asynchronous programming in JavaScript if we use the callbacks. A callback is a function that is passed as an argument to another function. The idea of the callback function is ‘I will call you back later’. You should know that the functions in JavaScript are executed in the sequence they are called, not in the sequence they are defined in. Okay, without confusing you, I will start from the beginning, why sequence control is so important in JavaScript. The sequence of control allows us to control the sequence when a function needs to be executed. For example, let us say that we want to create a function that will do some basic arithmetic operation like the sum of two integer numbers. After the function returns the result, we want to call another function to display the result to the user. So now we have two functions, one mainly for calculation, and the other is to display the user the result. Therefore we know their sequence of execution. Of course, you cannot start showing the results without first calling the calculation function. Here is the entire example: https://www.chat-to.dev/post?id=13

xiffu ,

use any fonts you like on your web pages thanks to this recipe.

Although web browsers come with a reasonable range of default fonts, they don’t always provide the look you need for a particular web site. In such cases, you usually must resort to calling up a graphic editor and creating logos or headlines there. However, with this recipe all you have to do is upload the TrueType fonts you wish to use to your web site and you can then display text in these fonts by having the GD library convert it on the fly to GIF images.
https://chat-to.dev/post?id=9

xiffu , Portuguese

When accepting user input for redisplay, and particularly if it will be inserted into a database, it’s important that you sanitize the input to remove any malicious attempts at hijacking your server, or otherwise injecting unwanted MySQL commands, HTML, or JavaScript. https://chat-to.dev/post?id=6

sajberpank ,
@sajberpank@kbin.social avatar

The best part about studying at university is the solidarity of seeing others in the building at 11 pm on a sunday.

smartreviewsuks ,
  • All
  • Subscribed
  • Moderated
  • Favorites
  • wartaberita
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KbinCafe
  • Ask_kbincafe
  • TheResearchGuardian
  • oklahoma
  • Testmaggi
  • Socialism
  • SuperSentai
  • KamenRider
  • feritale
  • All magazines