Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)XI
Posts
23
Comments
7
Joined
2 yr. ago
Programming @kbin.social
xiffu @kbin.social

Callbacks

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 canno

Python @lemmy.ml
xiffu @kbin.social

Lets create a short tutorial on how to connect, create a table and insert data in SQlite with Python

Programming @kbin.social
xiffu @kbin.social

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

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

Programming @kbin.social
xiffu @kbin.social

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,

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

Programming @kbin.social
xiffu @kbin.social
Internet @kbin.social
xiffu @kbin.social

which 5 websites have you used and would you like to see them back?

which 5 websites have you used and would you like to see them back?

internet

WebDev @kbin.social
xiffu @kbin.social

which 5 websites have you used and would you like to see them back?

which 5 websites have you used and would you like to see them back?

webdev

WebDev @kbin.social
xiffu @kbin.social

help me evaluate please. how much should i pay for a blog like this https://playstationcouch.com ? but focused on economics

webdev

WebDev @kbin.social
xiffu @kbin.social

five alternatives to reddit, easy to use. does anyone know them?

five alternatives to reddit, easy to use. does anyone know them?

webdev

Mac Gaming @kbin.social
xiffu @kbin.social

FANTASTICO! this site led me to learn more about the BOSSES ;) in video games

FANTASTICO! this site led me to learn more about the BOSSES ;) in video games
i've changed the appearance (layout) of the biggest video game site. do you know it? https://playstationcouch.com

macgaming

WebDev @kbin.social
xiffu @kbin.social

i have a website that gets 120 visits a day. my niche is video games. how can i monetize it?

i have a website that gets 120 visits a day. my niche is video games. how can i monetize it?

webdev

Programming @kbin.social
xiffu @kbin.social

why node.js makes me uncomfortable

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

Moving to: m/AskMbin! @kbin.social
xiffu @kbin.social

does anyone know of a deepweb social network?

does anyone know of a deepweb social network?

AskKbin

Programming @kbin.social
xiffu @kbin.social

could someone mention some social networks on the deepweb? i'm very interested in spreading the word about my applications there. i know it's a pretty toxic environment, but it can also be an open doo

could someone mention some social networks on the deepweb? i'm very interested in spreading the word about my applications there. i know it's a pretty toxic environment, but it can also be an open door to new challenges.

programming

Programming @kbin.social
xiffu @kbin.social

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 (

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)?

programming

WebDev @kbin.social
xiffu @kbin.social

How can I improve the design of my websites? I'm really bad at it

How can I improve the design of my websites? I'm really bad at it

webdev

Programming @kbin.social
xiffu @kbin.social

I don't like using frameworks in my applications

i've been programming for some time and i've always had a solid command of the language i program in. will i have a problem creating complex and scalable applications because i don't use frameworks?

Programming @kbin.social
xiffu @kbin.social

I don't like using frameworks in my applications

i've been programming for some time and i've always had a solid command of the language i program in. will i have a problem creating complex and scalable applications because i don't use frameworks?

Programming @kbin.social
xiffu @kbin.social

i have a good knowledge of pure php and i've never liked using frameworks. can i build large, scalable systems?

i have a good knowledge of pure php and i've never liked using frameworks. can i build large, scalable systems?

programming

Programming @kbin.social
xiffu @kbin.social

i programmed this site (https://paternidade.app) and it's in portuguese, but i've had very few subscribers. do you think i should change it to english and get more subscribers

i programmed this site https://paternidade.app and it's in portuguese, but i've had very few subscribers. do you think i should change it to english and get more subscribers or should i change something else on the site? help me

programming