Backend dev learning in public | Building real Node.js + MongoDB projects | JS โ APIs โ Backend mastery | #CodeNewbie | DM for collabs #100DaysofCode
I'm Ronald. Backend dev who codes because I love it ๐ฅ
Mastering JavaScript โ daily practice, real passion.
Every lesson, weird quirk, bug & win shared here. No fluff, just honest progress.
Come learn (and struggle) with me ๐
#100DaysOfCode#JavaScript#CodeNewbie#WebDev
Safer alternatives to eval() for your JS calculator ๐
โ Function() constructor
โ math.js library
โ Build your own parser
Same results. Zero security risks.
I'm going with a custom parser for v2 โ building it from scratch ๐ ๏ธ
#100DaysOfCode#JavaScript#WebDev
@heyyyyyieeee From the comments I've be able to gain an understanding on how this could happen, next time I'll be sure to double check my caching to avoid caching errors or mistakes.
Studied booleans today โ it was quite the study๐
But it clicked! JavaScript makes decisions just like us
if (hungry) { eat() }
true or false โ yet controls EVERYTHING your code does ๐คฏ
Weirdest thing that evaluates to false in JS? ??๐
#100DaysOfCode#JavaScript#CodeNewbie
@alaphati_t Mastering JavaScript fundamentals makes you a better JavaScript Developer l agree with that, which is why l took a step back to revise all JavaScript fundamentals, check out my page if you want to join me on the journey
@isha_singh06 Adding a feature could lead to rewriting a lot, and that's where Separation of Concerns (SOC) comes in, it makes these changes easier to carry out
@ritu_twts The starting point most of us all have, the point at which we we're motivated. Recalling this may just give some the strength required to continue when it gets hard
Studied booleans today โ it was quite the study๐
But it clicked! JavaScript makes decisions just like us
if (hungry) { eat() }
true or false โ yet controls EVERYTHING your code does ๐คฏ
Weirdest thing that evaluates to false in JS? ??๐
#100DaysOfCode#JavaScript#CodeNewbie
@codevsdev I'd say it all has a meeting point, learning never ends. At this point I'm learning and building, while engaging in job hunting and networking and of course getting some rest when required like now.
I'd love to connect with other techies
eval() made my calculator work beautifully ๐งฎ
Then I found out it can steal cookies, hijack browsers & execute ANY code a user types ๐ฌ
Convenient? Yes.
Dangerous? Very.
Tomorrow I'll show the safer alternative ๐
#100DaysOfCode#JavaScript#CodeNewbie
@smartnakamoura Shipping is very important, exposes a Developer to real life problem scenarios and also aids experience building. It promotes growth overall
@Hey_Sakshii Redis actually stands out, mostly for being a caching layer then it goes onto other functionalities which it could be used for such as rate limiting.
A really good one
@0xPrajwal_ Tghe concept behind ipv4 and ipv6 is something which developers may overlook especially at the beginning, but the cyber security analysts are well aware of them. One being 32 bit and the other 128 bit
Here's the core logic:
let calculation = '' calculation += '5 + 3' eval(calculation) โ 8
One string. One function. That's it
(v2 is coming โ it's going to be cleaner ๐)
#JavaScript
Built my first JS calculator today ๐งฎ
The trick? One variable + eval() handles ALL the math.
Spacing around operators matters more than you'd think ๐
Ever used eval() before? Drop your thoughts ๐
#100DaysOfCode#JavaScript#CodeNewbie