Quote:
Originally Posted by Somnius
I have heard that it is good practice to code in a way that allows a coworker to look at it and understand your objective as quickly as possible.
Don't aim so high. It's a good first step if you can read your own code after a couple of weeks (no this is not a snide remark or joke). so the first step should be to structure your code in a way that makes perfect sense to yourself.
Quote:
Originally Posted by candybar
I wouldn't waste much time trying to figure out a better way to solve this problem - just move onto harder problems.
I'm not sure I agree with this 100% of the time. There's value in perfecting mundane things and striving for that as a general mindset. Maybe I've spent too much time with Japanese coworkers* but when I'm at my best** I won't move on until I see no further improvements for now. Let me keep on dreaming about sushi
Interestingly it's also opposed to the general mantra of avoiding premature optimization if you take that mantra out of the algorithmic context.
*interesting aside: one of them would write a test, write some code, rinse repeat until he had a working version that covered the functional requirements (standard TDD) but then...delete everything and redo it. He used to say "before I send code to my review partner (for the commit) I rewrite it from scratch".
Strange might seem inefficient but he wrote very elegant code imo (often mindblowing yet simple). He told me that's how he always does it and sometimes he starts over a second time (also sometimes at different spots). He also did katas every morning which I hadn't seen before.
Needless to say he did everything tons faster than me despite the rewriting madness.
**rarely obviously
Quote:
Originally Posted by suzzer99
Quick survey: does anyone here actively program in Swing or any other Java client interfaces?
Intro classes here use javafx. Which is already strange to me because...mobile/WWW-world yo.
Last edited by clowntable; 05-04-2015 at 03:07 PM.