« first day (1791 days earlier)      last day (3193 days later) » 
00:00 - 19:0019:00 - 00:00

7:00 PM
@Telastyn count is evaluated each loop??? Fuck me I never knew that. That is bloody important...
that smells damn fishy, how are people using foreach on IQueryables attached to their DB without re-executing the entire query on every loop? How does foreach find the .Count (method? property?) it calls? The static .Count() extension on IEnumerable does a full iteration...
 
I must investigate...
 
@durron597 There's no need to remove tags from questions that should be deleted.
 
user20683
@JimmyHoffa Maybe Eric Lippert knows?
 
@ThomasOwens There is when you don't have 10k rep, don't want to nag a moderator and want to nuke a tag
 
7:13 PM
But you bumped a terrible question.
 
@ThomasOwens I support your decision to delete it.
 
@Telastyn Thanks.
 
@WorldEngineer I'm certain he does, but you are not helping me
 
@JimmyHoffa - the forearch doesn't count, the for(i=0; i < stuff.Count();++i) does
also Count the property doesn't recount, but Count() the method almost always does.
 
@Telastyn oh well yes; I know that...
 
who the hell wouldn't know that? Ugh, probably that guy who's currently teaching people to program even though he's been doing it all of 3 weeks himself in Ruby
@durron597 trueless
 
@JimmyHoffa truth monad
 
7:44 PM
@durron597 ...there is a truth monoid.... monads require a parameterized type though
@durron597 given the closed set {True, False}, what binary operator is associative on this set such that x * (y * z) = (x * y) * z?
 
well, I assume that Robert Harvey knows that, but if people aren't using foreach subtle things like that are often the reason (or y'know... C++ programmers that don't know any better)
 
@Telastyn I don't believe I have the context for your comment... I should look up and see what bobby said
@RobertHarvey you should definitely change your SO name to RobertTables....
 
@JimmyHoffa OR and AND are both associative...
 
user20683
@JimmyHoffa his current name is effectively Strongly Molten Iron
 
@durron597 for either of these binary operators, can you come up with an element in the set that acts as an identity i such that i * x = x = x * i
 
7:53 PM
@JimmyHoffa for AND true and for OR false
 
> Monoids are easy
Monoids most of us rely on frequently for their handy short-circuit ability:
Set of `boolean`s under `AND` with `True` as identity.
Set of `boolean`s under `OR` with `False` as identity.
Set of `object`s under `null coalesce` with `null` as identity.
Set of `List`s under `concatenate` with `[]` as identity.
Set of `String`s under `concatenate` with `""` as identity.
 
okay...
 
@durron597 you did that to yourself you know.
 
when I read about all this monoid/functor/monad stuff I found the only real obstacle was the unfamiliar terminology
once I map "monoid" to "IReducable" in my head it makes perfect sense (assuming you're already familiar with the map/filter/reduce operations from less pure languages)
 
@Ixrec if you're already familiar with those, you're a fair bit ahead of where a lot of people are to begin with
 
8:05 PM
but Javascript has them, and everyone knows Javascript.
 
LINQ is 8 years old, you still can't find .NET people who know reduce (Aggregate in LINQ) basically at all.
 
a lot of the LINQ syntax/behavior is easy to get mixed up
 
@whatsisname ...huh? how do you figure? You mean the comprehensions or even when written in fluent syntax?
 
I'm mildly surprised that the name matches the tag badges
 
8:09 PM
that is actually pretty awesome
though I'm certain there's countless others with the same name lacking the distinguished database expertise Little Bobby Tables should be known for...
 
I find it easy to mix up whether I want Take or Skip or While etc for example if I haven't done a bunch of LINQ recently
it's easy to mix up the name<->behavior mapping
 
@whatsisname I don't think I've ever used while... and how can you confuse take and skip? They're antonyms...
 
all words in computer science are overloaded, I wouldn't really blame anyone for getting anything mixed up unless it's among those few words used consistently everywhere
take/skip feels kinda like car/cdr, but with an integer argument
 
Yeah, in Scheme I believe they use first and rest.
 
8:15 PM
@Ixrec this is relatively true, and it gets harder with more general interfaces; I could see confusing take, at, or select
 
I think map/filter/reduce/fold are among the few super-short words that almost always mean exactly the same thing
 
select 3...I want the 3rd one, oh wait no that's wrong, take 3.... no damnit at 3 oh there we go
@Ixrec HAH! map absolutely does not mean map in C++
 
as functions, obviously =)
 
pshaw, in C++ it probably still means something weird, like launch maps.google.com or something
 
destroyBaghdad();
 
8:19 PM
checked, in C++ map is just the container, the map operation seems to be covered by std::transform
and in classic STL fashion, std::transform can do a bazillion things, so it's probably good they didn't call it map
perhaps I should have said almost always mean the same thing in dynamic languages
it feels like all the dynamic languages have at least basic bits of functional programming
 
There's a core collection of functional concepts.
for some definition of "core."
 
no doubt that core is some dialect of Lisp
come to think of it, I think I first learned map/filter/reduce from reading the SICP
 
@JimmyHoffa: I can't even remember what most of the methods are off the top of my head
without intellisense my productivity goes down to 5% of normal in C#
 
8:36 PM
@whatsisname well, you just don't practice a lot of C#, or practice other languages at the same time likely... that's to be expected. .NET is a stupidly large framework and the classes have an gonzo number of properties and methods.
 
someone forgot to escape strings...
> Description contains invalid character(s) <>"'&/\.
for a single " \ "
oh wait, that's a list of all the bad characters, someone forgot UX / HCI
 
@enderland forgot ? Who actually knows that stuff... UX folk are rare as hell unless you mean marketing people selling themselves as "UX"
 
designing a UI from scratch is hard, but once you've been told what to make, doing all the little tweaks to make it usable is usually pretty easy tbh
 
@JimmyHoffa users? SCREW THEM
 
user55340
8:54 PM
4
Q: In Gary Bernhardt's talk about Ruby and JavaScript surprises, what does "wat" mean?

unforgettableidThere's a video of a conference presentation by Gary Bernhardt about surprising behavior in the Ruby and JavaScript computer programming languages. At the beginning of the video, Seth asks the audience: You guys know what 'wat' means?" [He makes a 'wat' sound. He also shows a silly photo ...

2
 
@MichaelT Western Arterial Terrain
 
@ThomasOwens You around?
 
best commit message ever. lol
 
9:30 PM
rotating the screen calling onDestroy and onCreate in android is obnoxious to say the least
 
psr
9:44 PM
I've been serially upvoted in the [Intersystems-Cache] tag on SO. I could be as much as 2/3 of the way to first bronze badge in that tag.
If it's not reversed.
 
10:10 PM
Legal questions are off-topic here. Try Programmers.SE instead. — Harry Johnston 9 secs ago
@HarryJohnston Programmers.SE takes licensing questions, but general legal questions are off-topic there too. If OP could narrow the question significantly or specify what license(s?) are involved then we might be able to help him. — Ixrec 38 secs ago
 
user55340
10:25 PM
@Ixrec might want to link to the guide. I've got a bit about licensing in there.
 
which one are you thinking of?
 
user20683
A delightful little history of Programming
 
user55340
10:56 PM
65
Q: What goes on Programmers.SE? A guide for Stack Overflow

MichaelTYou're on Stack Overflow and you've found a question that isn't about coding. It's about design or something squishy like that. You are trying to be helpful, and you put a comment in the question: You should try asking on Programmers.SE instead. --YourName 2 minutes ago ... and suddenly, ou...

 
user55340
@Ixrec that one
 
user55340
11:49 PM
I want to point out something very sad... tomorrow is Black Tot Day. Everyone should go out and drink a ration of navy gin in memory.
 
user55340
Black Tot Day (July 31, 1970) is the name given to the last day on which the Royal Navy issued sailors with a daily rum ration (the daily tot). In the 17th century the daily drink ration for English sailors was a gallon of beer. Due to the difficulty in storing the large quantities of liquid that this required in 1655 a half pint of rum was made equivalent and became preferred to beer. Over time drunkenness on board naval vessels increasingly became a problem and the ration was formalised in naval regulations by Admiral Edward Vernon in 1740 and ordered to be mixed with water in a 4:1 water to...
 
user55340
It should be poured at 6 bells in the forenoon watch, which translates to 11am. This may not be practical for all.
 
user55340
Or rum. Gin or rum.
 
00:00 - 19:0019:00 - 00:00

« first day (1791 days earlier)      last day (3193 days later) »