Im really offended there is no pink one!
CodeClown
@CodeClown
Best posts made by CodeClown
-
RE: The Backup Likes Thread - Because it's not the same, now with semi(?)-mandatory likes and questions?
-
RE: The Backup Likes Thread - Because it's not the same, now with semi(?)-mandatory likes and questions?
Seems like something i missed.
Btw. how to properly quote (including username)?this i know...
-
RE: The Backup Likes Thread - Because it's not the same, now with semi(?)-mandatory likes and questions?
Reply to the post, press quote. Observe beauty of bbcode in a Markdown/HTML forum.
WTF i didnt see both bubbles top left
Filed Under: We need a reply with quote button -
RE: Constant name
private const bool THIS_IS_HOW_I_NAME_CONSTANTS_IF_I_AM_PISSED_OF_BECAUSE_I_NEED_THEM_FOR_SOME_HACK = true
-
RE: :fa_eye: The Official Lurkers' Threadโข
Lurkin the Website since 1 Year and the forum since 8 Month... This thread motivated me to register.
-
Unit Testing... You are doing it...
So one day there had to be a few changes to the database which's EntityFramework update broke a few UnitTests.
As lazy as i am i just commented them out and marked them to be done for later.So this sad day has come up recently and i remembered why i didn't do it immediately.
The Code was very hard to read and sometimes a minor wtf itself.Major wtf was that almost every Method was completely encapsulated in 2-4 Layers of below if-else statement.
var person = EfContext.Persons.Where(x => x.Any()).OrderByDesc(x => x.Id).FirstOrDefault(); If(person != null) { //Same if here again a few times, insert that 50-250 lines of code } else { AssertUnObstrusive("no data"); }
Next thing i stumbled upon was the testing for our InsertCustomer StoredProcedure.
For every Test the same ~11 Method variables were declared again. (same values of course!).
Also the Test itself was really questionable:
For every Parameter where null was not allowed he try/catched if there is thrown an exception.
If exception gets thrown everything is fine.
Well we already check for null in stored procedure also the columns arent nullable.
So if someone changed BOTH the unit test will tell us, but i dont think anyone will change both if it isn't really intended... -
RE: Is there a way I can block certain users?
I've already had my post-lunch coffee too FWIW.
Still, I'm not getting why you asked this.
Filed under: [spoiler]<kbd>Toggle Fuzziness</kbd>[/spoiler]
Well im just caring about you.
Edit: Kept your filed under because its awesome when in quote
-
Replies of the RepliesWindow dont wrap long words.
Continuing the discussion from Constant name:
private const bool THIS_IS_HOW_I_NAME_CONSTANTS_IF_I_AM_PISSED_OF_BECAUSE_I_NEED_THEM_FOR_SOME_HACK = true
For example the replies to mentioned Post.
Also long ThreadTitles get cut when editing a post?!
Latest posts made by CodeClown
-
RE: The Official Status Thread
Reading through the forum since an eternity.
Wondering why chrome always tries to correct me in the language i'm not writing at the moment.. -
RE: Unit Testing... You are doing it...
with a proper link to a backlog item
Implying we have one..Anyway you are right, in a proper managed Product where someone cares about the UnitTests this is what I should have done.
-
RE: What's a really cool game that no one has made yet?
Godsim where you are god and have to lead you People passively to success
-
Unit Testing... You are doing it...
So one day there had to be a few changes to the database which's EntityFramework update broke a few UnitTests.
As lazy as i am i just commented them out and marked them to be done for later.So this sad day has come up recently and i remembered why i didn't do it immediately.
The Code was very hard to read and sometimes a minor wtf itself.Major wtf was that almost every Method was completely encapsulated in 2-4 Layers of below if-else statement.
var person = EfContext.Persons.Where(x => x.Any()).OrderByDesc(x => x.Id).FirstOrDefault(); If(person != null) { //Same if here again a few times, insert that 50-250 lines of code } else { AssertUnObstrusive("no data"); }
Next thing i stumbled upon was the testing for our InsertCustomer StoredProcedure.
For every Test the same ~11 Method variables were declared again. (same values of course!).
Also the Test itself was really questionable:
For every Parameter where null was not allowed he try/catched if there is thrown an exception.
If exception gets thrown everything is fine.
Well we already check for null in stored procedure also the columns arent nullable.
So if someone changed BOTH the unit test will tell us, but i dont think anyone will change both if it isn't really intended... -
RE: The Backup Likes Thread - Because it's not the same, now with semi(?)-mandatory likes and questions?
Reply to the post, press quote. Observe beauty of bbcode in a Markdown/HTML forum.
WTF i didnt see both bubbles top left
Filed Under: We need a reply with quote button -
RE: The Backup Likes Thread - Because it's not the same, now with semi(?)-mandatory likes and questions?
Seems like something i missed.
Btw. how to properly quote (including username)?this i know...
-
RE: The Backup Likes Thread - Because it's not the same, now with semi(?)-mandatory likes and questions?
Im really offended there is no pink one!
-
RE: Where did your user name come from?
Just someone with bad imagination looking for a only TDWTF Nickname that is easy to remember..
I think i done quiet good.
Filed under: HorseStapleBattery