Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Practice. Practice. Language mastery. Learn the language to wield it as an extension of your brain. Books. Computer science. Learn what the computer does in the back. Learn efficient data structures and algorithms, that are used virtually everywhere.
-
osterr1697yIn terms of doing everything shorter.
1. Write code
2. Analyze what can be done faster (e.g. search for appropriate functions)
3. Rewrite
4. Go to no. 2 -
devios157707yIf you really want to get good at it, you need to obsess over it. If seeing unoptimal code makes you cringe, you're on the right track. :)
-
I've always looked for some magic pill to programming, but the truth is there ain't any. you gotta practice your ass off and build stuff. period
-
Reading other people's code also helps. It let's you see different ways of doing things (you're already doing that so you're on the right track), and practice....a lot
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
How did you learn to think "like a programmer"?
I am starting to learn C++ and I am trying it out on exercism. I am really at the beggining but when I make it work after so much frustration(based on devrant posts I guess that's part of the job) I always see people having shorter/better/more effective codes which makes sense to me but I wouldn't thought of it that way.
Is there way to make such thinking better or does it simply come with practice ?
undefined
c++
not a rant
begginer