|
At best, self documenting code can only ever document what the code does, not what it was intended to do. The differences between the two are generally referred to as "bugs".
|
|
|
|
|
Yeah, exactly. I'm starting to think that this whole "I don't need to use comments" thing is coming from people misunderstanding what self-documenting code is. Self-documenting code is largely about readability (which is good); it doesn't mean that you never need to use comments.
Self-documenting code can reduce the need for comments, but that's not the same as eliminating the need for comments. Whenever I hear programmers making these kinds of over-generalized dogmatic statements, I assume it to be a sign of lack of experience in real-world programming, because I can't imagine how someone can program for years and not run into counterexamples.
|
|
|
|
|
|
She was be-cider-self when she saw what she had done.
As she backed out the store staff Apple-auded.
Her name was granny smith
I'm not so much rusty as decayed.
|
|
|
|
|
With any luck, the fruit of her loins won't have fallen far from the tree, so we'll see a few flattened Experts.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
A good precedent.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Yep, but it should have been a bigger vehicle.
|
|
|
|
|
Maybe they were using iMaps
|
|
|
|
|
When an innocuous looking change to a stored procedure increases the runtime from 1 minute to 36 minutes?
I know I do.
EDIT: Back down to under 2 minutes. Good enough for me! Evidently, SQL Server doesn't like calling functions.
|
|
|
|
|
I think I love it even more when you revert the proc back to what it was and perf becomes even worse.
Oh yeah...
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
But you haven't had a procedure just totally disappear yet? Lucky you.
|
|
|
|
|
Scalar functions used in large sets can be the work of the devil, the overhead for processing a function is proportional to the number of rows and the run under a single thread. If you can't or don't want to use the CLR and want better performance, write table valued functions and use a subquery. Sounds stupid and kind of counter intuitive, but it works...
Rhys
"If you ever start taking things too seriously, just remember that we are talking monkeys on an organic spaceship flying through the Universe"
|
|
|
|
|
SQL Server 2005... no table valued functions for me.
It was a short function, so I just moved the logic into the query and all is well.
|
|
|
|
|
AspDotNetDev wrote: SQL Server 2005... no table valued functions for me.
Really? This article[^] suggests they were available from SQL 2000.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Sorry, I meant table valued parameters, which is what I assumed Rhys was talking about (that is, pass a bunch of results to a function through a table valued parameter, then return the manipulated results as a table from the function).
|
|
|
|
|
I once did a mistake of writing a query with a function that takes a string, manipulates it and returns the value. The query took forever to run. Moving the logic to the query itself made it insanely faster.
|
|
|
|
|
On Tuesday when I went home from work there were a 30" and a 20" monitor connected to my PC. I had a day off Wednesday and came in this morning to find the 20" monitor has been swapped for another 30". It's pretty cool, I feel like I'm working in mission control now!
|
|
|
|
|
It's always nice having more than one monitor and having two quite large ones is nice. I don't have monitors as large as 30" but I have three 21.5" displays that I love using. I love the added screen space.
|
|
|
|
|
I keep meaning to ask for bigger monitors at work...or at least matching ones. At least I get to go home to my dual 27" monitors 
|
|
|
|
|
|
When I viewed the page, the ad below was advertising guitar tuition - I suspect you'd need to practice real hard to find a chance of winning if you're just starting out.
|
|
|
|
|
|
Just another stupid music video: not at all interesting. If voting was still switched on, you'd get a one vote from Mr Grumpy-Pants.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Sorry brother it was not English one. Thanks for watching, Hope you liked the heroine and music , I will try my best to post good ones for you.
Thanks,
Ranjan.D
|
|
|
|
|