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
-
Johnni3297yComment everything in our code. Every line, every variable, just everything. So when others read your code, they understand it.
Welcome to devRant, you will like it. 😇 -
gorsamp19547yIf you ask someone for help, don't just go do it your own way without even trying the other person's idea.
-
Don't comment everything you write. Just pick meaningful names for variables, functions etc so we won't have to read your code and your comments.
-
rfc716828077yWelcome to devRant. :)
Use version control. Try to have a good fun/frustration ratio when coding. Talk to ducks. -
Wack63117yThere are two things a dev should do/know. The first one is to stay DRY and the other is to always KISS.
DRY = Don't Repeat Yourself
If you write something twice, with just different "parameters", make a function out of it.
KISS = Keep It Simple Stupid
Don't over engenieur things. Remember the java joke: "you have a problem" - "you decide to solve it with java" - "you have a problem factory now" (not much hate against java ;)). But honestly if there's a simple solution, that respects the DRY principle go for it.
In general: don't reinvent the wheel. For most things, there's a library/package/gem/binary whatever out there. Don't spend hours implementing something that is already out there.
However, if you try to learn stuff, do reinvent the wheel. Invent it and then take a look at others solutions, compare it, try to understand why they did it that way.
And most important don't forget your side projects. Nomatter if you're a student or work for a company, the joy is where you can build whatever you like without any pressure!
So gl, hf (good luck, have fun) -
imacat1707yBe curious. If you search for something and find a snipped of code that does what you want, don't just copy / paste it blindly, try and figure it what that code really does, and how it does it.
Documentation is your friend. -
joykill3437yLearn about version control (most likely git but hey there are alternatives if you really want) as there is no greater relief than doing a major screw-up in a project and realising you can get to an earlier, happy place where everything was still working.
Comment your code, getting back in to a project after a while (you or someone else) and having to figure everything out again just sucks.
Never stop learning, always challenge yourself to improve as the world of coding is for most parts a really fast changing world.
That's my 3 cents 🙃😉 -
Wack63117yIf you work somewhere every one will hate to work on the legacy code. The legacy code will be by there words awfule. However dive into it, and compare it to the real code you and your coworkers write now. That way you understand what the reason was back then and why it's not done that way anymore.
-
suprano38307yLooks like everyone has told you everything except use TABS over SPACE. 😁 By the way, welcome to devRant and enjoy your stay.
-
suprano38307y@Wack haha. Letting her know which side she has to be on when she sees such war on here.
-
Wack63117yWell... I mean... I'm a simple guy.... There are 3 thruths
Tabs over spaces,
only russians are prejustices
And ghe third one I've forgot
But honesgly. If given the chance tabs are king, but then again I really dont get the fuss (python devs excluded from discussion!) -
suprano38307y@Wack haha easy on yourself man. It's just a joke. I personally prefer tabs but I don't give a crap of whatever someone else uses.
-
own your mistakes and shortcomings in your code as well as personality. be open and honest about them instead of trying to hide them or blame them on someone else. it helps you to learn faster, and helps your bosses to place you better, give you the tasks you are better suited for, and generally makes stuff easier and better for everyone.
-
First of all welcome to devRant! :)
What's your favourite programming language? -
bearcode237y@404response Only used Java so far since I’m a newb so I can’t have an opinion. But I want to start learning another soon.
Related Rants
I’m a devRant virgin and also a new dev so...
Anyone got any general tips for a newbie? For example, what are some bad habits that newbie devs should avoid picking up? Good habits?
question
general advice
advice