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
-
Before doing any sort of refactoring, ask yourself one question how many people will read your code?
Company usually use tools like resharper, and have very specific rules on how to structure your code. -
nightowl6987y@sunfishcc At work when I do development its generally only myself and maybe one or two others that will look at the code. Mostly me though. We don't have specific rules in place for coding standards for the stuff I work on. I do try to comment my code well at the very least.
-
nightowl6987y@Hastouki Just C++ in general. I've not used any of the new features. Actually I could extend this problem to any OO language, but its usually most apparent when I'm trying to use C-based APIs with C++ so try to wrap things in classes etc. I have less of that problem with scripting languages etc.
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
devmonster84My friend said an intern designed this UI for an internal site. No. Just... no
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
Every time I try and write C++ code, I end up getting annoyed with my approach and trying several different ways to structure my code before giving up and reverting to writing the exact logic I need in C.
It is most likely due to lack of experience with writing C++ programs, and one day I'm sure I will finally work out how to apply the right patterns at the right time and find it quicker and easier to write good code. But for now, I use C since it is very easy to bend into whatever shape I desire.
rant
c++
object-oriented
patterns
design
frustration