O
19

Had to pick between Python and JavaScript for my first real project

My friend in Austin dared me to build a basic website for his cat's Instagram page. I spent 3 days going back and forth between learning Python with Flask or just using plain JavaScript. I went with JavaScript because the tutorials seemed shorter, but I accidentally made a button that spams the page with 100 cat emojis when you click it once. Has anyone else picked a language for a silly reason and ended up with a weird bug?
3 comments

Log in to join the discussion

Log In
3 Comments
ruby_rivera76
I picked a language for the font once and got stuck for a week...
7
jesse_fisher
Why would you even consider Python for a front end website? JavaScript runs right in the browser, so it's the obvious choice for making buttons do things. Those shorter tutorials are a sign you picked the right tool for the job, even if you got a funny bug. Your friend wanted a website, not a server, so Flask would have been overkill from the start. The cat emoji thing is just a small loop mistake, not a language problem. Don't you agree that using the native tool is always better?
1
charles766
charles76618d ago
Honestly the cat emoji spam sounds like a feature, not a bug. You just made the world's most enthusiastic like button. Picking a language because the tutorials are short is a legit strategy, we've all been there. At least you didn't pick one for the font, that's a new level of pain. The real win is that your friend's cat now has a website that can crash a browser with pure joy.
1