Developer, Researcher & Author
@pragprog Author of http://java.by-comparison.com
Software Craftsman and #CleanCode Evangelist
@pragprog Author of http://java.by-comparison.com #Java #BestPractices
Software Craftsman and #CleanCode Evangelist
@pragprog Author of http://java.by-comparison.com #Java #BestPractices
How much do you shorten the code? When I was still working for my MSc, I took some UG modules, too. I found a lot of people there would ask for advice about a bit of code and I could often simply delete about 50% of it.Simon Harrer wrote:. . . code from Java beginner's and show how to improve that . . .
Of course, that was after a year's experience on the Ranch learning from people like Ulf Dittmer, Jim Yingst, and the other staff at the time. [That was before I was a mod.]You don't need that. You can delete it; it doesn't actually do anything.
Campbell Ritchie wrote:
How much do you shorten the code? When I was still working for my MSc, I took some UG modules, too. I found a lot of people there would ask for advice about a bit of code and I could often simply delete about 50% of it.Simon Harrer wrote:. . . code from Java beginner's and show how to improve that . . .
Developer, Researcher & Author
@pragprog Author of http://java.by-comparison.com
That isn't quite what I meant, but I have seen C books advocating really short code which would go down well at an Obfuscated C contest.Linus Dietz wrote:. . . cramming complex logic into a one-liner. . . . .
Campbell Ritchie wrote:Thank you
That isn't quite what I meant, but I have seen C books advocating really short code which would go down well at an Obfuscated C contest.Linus Dietz wrote:. . . cramming complex logic into a one-liner. . . . .
Linus Dietz wrote:One example would be the free sample comparison on Split Method with Boolean Parameters: https://media.pragprog.com/titles/javacomp/split.pdf
There we convert one method into two. Thats a bit more code, but makes everything clearer.
Hahahahahahahahahahahahaha! Or on a basis of once a lifetime even. Fortunately I haven't seen anybody post that sort of code anywhere for ages. The best C++ code I remember seeing was when some Brazilian chappie decided to upgrade/create some malware for Symbian; this was about twelve years ago. I found the source code somewhere and my first thought about it was what good code style he had used.Geff Chang wrote:. . . Obfuscated C is not the kind of source code you want to review on a daily basis. . . .
From my experience I would say at least 2-3 years of regular coding (open source or for a living) in a team are required to get enough experience call oneself an "expert".
Will Myers wrote:
Really??!! I would call 2-3 experience a junior developer at best, I wouldn't call anyone with 2-3 years experience in anything an expert! I have been a Java developer for going on 18 years and I wouldn't call myself an expert.From my experience I would say at least 2-3 years of regular coding (open source or for a living) in a team are required to get enough experience call oneself an "expert".
Will Myers wrote:I have been a Java developer for going on 18 years and I wouldn't call myself an expert.
Monster is a relative term. To a canary, a cat is a monster. We’re just used to being the cat.
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|