Click here to Skip to main content
15,914,419 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: Code analysis Pin
Super Lloyd20-Nov-19 11:25
Super Lloyd20-Nov-19 11:25 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 2:56
CodeWraith19-Nov-19 2:56 
JokeRe: Code analysis Pin
lopatir19-Nov-19 4:09
lopatir19-Nov-19 4:09 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 4:22
CodeWraith19-Nov-19 4:22 
GeneralRe: Code analysis Pin
Sander Rossel19-Nov-19 5:33
professionalSander Rossel19-Nov-19 5:33 
GeneralRe: Code analysis Pin
Super Lloyd19-Nov-19 5:58
Super Lloyd19-Nov-19 5:58 
GeneralRe: Code analysis Pin
Sander Rossel19-Nov-19 8:43
professionalSander Rossel19-Nov-19 8:43 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 6:54
CodeWraith19-Nov-19 6:54 
Readability is overrated. You have a neat little pattern matcher between your ears that can reconstruct information that has been lost:
Quote:
H***o S****r, w*y d**'t y*u c**e o**r t****t f*r a b****r?


I hope I sucessfully fooled you into coming over and expecting a beer. Too bad that you did not see that there is one * too many for that word to mean beer. Just enjoy the beaver I am going to put on the grill for you. Smile | :)

There we are exacly at the problem. We are not writing poetry here and I can name a few things you should better care about before wasting a single thought on formatting or style. Deliberate obfuscation obviously is not very helpful, but you must see that your one and only style may be just as problematic or misleading for the next guy. That may even be a cultural thing. I would expect someone from Asia to be more likely to prefer to read in columns and not in rows. Do you really expect others to care for your 'poetry', even if it goes against their own one and only style?

If you feel the urge to write something, then write and maintain some comments where they really are needed, or better yet, a C^4 documentation. What's C^4? Concise, current, complete and clear. That will be very much more helpful than any subjective one and only style.

Do you want an example in minimalsim?

0000  7A
0001  3F 00
0003  7B
0004  30 01


This is a real little program, a sort of 'Hello World' that is entered to test a little computer after soldering it together. There is not very much room for styles or creativity. Just memory addresses, opcodes and data. And it is absolutely readable for me. It even in 1978 when I did not yet know the instruction set, but the 'short course in programming' and the comments in the code listing helped a lot.

Now, how much do you think I care about when someone writes something upper-, lower, camel- or even briefcase?
I have lived with several Zen masters - all of them were cats.

His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

GeneralRe: Code analysis Pin
Sander Rossel19-Nov-19 8:33
professionalSander Rossel19-Nov-19 8:33 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 9:31
CodeWraith19-Nov-19 9:31 
GeneralRe: Code analysis Pin
AFell219-Nov-19 5:42
AFell219-Nov-19 5:42 
GeneralRe: Code analysis Pin
lopatir19-Nov-19 4:19
lopatir19-Nov-19 4:19 
GeneralRe: Code analysis Pin
Sander Rossel19-Nov-19 8:46
professionalSander Rossel19-Nov-19 8:46 
GeneralRe: Code analysis Pin
User 1106097919-Nov-19 7:09
User 1106097919-Nov-19 7:09 
GeneralRe: Code analysis Pin
Sander Rossel19-Nov-19 8:46
professionalSander Rossel19-Nov-19 8:46 
GeneralRe: Code analysis - STYLE Pin
Semorád Jan20-Nov-19 23:53
Semorád Jan20-Nov-19 23:53 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 3:35
CodeWraith19-Nov-19 3:35 
GeneralRe: Code analysis Pin
Eddy Vluggen19-Nov-19 14:57
professionalEddy Vluggen19-Nov-19 14:57 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 21:13
CodeWraith19-Nov-19 21:13 
GeneralRe: Code analysis Pin
Marc Clifton19-Nov-19 4:34
mvaMarc Clifton19-Nov-19 4:34 
GeneralRe: Code analysis Pin
Super Lloyd19-Nov-19 5:47
Super Lloyd19-Nov-19 5:47 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 5:31
CodeWraith19-Nov-19 5:31 
GeneralRe: Code analysis Pin
Super Lloyd19-Nov-19 5:50
Super Lloyd19-Nov-19 5:50 
GeneralRe: Code analysis Pin
CodeWraith19-Nov-19 8:17
CodeWraith19-Nov-19 8:17 
GeneralRe: Code analysis Pin
Super Lloyd19-Nov-19 12:14
Super Lloyd19-Nov-19 12:14 

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.