Hackathons in 2024 are shaping up to be some of the most exciting yet. As technology continues to advance at a rapid pace, these events bring together the best and brightest minds to collaborate, learn, and create innovative solutions to real-world problems.
Validation of javascript forms - name, password, password retype validation and Number Validation
It is critical to check the user-submitted form since it may include incor- rect information. As a result, validation is required to authenticate the user. Because JavaScript allows form validation on the client side, data processing is faster than server-side validation.15 JavaScript form validation is preferred by the majority of web developers. We can validate name, password, email, date, cell numbers, and other data using JavaScript.
Example of Form Validation in JavaScript In this example, we’ll validate the name and password. The name cannot be blank, and the password cannot be less than seven characters long. On form submission, we validate the form. The user will not be sent to the next page unless the values entered are correct. https://chat-to.dev/post?id=12#programming#php#javascript
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
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#php#backend#programming
If you enjoy doing the #AdventOfCode, I’m happy for you. I still think, though, that we can come up with something that motivates people to program for 24 straight days, but with a little more impact for humanity or for their local community. I mean, algorithmic riddles are fun and all, but how about collectively solving sth where those algorithms fit a bigger picture?
Disclaimer: I have no idea what the challenges are this time. They may very well be what I’ve just explained.
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
any Insomnia alternatives which are not Postman? I need rest and graphql support.
Insomnia is getting worse and worse and I'm worried it won't be better. #programming@python@golang @opensource
My definition of what makes a senior developer has changed a few times over the years:
15 years ago: A senior is one who knows a lot about the tech and is versed in all the technical stuff.
8 years ago: Screw the tech - anyone can now google their way into what’s hot on the market. Seniority is all about the experience and the battle scars.
Lately: Experience is good to have, but is not the key. Becoming a senior requires being an excellent communicator. Communication is all
In principle, I know the advantages of dynamic type systems — treating code as data, or inventing types on the fly, based on runtime conditions. In practice, I've never seen any good use of dynamic type systems, only downsides.
Everything good about dynamic type systems has to do with tooling. The culture of simplicity, the REPL, the scripting, creating types based on external input (DBs, JSON files), etc. These are all great, yet nothing that a static language can't do better.
Oort is a "#programming#game" where you write #Rust code to control a fleet of spaceships. Your code is responsible for the engines, weapons, radar, and communications of ships ranging from tiny missiles to massive cruisers.
Is it weird that I feel completely comfortable with #git ?
I noticed that most of the folks #programming I run into are ill at ease when they interact with their repo.
The resources available tend to either
explain how (all of) git works.
Or
provide a few stanzas of incantations to accompany the ritual sacrifice.
I wonder if there's an audience for a "git therapist"?
"Do you think your struggles with merge conflicts may be rooted in early experience with svn ?...."
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
Top 5 Hackathons in 2024: A Must-Attend List for Tech Enthusiasts (chat-to.dev)
Hackathons in 2024 are shaping up to be some of the most exciting yet. As technology continues to advance at a rapid pace, these events bring together the best and brightest minds to collaborate, learn, and create innovative solutions to real-world problems.
Javascript code challenge (chat-to.dev)
If you have the answer please leave it here in the comments