« first day (958 days earlier)      last day (3990 days later) » 

10:00 PM
@TravisJ bootstrap it up!
 
?
 
twitter bootstrap
<div class="row">
<div class="span2"> I AM 2 UNITS</div>
</div>
 
link?
 
ironic that the page uses tables?
 
10:03 PM
if you want pure css, theres table-* display properties
 
I am aiming for performance :) The table- algorithm is fail and should be avoided at all costs for large amounts of data
 
well bootstrap is nothing fancy for that stuff
its like
.span1 {
width: someConstant px;
}
question - why not tables for tabular data?
 
why would you want to display large amounts of data on a single screen
 
tables load slow
because it saves time for the user
 
by having to use ctrl+f to navigate to a place where the data is?
 
10:07 PM
lol what a hassle, that would take a lot of time to deal with
what if your search returns multiple results, then you have to navigate through all of them with only the next button as an option
there is a filter and sort in place on the page for the user to use to shrink the data
 
there should be a function to refine the search and paging. google returns millions of results, i dont see a problem with pages
 
when was the last time you made it to the 10th page of a google result?
paging is a failed approach
how many results do you show on stackoverflow's questions page? 50?
 
so scrolling is better?
 
scrolling is better than loading
 
i dont browse questions just for the sake of it
 
10:11 PM
I can see that. You have only posted 5 answers in 2 years.
 
i cant come up with a use case where i would have to show more than 50 records
 
That is because you probably aren't thinking hard enough.
 
or because i could come up with a better way to solve same problem
 
"Better" for who? Not the user. You would just waste their time with pagination.
 
don't mind me but isn't the normal approach to scroll and load so when they get to the bottom the next set is appended and so on like paging but feels more natural as they are not changing pages
 
10:13 PM
the user is wasting time scrolling, why not just show the needed results right away
 
isnt that the opposite of what youre saying about paging?
 
Because there are tens of thousands of results.
 
Ahhh I'm back
 
and a case for having all the data on the screen
 
there should be a way to let the user define enough info on what he needs
 
10:15 PM
You speak in vague terms because you honestly have no clue what you are talking about.
You are wasting my time.
 
@VytautasMackonis To get back to my original argument, a single "getUser" requires about 10 arguments, each being a specific class denoting the type of person you want, how you want the EMPI to search for that user, do you want any aggregated responses etc. Creating those arguments is about 30-40 lines right there. Plus this being in .NET 2.0 I lose a bunch of nifty things to make it smaller.
 
@drch the paging is when the user does not know what he/she is looking for. in that case, why show all dataset? When user knows what they are looking for then againm why not just show the relevant records?
surely no one needs to do something on 10k records at once
 
@VytautasMackonis There could be multiple relevant records. Only return what you're displaying. Even with paging. If you're data is 100 records, but paging is only showing 10, only return 10 from the database. No need to return the full dataset.
 
@RyanTernier thats why i'm saying that this shows that the design is not good enough. A method should not need 10 arguments to do a single thing and a method should do a single thing
 
@VytautasMackonis - the man who knows enough about your system after 3 sentences to redesign it for you!
 
10:19 PM
its really simple. if your test setup phase is long that means you have more than one thing going on
 
Where is that image of the tire swing that ends up being a rope and a piece of wood?
 
no need to know specifics
 
not everyone programs in a vaccuum of best practices and blog posts
 
@VytautasMackonis Welcome to enterprise healthcare. A single search takes 400+ million records, finds the best aggregated composite view in the database for all members that could match that search, then returns it.
 
yes but the original question was "how unit tests can be 3-4 LOC"
with a legacy-like system as an example
 
10:20 PM
 
yes!
 
@drch Exactly
 
a unit test can be 3-4 lines
but not all can
 
of course
 
I want a 4 line unit test :(
OH wait...
I do have one!
            List<MemHead> mHeads = CreateValidMemHeads(25, "CRS");

            GetMemberIdentityResponse response = GetMemberIdentityResponse(IdentityViewType.AuthoritativeView, mHeads, madison.mpi.GetType.ASENTITY);

            Assert.That(response.MemRowList != null, "Response has no MemRowList");
            Assert.That(response.Successful = true, "Response was not successful");
            Assert.That(response.MemRowList.rows() != null, "There were no rows in the response MemRowList");
 
10:25 PM
bug bug
= true
 
then the next one is 50 lines long haha
Bug bug? nay.
 
> Assert.That(response.Successful = true, "Response was not successful");
assignment
 
lies!
but you're right
 
:P
oh man imagine if thats been failing all along
 
it would've been caught by the next 50 lines :P
 
10:27 PM
you gotta write tests for your tests
 
Unit tests to test general system functionality - does it turn on
Then unit tests to test our 600+ requirements
 
Quis custodiet ipsos custodes?
need to find out how to say 'who tests the tests' in latin
 
That was probably my bad for not catching it during the code review :P
can't blame the developer if I missed it
Coming from private R&D firms, enterprise sofwtare is just crazy
 
is that nunit assert.that() ?
 
10:30 PM
have them use Assert.AreEqual
 
          ( •_•) Looks like this...

          ( •_•)>⌐■-■

          (⌐■_■) ...Is a unit test
 
Assert.That(response.Successful) or Assert.AreEqual(response.Successful, true)
actually areequal is backwards cause expected is meant to be first
then you get nice error messages telling you expected vs actuall
> Email has won 2.5 million.Contact us reddotdesign11@hotmail.co.uk
 
Not a huge fan of the areequal
 
HOLY SHIT GUYS
 
Wat?
 
10:33 PM
do they need your SIN, birthdate, address and bank# to deposit it? IT sounds legit. You should send that to them.
 
hahahhaha im rich fuckers
 
Whatever, i have a Nigerian Prince who wants to send me money.
 
I started telling the Prince that I had forwarded his email to the FBI as fraud. Ironically the emails stopped.
 
I saw a news article where one american asked the "Prince" to take a picture of himself with a sign saying " I RI DIOT" so he knew he was dealing with a human. Then got him to hold up a current newspaper and take a picture. Then he published it all over the internet
 
tell them that your birth cert is at your parents place but your car needs $1k in repairs
and have them front you the money
there was one where they had them write out harry potter by hand
 
10:42 PM
Just read someone's coding standards on a resume:
"I like to put the this. keyword in front of all members, properties and variables in my class. That way I know they're always this classes variables"
 
=/
 
thats a stylecop rule
so i wouldnt fault him for that
just tell him not to do it cause it sucks
 
inheritance would kill that
 
well then you would use base
A call to a member is not prefixed with the 'this.', 'base.', 'object.' or 'typename.' prefix to indicate the intended method call, within a C# code file.
it is kind of a weird thing to put on a resume, but its not a bad practice
resharper gives you shit for the redundant qualifier though so i personally side with that.
 
It's cluttery
it confuses more than it helps. I know it's not as dangerous as throwing the base keyword everywhere
 
10:49 PM
I only use this for extensions
 
its your option to disagree with stylecop
but dont fault the kid for having a different style especially when its inline with ms best practices
 
ms doesn't use this all over the place like that
 
its the same kind of argument as the braces layout for blocks;p
 
OH i'm not faulting him
 
or tabs vs spaces
 
10:50 PM
but not tabs and spaces
 
It's just amusing. I have never seen someone put their coding standards on a resume
 
oh ok then. then i agree with you
yeah its kinda weird to phrase it like that too
"some times i like to put my methods in order of when i wrote them so i know who is the oldest"
 
I take that back
ms does use a lot of this
 
Yes they do
 
style nazi more like
they dont use this so much in the webstack stuff but the older shit yes definitely
 
11:00 PM
.listData span, .listHeader span
{
width: 7.5%;
display: inline-block;
height: 5em;
text-align: center;
vertical-align:top;
padding:1px;
}
.listData > div, .listHeader
{
margin-bottom:20px;
}
div span table win
 
yay
 
11:24 PM
epic :)
 
and with that I'm going home. have a good weekend guyys
 
oh that carlos
 

« first day (958 days earlier)      last day (3990 days later) »