Click here to Skip to main content
15,887,214 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: Any employers out here? Pin
Jeremy Falcon23-May-23 2:54
professionalJeremy Falcon23-May-23 2:54 
GeneralRe: Any employers out here? Pin
Sander Rossel23-May-23 3:24
professionalSander Rossel23-May-23 3:24 
GeneralRe: Any employers out here? Pin
Jeremy Falcon23-May-23 7:32
professionalJeremy Falcon23-May-23 7:32 
GeneralCCC 17-05-2023 Pin
pkfox16-May-23 21:29
professionalpkfox16-May-23 21:29 
GeneralRe: CCC 17-05-2023 Pin
OriginalGriff16-May-23 21:37
mveOriginalGriff16-May-23 21:37 
GeneralRe: CCC 17-05-2023 - Winner !!! Pin
pkfox16-May-23 21:51
professionalpkfox16-May-23 21:51 
GeneralRe: CCC 17-05-2023 - Winner !!! Pin
OriginalGriff16-May-23 23:06
mveOriginalGriff16-May-23 23:06 
GeneralIn defense of spaghetti code. *ducks* PinPopular
honey the codewitch16-May-23 15:43
mvahoney the codewitch16-May-23 15:43 
I ran into an issue recently on a professional embedded project, and that was this:

In translating the flow diagrams to code, there were so many conditions around state changes and such that my options were to either abstract the flow with some sort of generalized framework, or cook some spaghetti code.

I chose the latter.

Why? Simple. The actual effort if anything would be about equal, or favor the spaghetti approach.

More importantly, progress remains visible with the spaghetti approach rather than the abstract flow framework which requires a lot of up front design and work without progress visible to the client.

Finally, this is embedded code, where a rewrite is maybe a grand or two $USD, on the outside, assuming not a lot of reuse. It would cost at least half that to develop a simple framework, which might make things more maintainable, but questionable in terms of how effortlessly one can make changes (whereas maintainability is more about stepping away for a month and being able to pick it up again, mostly - or someone else picking up your code). It's all a matter of robbing peter to pay paul.

The bottom line here is that while we may chase perfect code, and "best practices" that's not always the most effective technique for keeping the lights on.

Flame away.
To err is human. Fortune favors the monsters.

GeneralRe: In defense of spaghetti code. *ducks* PinPopular
jmaida16-May-23 16:32
jmaida16-May-23 16:32 
GeneralRe: In defense of spaghetti code. *ducks* Pin
Daniel Pfeffer16-May-23 19:08
professionalDaniel Pfeffer16-May-23 19:08 
GeneralRe: In defense of spaghetti code. *ducks* Pin
honey the codewitch16-May-23 19:14
mvahoney the codewitch16-May-23 19:14 
GeneralRe: In defense of spaghetti code. *ducks* Pin
Bruno van Dooren16-May-23 22:27
mvaBruno van Dooren16-May-23 22:27 
GeneralRe: In defense of spaghetti code. *ducks* Pin
honey the codewitch17-May-23 2:28
mvahoney the codewitch17-May-23 2:28 
GeneralRe: In defense of spaghetti code. *ducks* Pin
Nelek17-May-23 8:39
protectorNelek17-May-23 8:39 
GeneralRe: In defense of spaghetti code. *ducks* Pin
jmaida17-May-23 19:20
jmaida17-May-23 19:20 
GeneralRe: In defense of spaghetti code. *ducks* Pin
Jeremy Falcon17-May-23 1:44
professionalJeremy Falcon17-May-23 1:44 
GeneralRe: In defense of spaghetti code. *ducks* Pin
dandy7217-May-23 3:14
dandy7217-May-23 3:14 
GeneralRe: In defense of spaghetti code. *ducks* Pin
jmaida17-May-23 15:23
jmaida17-May-23 15:23 
GeneralRe: In defense of spaghetti code. *ducks* PinPopular
Ravi Bhavnani16-May-23 20:15
professionalRavi Bhavnani16-May-23 20:15 
GeneralRe: In defense of spaghetti code. *ducks* Pin
honey the codewitch17-May-23 0:06
mvahoney the codewitch17-May-23 0:06 
GeneralRe: In defense of spaghetti code. *ducks* Pin
Jeremy Falcon17-May-23 1:43
professionalJeremy Falcon17-May-23 1:43 
GeneralRe: In defense of spaghetti code. *ducks* Pin
honey the codewitch17-May-23 2:02
mvahoney the codewitch17-May-23 2:02 
GeneralRe: In defense of spaghetti code. *ducks* Pin
Jeremy Falcon17-May-23 4:16
professionalJeremy Falcon17-May-23 4:16 
GeneralRe: In defense of spaghetti code. *ducks* Pin
honey the codewitch17-May-23 4:21
mvahoney the codewitch17-May-23 4:21 
GeneralRe: In defense of spaghetti code. *ducks* Pin
Eusebiu Marcu18-May-23 0:21
Eusebiu Marcu18-May-23 0:21 

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.