2 ms·
Based on experience. I don't mean things like indentation. I mean things like on http://thedailywtf.com/ http://thedailywtf.com/ One company I joined put all t
by muzani 6y ago
Based on experience. I don't mean things like indentation. I mean things like on http://thedailywtf.com/ http://thedailywtf.com/
One company I joined put all their database types as strings because it was most flexible. A lot of architecture types are bad - they're slower, inflexible, harder to read, harder to test. It works, but changing the color of an icon then takes 4 hours, and may possibly crash one of the screens.
There's also a lot of spaghetti code, god classes, people who hack things together until they work, instead of spending an hour reading the manual to find what the proper use is. For example, I've seen someone who wants to get location permissions install a whole map plugin and hide the map in the background, instead of just writing the code that requests location permissions.
I've got years of experience, and these days I'm spending an hour/day watching beginner programmer tutorials to unlearn a lot of the bad habits of the past.
- potta_coffee 6y agoNone of the problems you speak of are language specific habits, they're just generally bad programming habits. And those bad habits aren't proof that writing code isn't the best way to learn. Of course, you can't just write bad code forever and expect to get better, you have to analyze your results or get feedback somehow and improve your programming. It's basically like every other skill.
- gregjor 6y agoBased on experience (40 years programming) were just as likely to learn good habits and practices as bad ones. Of course daily WTF things happen and we all make fun of them, but there’s no site like that to post when something goes right. Programming is an ongoing learning process, and that means making mistakes and getting exposed to less than ideal solutions and habits along with the good ideas and practices. You can’t get either from tutorials or working on personal projects, because feedback and mentoring play a big part in making forward progress.