Why is it that python code always feels like it needs way less indentation and feels like the logic can be implemented much simpler. Or is it #django that makes this feel like it.
@fabian yep, compared to #JS. Sorry didn't say that, but I meant it, yes.
I somehow write nicer code without thinking much in Python, in JS I screw up code (beauty) a lot easier and faster.
So Kitten’s build process (i.e., the time it takes to build Kitten itself) takes ~0.7 seconds on my ~1 year old desktop (Ryzen 7 5700G 3.8Ghz) vs ~1.4 seconds on my ~3-year-old Starlabs LabTop (renamed to the Starbook thanks to a suggestion by yours truly but sadly, not quickly enough).
So, in summary, it’s bloody fast for something that results in a ~9MB bundle.
@aeveltstra server side rending is a valid approach. i started with @astro and @solid_js . however, from what i guess, server side rendering is more cost intensive than static html
Started writing a decision log for our #DesignSystem. Documenting why we chose to build plain ol' #HTML and #CSS where we can and #WebComponents where client-side #JS is needed is turning into a bit of a manifesto. Essentially we're using (and encouraging others to use) #ProgressiveEnhancement 😉
On s'occupe de la partie serveur du site de loterie à partir de 10h30 sur ma chaîne #Twitch. Codage en #PHP maintenant que la partie #HTML/#CSS et #JavaScript est bouclée.
Hier j'ai fait un peu de #JS, ce ne fut pas si laborieux que ça. Voici comment seront choisis les numéros de ticket de loterie par les participants : https://youtu.be/vdTp7XzNmBE
The more I'm thinking about it, the more I consider it.
I want to add a map for my bicycle rides, but I can't find any good PHP maps. The PHP versions of Leaflet on GitHub are no good. They don't work at all. They just gives you errors like "can't load class" or something like that.
So even if I am against it only to challenge myself, I consider using Leaflet in JS for airikr.me/biking.
Or do you have any solution in PHP that works out of the box?
Last month's exclusive video at The Spicy Web demonstrating a CodePen example of Signals—what they are, how they work, and why frontend frameworks and fans of vanilla #JS alike are adopting them rapid-fire—is now available to view for free! Check it out:
Modern current code should run asynchronously if possible and useful. Slowly but steadily, it is being implemented in almost all popular programming languages, including WebDev.
7 JavaScript language elements every developer needs:
Here's what beginning and experienced developers need to know about working with JavaScript's array, for loop, forEach, map, reduce, substring, and switch.
We just released Execa 9, which is our biggest release so far.
If you're currently using Execa, you should check out the new features! Also, if you're currently using zx or Bun shell, you might be interesting in this alternative.
I want to pair with someone to try to understand how I can fix a few things on my site. Preferably with someone who knows more #11ty and #JS than I do. This might take an hour on a call. You don't have to turn video on.
In return, I'll curate a list of five recipes according to your food preferences. Or teach you something in photography or food!
Як працюють компіляція та виконання коду👇
🔸Компілювані мови (#C, C++, #Go)
Вихідний код перетворюється компілятором на машинний. Машинний код виконується безпосередньо процесором.
🔸Байт-код (#Java, C#)
Вихідний код компілюється у байт-код, а потім JVM виконує програму. Іноді JIT-компілятор компілює вихідний код у машинний, щоб прискорити виконання.
🔸Інтерпретовані мови (#Python, #JS, #Ruby)
Тут для виконання програми не потрібен машинний код, натомість програму рядково виконають інтерпретатори.