3 ms·
Sorry pal, if you write spaghetti code JS will bite you in the butt, but I've been coding for 20 years and I'm used to declare everything before using it and to
by Kilimanjaro 16y ago
Sorry pal, if you write spaghetti code JS will bite you in the butt, but I've been coding for 20 years and I'm used to declare everything before using it and to be very careful when choosing names for my stuff and never do silly equalities.
So no, I've never encountered such problems.
- codexon 16y agoPal, please learn how to read carefully. Nowhere did I complain about needing to declare things before using it. Having variables be global by default is really poor design. And about silly equalities, it will inevitably happen once your programs get bigger, and you become frustrated with a bug that has been suppressed through multiple function calls because Brendon Eich thought weak typing was a good idea.
- orangecat 16y agoYes, and I'm sure you never have memory management problems in C and are an above average driver. But for the mere mortals who occupy most development positions, having behavior silently and radically change when you forget a "var" is not a good thing.