|
I am speaking for myself here...
when I was young and single, I had the "learning rush". Once I got older, got married, and had two demon spawn, my "learning rush" disappeared. Now, all that is left is trying to survive and keep what is left of my sanity.
|
|
|
|
|
I'm 42 *sideeyes Douglas Adams* and I still have the learning rush. No kids though.
Real programmers use butterflies
|
|
|
|
|
I'm 67 and still have the learning itch
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
I love seeing your sig flash by me in my notifications because even though I can't see all of it in the little blurb it gives me i immediately know the reference and mentally recite it in Johnny Depp's Hunter voice. (say what you will i thought the movie did HST justice)
Real programmers use butterflies
|
|
|
|
|
I prefer the book but Depp did pretty well in the film - the special effects weren't my experience ( mine were much worse ) when I dabbled in taking that stuff but hey ho. We are coming into bat season very soon...
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
I'm 56, and still have the learning itch. The problem is that there are many more claims on my time than there were when I was young, single, and childless, so the pile is growing at the bottom faster than I can clear it at the top.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
I'm sorry. I am older (than I was at least) married and childless so I have less claims on my time. I suppose I'm blessed in that, but I can also only deal with so much so it's for the best.
Real programmers use butterflies
|
|
|
|
|
Wait till you're asked to build another one. It's never again like the first time; money or not. Once you figure it out, the little birdie inside says this should now be delegated and to find something new / different.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
The cool thing about devices though is interfacing with different hardware is at least for now enough to give me some of that sweet sweet beginners mind.
Real programmers use butterflies
|
|
|
|
|
Ahhh, yes ... a scalded cat is even afraid of cold water!
|
|
|
|
|
|
Sander Rossel wrote: I've definitely worked with code from developers who did not enjoy learning
{
Allow me to be the jerk who says I don't consider them to be developers - at least not competent ones. :~ I could just be being extreme and judgmental though. But I've never worked well with them.
}
Sander Rossel wrote: I rarely learn just for the sake of learning.
{
Maybe I'm just an oddball then. It wouldn't be the first time.
}
Sander Rossel wrote: Since I'm a good friend I want you to learn, so I've compiled one of the best learning resource for you to check out: hidden learning surprise inside!!![^]
{
As you can see, I've taken it to { heart }
At least you didn't Rickroll me. =D
}
Real programmers use butterflies
|
|
|
|
|
{
This is more than I ever hoped for!
}
|
|
|
|
|
I did read that article though, and the main point is the same one I think you made, that what if:
if(foo)
bar();
baz();
To which I respond that this has never happened to me that I can recall, in part because VS autoformats code and I hit Ctrl-A,K,D regularly.
So it's a solution in search of a problem, at least with my personal code.
When I am working on a team I code differently, but it also takes me longer and irritates me.
Real programmers use butterflies
|
|
|
|
|
I just found an abomination, purely by coincidence, that had me confused for a moment.
if (something &&
somethingElse)
DoStuff();
else
DoOtherStuff(); The indentation doesn't help here!
Needless to say, I wanted to add braces and added them above somethingElse, which broke the code
The point you make has actually happened to me before.
I inherited someone else's code and I had to make a change.
For some reason, the original programmer added two lines with the same indentation (and VS didn't change it back for me, I think this was VS2010).
I added a (conditional) third, but to my surprise it was always executed!
Took me a while to find that one
|
|
|
|
|
awwwww.
Well maybe its your else statements that are the problem!
Don't use else {}[^]
Real programmers use butterflies
|
|
|
|
|
Having multiple return statements in a function is another pet peeve of mine.
I'm fine with it at the start of a function, like if (parameter == null) return, but not somewhere halfway.
I read some code at the top, miss the return statement in the middle, and think I'm getting a wrong result at the end.
Only when I actually run the code (and somehow my breakpoint won't hit!) will I see the error in my thinking because the functions returns on me halfway.
I recently read some sample code that had like four return statements in some 20-25 line function or something, that's just plain not readable!
Also, what if my else branch doesn't have to terminate the code?
|
|
|
|
|
To be fair I don't agree with that article.
But I also feel like creating workable (as in readable/maintainable) code is an organic process. If you try to force it it impedes productivity and becomes counterproductive. I think at least, unless you need (and are willing to spend the overhead) to work in a mid to large team it's different, but on my own or in small groups it's in my experience best to let experience teach you how to code, and say screw the thinkpieces that people write simply to make themselves seem smart. For different people what maintainable readable code looks like is going to be different, but find something that works well *for you* and do that.
I never get tripped up on braceless ifs, so it's not a peeve of mine. I however, *loathe* over factoring, such as using design patterns just to use them, or creating a class where one function would do. Why? Because I find it impossible to navigate.
But you know what? That code can map directly to a UML diagram and my code can't, so I should drink a tall frosty glass of STHU because that code has its advantages.
I also don't like interfaces i am expected to work against to come without XML DOC COMMENTS!!
But that's because i have to work with that code. Otherwise I could not care.
My point is, we all have our peeves, and different styles and such, but unless i have to code against your work I don't care what it looks like. I hope *you* do though, if that makes sense.
Real programmers use butterflies
|
|
|
|
|
"We are what we repeatedly do. Excellence, then, is not an act, but a habit." - Not Aristotle, apparently
That only goes for my style though.
The actual program tends to change and I change my view of how I want my code to flow.
For example, a program I made three years ago still has the traditional three tier architecture.
It's completely over factored I think (now, it made sense three years ago).
I have one tier that gets entities from the database and puts it in domain classes (not entities, those are DB specific) and then the middle tier passes it on to the controller and the controller translates it to a view model.
The middle tier is completely empty most of the time and the domain classes don't do anything either.
It's just there because
To make things worse, since it's all pretty much the same code, I've created some generic base classes that create generic expression trees, so that my data layer can generically query any entity.
I may have gone a bit overboard on that one
My code from last year follows a simpler design, entities are translated directly into view models (and vice versa) and it all happens in the controller.
I still have some generic code, but not in my database code.
I prefer copy/paste and seemingly duplicity in the name of maintainability.
My past project has taught me that just because I have the technical know-how does not mean I have to use it
I've also been told ex-coworkers (especially the anti-learn) still struggle reading my code (so it's totally worth it!)
The fun part is, that when you look at my naming conventions, member placement, project and class layout, etc. nothing has changed in those past few years
honey the codewitch wrote: unless i have to code against your work I don't care what it looks like. I hope *you* do though, if that makes sense. I know what you mean.
I do care about what your code looks like.
I go to bed with it and I wake up with it.
Those darned braceless if-statements!
Or maybe that wasn't what you meant...
|
|
|
|
|
You are too funny. I mean that. Too funny by half.
I want people to take pride in their own code. If they do, and they respect the craft their code will reflect that, style differences aside.
That's what I meant.
Real programmers use butterflies
|
|
|
|
|
Believe it or not, but I actually knew what you meant.
I'm just trolling you
|
|
|
|
|
Enough of this gabfest! Don't you lads have any work to do?
And for the record, @code-witch, I'll also use a braceless if , and even if -else , but it depends. A simple
if(condition)
statement1;
else
statement2;
is perfectly clear to me.
I'm so thoughtful, injecting new life into your thread.
|
|
|
|
|
Greg Utas wrote: Don't you lads have any work to do? On a Sunday? No
Greg Utas wrote: I'm so thoughtful, injecting new life into your thread. But do you really want to get involved?
Too late for that, you're a part of this now.
Prepare to be pitchforked!
|
|
|
|
|
"are there no workhouses?"
Alright Scrooge, it's Sunday!
Real programmers use butterflies
|
|
|
|
|
Oh I know. It's much more difficult for you to if I treat you like you're not.
Real programmers use butterflies
|
|
|
|