Coding-Style Poll

Started by
63 comments, last by BBeck 7 years, 6 months ago

Well nothing really. Every new project I start has a slightly new standard however this is only due to learning something new that I feel is standardized and being too lazy to redo code in older projects. There is problably nothing I cannot get used simply because I don't have a well defined way of doing thing because I'm always trying to add better habits.

Advertisement

@L. Spiro (how do i reference him)? Have you decided something already?

I've completely given up on self-maintaining a code style. I require the tab character behave as indentation, because indentation is what tab does. (I'm looking at you, Stanza and Python. You can either accept One Space or One Tab, 'cause I'm not slapping the space key two, four, or eight times just to make your anal-retentive developers happy).

But whether I'm using visual layout style I like or not, every time I or anyone else working on one of my projects hits "Save," a code beautifier/formatter is run on the file first, because inter-developer inter-temporal source control consistency is, in the long term, more important than subtle tweaks to persnickety readability quirks. If you can't automate enforcement of your coding guidelines, they're not worth enforcing.

RIP GameDev.net: launched 2 unusably-broken forum engines in as many years, and now has ceased operating as a forum at all, happy to remain naught but an advertising platform with an attached social media presense, headed by a staff who by their own admission have no idea what their userbase wants or expects.Here's to the good times; shame they exist in the past.

@L. Spiro (how do i reference him)? Have you decided something already?

We have released the first draft of the standards and they have been well-received so far.


L. Spiro

I restore Nintendo 64 video-game OST’s into HD! https://www.youtube.com/channel/UCCtX_wedtZ5BoyQBXEhnVZw/playlists?view=1&sort=lad&flow=grid

I've been fortunate enough that I don't have anyone telling me how to code or how not to code. I do a lot of tutorial stuff, and even at work I wasn't hired to be a programmer and so I'm pretty much the only real programmer in our IT department. No one else even knows enough to really care to review my code. For example, the mail server administrator isn't going to worry about my code. And as long as I don't eat up all the network bandwidth, neither are the network administrators.

I would probably be very annoyed if someone told me I have to do something differently. I do things the way I do for a reason. I haven't had that happen since I was coding for minimum wage forever ago when I was just starting out.

But as a professional, I think it's par for the course. Having readable code is paramount for the project and some programmers my go a bit crazy if not reined in. I would expect that I would have to conform to someone else's standard. And truthfully, I would probably learn to like it over time. A lot of my way of doing things is because I've always done it that way. I use Pascal case because Pascal was the first language I got formal training in and now I code everything from Python, to C++, to PowerShell in Pascal case. I strongly believe in having that bracket on it's own line, because it's 1,000 times more readable that way. In short, I'm highly opinionated and have my own style. But quite a bit of it probably comes from merely being used to doing it that way. If forced to do it another way for a long period of time, I would probably get used to it and then insist on coding everything that way from then on. Regardless, I think if you want a job you conform to whatever style the company wants no matter how much you hate it. But having some dialog to allow some discussion on it would be nice.

This topic is closed to new replies.

Advertisement