What is your best code comment this year?
-
Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.
// (I was too speechless to actually write anything)
-- Kein Mitleid Für Die Mehrheit
-
Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.
Nothing good this year - but this is one of mine from last year. //This workaround shall be removed when MS fixes this bug (hopefully in the next version)
There are only 10 types of people in this world — those who understand binary, and those who don't.
-
Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.
Actually it is not mine but I have read it in one of maintenance project. It was... //.. Do not unblock below commented code .. it is highly error prone ..// and it was containing sooo many try catch blocks. :~
Believe Yourself™
-
Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.
// to do: handle error
:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
// to do: handle error
:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]That one is so common, IDE's should come with a preconfigured keyboard shortcut for that!
Personally, I love the idea that Raymond spends his nights posting bad regexs to mailing lists under the pseudonym of Jane Smith. He'd be like a super hero, only more nerdy and less useful. [Trevel]
| FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server -
That one is so common, IDE's should come with a preconfigured keyboard shortcut for that!
Personally, I love the idea that Raymond spends his nights posting bad regexs to mailing lists under the pseudonym of Jane Smith. He'd be like a super hero, only more nerdy and less useful. [Trevel]
| FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v serverA real IDE should handle itself the error... BTW real programmers don't use IDEs (they use ideas, maybe). :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
A real IDE should handle itself the error... BTW real programmers don't use IDEs (they use ideas, maybe). :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
CPallini wrote:
real programmers don't use IDEs
Pfft. You're not a real programmer until you've built your own compiler.
OSDev :)
Real programmers don't need a compiler.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Real programmers don't need a compiler.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
// to do: handle error
:)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]I tend to comment those like this in C++: assert(!"TODO: Handle error!"); or System.Diagnostics.Debug.Assert(false, "TODO: Handle error!"); in C#.
-- Kein Mitleid Für Die Mehrheit
-
CPallini wrote:
real programmers don't use IDEs
Pfft. You're not a real programmer until you've built your own compiler.
OSDev :)
Hmph.. I did that 34 years ago, and I still can't program worth a damn. :doh:
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
-
Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.
"Why the phuque doesn't this thing work???? I copied it from MSDN!!!! Grrrrr!!!!" I'm going to program that into a key macro, just to save some time this year.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
-
Real programmers don't need to program. They just manipulate the EM field generated by their brain so as to cause electrical anomalies which translate to hexadecimal instructions and machine code inside the processor.
OSDev :)
I thought real programmers used butterflies? :laugh:
-
Real programmers don't need to program. They just manipulate the EM field generated by their brain so as to cause electrical anomalies which translate to hexadecimal instructions and machine code inside the processor.
OSDev :)
You can do that with Emacs you know...
-
Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.
-
Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.
-
Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.
//Write comment for the method below I usually feel very lazy to write comments (I know its a bad practice)... I wrote the above once for a C# application I was writing.
-
Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.
In the middle of a 1700-line JS file: // <magic type='black'> [... 150-line Javascript function, returning a factory function to create and track state for a UI widget which, strictly speaking, should not work ...] // </magic> Some time ago, that same file started with a comment along the lines of: // abandon hope all ye who enter here I think I may have to restore that comment.
-
Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.
// I don't know what this method does ... but it works !!
-
Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.
Not my comment, but it is one of my all time favourites :
static const double c_PI = 3.14159265358979323846; //mmmmmmm PI