Click here to Skip to main content
15,887,267 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: What's your least favorite part of coding? Pin
StarNamer@work27-Aug-23 13:41
professionalStarNamer@work27-Aug-23 13:41 
GeneralRe: What's your least favorite part of coding? Pin
Mircea Neacsu27-Aug-23 14:13
Mircea Neacsu27-Aug-23 14:13 
GeneralRe: What's your least favorite part of coding? Pin
StarNamer@work29-Aug-23 0:02
professionalStarNamer@work29-Aug-23 0:02 
GeneralRe: What's your least favorite part of coding? Pin
Mircea Neacsu29-Aug-23 1:29
Mircea Neacsu29-Aug-23 1:29 
GeneralRe: What's your least favorite part of coding? Pin
jmaida27-Aug-23 15:04
jmaida27-Aug-23 15:04 
GeneralRe: What's your least favorite part of coding? Pin
Sander Rossel27-Aug-23 21:34
professionalSander Rossel27-Aug-23 21:34 
GeneralRe: What's your least favorite part of coding? Pin
Mircea Neacsu28-Aug-23 1:28
Mircea Neacsu28-Aug-23 1:28 
GeneralRe: What's your least favorite part of coding? Pin
Sander Rossel28-Aug-23 2:25
professionalSander Rossel28-Aug-23 2:25 
Mircea Neacsu wrote:
but that's not something I could blame on my profession
Part of the job, I guess.
Mircea Neacsu wrote:
Hopefully, most programmers who hang out in their spare time at a coding site, do enjoy their profession.
I do Smile | :)
Mircea Neacsu wrote:
Really? I imagine you provide your customer with some type of manual or instructions.
None whatsoever.
My code is custom made for every customer so they know exactly what they're getting.
I get an occassional call like "Sander, if I press this button will it do x or y?", but that happens maybe once a year.
Mostly because all buttons are pressed on a weekly basis so people know what they do.

I've written plenty of manuals in the past and I think none of them were ever read.
Even with a manual, it's easier for my customer to call me than it is to find and read the documentation.
At one time the customer even requested a help menu, accessible from an "info-button" at the top right of the form.
We documented the entire form and added the button.
The only one who pressed it was me when they called "what does this do?" Laugh | :laugh:

One time a customer told me "I didn't know what to expect, but I opened it and I just knew where to go because the software is so intuitive."
Mircea Neacsu wrote:
if other colleagues need to look at your code, I'm not sure they enjoy the experience.
I recently got a new junior employee and he had little trouble working through my code.
It's not that hard either, you POST a form and end up in the OnPost method and you can figure it out from there.
A few if-statements, a for-loop, some validations, save something to the database... Nothing too complicated.
I have the advantage that most of my code has a GUI, which means most of the funtionality has a visible component, which also makes debugging a bit easier (there's always a clear entry point, like a button click).
Some of my code is a hassle to work with, but I wouldn't even know how to begin to describe it.
Just set a breakpoint and walk through the code line by line, I guess.
That's really the only sure way to know what code does.

Reversed, I never read documentation either.
If I have to read lots of documentation just to understand what's going on, it's probably bad code and the documentation would be just as bad.
On that note, writing good documentation is a skill in and of its own and few people know how to do it well.
I sometimes make a diagram when I have more than a few applications that make up a product.
Mircea Neacsu wrote:
I don't know what type of code you are writing. It might be your case, but in my world tests do matter. I do complicated math stuff and I want to make sure it works for all acceptable inputs.
Mostly LOB applications.
I really don't need to test that a button click results in some entity being validated and saved to the database.
I manually tested it and it works.
Every update probably works too, unless you're a huge nitwit who not only broke simple existing code (which usually means deleting it), but also didn't test it.
Let's put it this way, I've worked on such applications for 14 years and it broke maybe once or twice (not to say I don't have issues in production, I do, but rarely something a unit test would catch).

On top of that, I've seen such badly unit tested code (like unit tests that asserted an exception was being thrown because a class wasn't properly constructed in unit tests!) that I've come to believe most people simply don't understand testing, like writing documentation, and ultimately ends up being a lot of wasted time.
Don't even get me started on coverage!
Having a minimum test coverage is like saying programmers should write x lines of code a day.

That's not to say I dismiss all unit testing and that I've never applied it myself, but all in all, it's mostly not worth it for me (I do have a few unit tested classes).

Seriously, I don't get the fuss about documentation and unit testing (or commenting code for that matter, which has all the same problems documentation has, but it's even harder).
I think it's applicable to only specific branches/use cases, like your math-heavy applications.
Someone, sometime, decided that documenting/unit testing was a best practice and everyone just went along with it (just like scrum Dead | X| ).
Mircea Neacsu wrote:
Some of the code I wrote has been in use for 10-15 years and that's because of a combination of being well-documented and properly tested.
I know some bad programmers who don't even know what unit testing is and who don't document a thing, and their code's been running for 20-30 years (yes, still VB6, sometimes even with a dBase database).
Those applications were recently ported to .NET 2.0 (because the programmer didn't know any better) and SQL Server.
Somehow that's possible even without documenting and unit testing (or proper programming knowledge)! Smile | :)

GeneralRe: What's your least favorite part of coding? Pin
Mircea Neacsu28-Aug-23 2:50
Mircea Neacsu28-Aug-23 2:50 
GeneralRe: What's your least favorite part of coding? Pin
Sander Rossel28-Aug-23 3:17
professionalSander Rossel28-Aug-23 3:17 
GeneralRe: What's your least favorite part of coding? Pin
Mircea Neacsu28-Aug-23 3:28
Mircea Neacsu28-Aug-23 3:28 
GeneralRe: What's your least favorite part of coding? Pin
honey the codewitch28-Aug-23 8:16
mvahoney the codewitch28-Aug-23 8:16 
GeneralRe: What's your least favorite part of coding? Pin
Richard MacCutchan27-Aug-23 6:43
mveRichard MacCutchan27-Aug-23 6:43 
GeneralRe: What's your least favorite part of coding? Pin
0x01AA27-Aug-23 7:21
mve0x01AA27-Aug-23 7:21 
GeneralRe: What's your least favorite part of coding? Pin
Richard MacCutchan27-Aug-23 21:38
mveRichard MacCutchan27-Aug-23 21:38 
GeneralRe: What's your least favorite part of coding? Pin
kmoorevs27-Aug-23 7:51
kmoorevs27-Aug-23 7:51 
GeneralRe: What's your least favorite part of coding? Pin
lmoelleb27-Aug-23 8:58
lmoelleb27-Aug-23 8:58 
GeneralRe: What's your least favorite part of coding? Pin
honey the codewitch27-Aug-23 9:52
mvahoney the codewitch27-Aug-23 9:52 
GeneralRe: What's your least favorite part of coding? Pin
lmoelleb28-Aug-23 2:08
lmoelleb28-Aug-23 2:08 
GeneralRe: What's your least favorite part of coding? Pin
Gerry Schmitz27-Aug-23 9:07
mveGerry Schmitz27-Aug-23 9:07 
GeneralRe: What's your least favorite part of coding? Pin
honey the codewitch27-Aug-23 9:51
mvahoney the codewitch27-Aug-23 9:51 
GeneralRe: What's your least favorite part of coding? Pin
Slacker00727-Aug-23 9:40
professionalSlacker00727-Aug-23 9:40 
GeneralRe: What's your least favorite part of coding? Pin
honey the codewitch27-Aug-23 9:44
mvahoney the codewitch27-Aug-23 9:44 
GeneralRe: What's your least favorite part of coding? Pin
Chris Maunder27-Aug-23 12:18
cofounderChris Maunder27-Aug-23 12:18 
GeneralRe: What's your least favorite part of coding? Pin
David O'Neil27-Aug-23 12:30
professionalDavid O'Neil27-Aug-23 12:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.