garssa85, to tech

We know that elite programmers have some secrets. Here are some of them. https://chat-to.dev/post?id=31 #programming #java #technology #python #javascript

garssa85, to linux
garssa85, to science

50 reasons why you might still consider PHP for building your websites. https://chat-to.dev/post?id=21

garssa85, to aaaaaaacccccccce

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

garssa85, to programming

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

garssa85, to linux

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

xiffu, to programming

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

#programming

xiffu, to programming

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

preslavrachev, to random
@preslavrachev@mastodon.social avatar

If you enjoy doing the , 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.

xiffu, to programming 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

#programming

Em0nM4stodon, to random
@Em0nM4stodon@infosec.exchange avatar

Is being a "minimalist programmer" a thing? 👀

As in a programmer who specializes in coding with as few external dependencies as possible. Or is this just generally frown upon?

lorddimwit, to random
@lorddimwit@mastodon.social avatar

Every time you write ‘0’ in the #C programming language, you’re writing an octal literal.

You’ve probably written more octal literals in C than literals in any other base.

Do what you will with this information.

EDIT: It is impossible to write a hashtag for the C programming language without making it look like I mistyped C#.

xsevy, to random Polish
@xsevy@mastodon.social avatar

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

preslavrachev, to random
@preslavrachev@mastodon.social avatar

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


#programming

valentinegb, to random
@valentinegb@hachyderm.io avatar
alexelcu, to random

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.

#programming

frankel, to random
@frankel@mastodon.top avatar

Oort is a " " where you write 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.

https://oort.rs/

sajberpank, to programming
@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.

veroandi, to random
@veroandi@mastodon.social avatar

"Symfony and Doctrine’s documentation has a slight flaw: they don’t use constructors for DTOs."

https://withinboredom.info/2023/08/11/symfony-doctrines-docs-has-caused-more-bugs-than-anything-else/

smartreviewsuks, to programming
blaise, to random
@blaise@hachyderm.io avatar

Is it weird that I feel completely comfortable with ?
I noticed that most of the folks 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 ?...."

codewiz, to random
@codewiz@mstdn.io avatar

Bjarne Stroustrup on delivering safe C++:

"First of all, we have to get people who are not up-to-date on C++ become up-to-date".

https://www.youtube.com/watch?v=I8UvQKvOSSw&list=PLHTh1InhhwT7gQEuYznhhvAYTel0qzl72&index=1

xiffu, to programming

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

#programming

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines