« first day (1544 days earlier)      last day (3397 days later) » 

8:00 PM
Can anyone think of a reason why this would not work? I have stepped through execution on my controller and I can watch the value being set to true. I have ensure that it is the proper spelling and case in all places.
 
@NickDugger nice
 
@BenjaminGruenbaum I decided that I didn't like this month's challenge, so I'm gonna do last month's instead, for learning lol
 
This month's is fun
 
I don't want to build a game in the DOM. I'll feel dirt and used
 
@BenjaminGruenbaum BTW, thanks for all your help and understanding the other day. I got it working thanks to the tutorial vid you linked to me.
 
8:02 PM
@rlemon My introduction into this racket was MySpace. I used to make custom profiles. None of that sparkly shit, though. Before that I did a fan page for Diablo, but that was all MS Front Page and I learned nothing and it was awful. Total geocities-esque mess.
 
Ahhh Geocities..
Those were the days
 
You can keep those days. Want mine too? ;)
 
I made a website in MS Word once... don't ask me how, I remember it involved clicking and dragging... lol
 
/me goes in search of 28.8 modem handshake sound clip.
 
@NickDugger extra points for using jquery, too.
 
8:05 PM
i noticed a strange url format recently like this one : http:\/\/example.com\/asd\/asd is that called something special? it was part of a json response
 
I remember we had something before 14.4, but I couldn't tell you the name. I was on AOL at like 7 years old
I didn't know about the internet before AOL. haha
 
9600 baud or something?
 
something like that
 
@Anonym.. It's called escaping
 
I'm not sure we had any modems that old
 
8:07 PM
@NickDugger ok, thx!
 
I remember trying to play Diablo 1 online with AOL. It was a pain. You had to launch AOL to connect to the internet, so it was running in the background the whole time.
 
wow, GO is funky
> var b, c int = 1, 2
 
First modem (about 4 years after buying the computer) was a 2400 baud.
Got on the local BBS and I was never the same
 
@CodeWarrior sure thing. There are always people here who are willing to help those who help themselves. It's refreshing to have someone learn - there are so many people here who just beg for code and leave :)
@CodeWarrior can you make a minimal plunkr or fiddle?
 
@BenjaminGruenbaum I am working one up. I am going to punch myself if I make the plunkr and it works fine....
 
8:09 PM
@CodeWarrior That just suggests that the issue is probably more complex
 
I suspect it is. I have previously had great success with showing/hiding elements, but this has thrown me for a bit of a loop.
 
@Shmiddty @CodeWarrior when I was ~11/12ish we upgraded from a 14.4 to a private T1
I had a hardon for the entire year
2
 
in GO, what is :=?
 
@NickDugger assignment, like Pascal.
 
so, = isn;t assignment?
 
8:13 PM
+ type inference. You should really do the X in Y minutes thing.
 
thanks, the one I was using is really bad
 
I like it but I'm terrible at Go XD
 
Worked at a small dialup provider in New Mexico when I was 15. We got a T1 installed (upgraded from multiple ISDN lines). Played Star Wars Quake for like 3 days straight...
 
I'll become a GO PRO... oh wait
 
@CodeWarrior I filled my 500meg hard drive downloading songs from Napster
went from 3 hours for one song to 'connecting.... COMPLETE!'
 
8:15 PM
Once upon a time I remember thinking with each successive hard drive purchased that I would never use up all that space.
Now I buy 4 TB drives and figure it will be a matter of months before I have to get another.
 
I just filled my 2TB storage drive on my home pc
 
So far in Go, it seems so wrong to not have semicolons...
 
I knew I would, but I thought it would take years
I do have like 100 steam games installed however :? I play like 5 of them
@Loktar how many steam games would you say you currently have Installed
 
@rlemon yeah. My first harddrive was 2 MB. My dad upgraded to 40 MB and I thought that was enormous!
 
my first hdd was 118 meg
 
8:17 PM
My dad used to joke that his first harddrive was a stack of punch cards.
 
we have punch cards around here somewhere
 
mine was a 10mb MFMdrive.
 
my work doesn't throw shit out :?
 
LOL! Still got your MS-DOS install disks around there too?
 
better, QNX4
I've got some watcom c floppies behind me
 
8:19 PM
I asked before, but I'm not sure anyone answered at the time. Is anyone playing the new DragonAge?
 
my most prized possessions are windows 95 still in the box, still in the wrapping. and VB4 still in the box, still wrapped
 
Hah
Are those worth anything?
 
not yet ;)
 
so... := allows for weak typing, because it automagically infers the type? // Any GO languagers?
 
My coworker just posted this gif, and I'm not sure how I feel about it
Please, share with me your confusion
 
8:21 PM
It's bananas
 
cap auto bins now right?
 
I must pay homage to the Banana God
 
the GO room is dead :(
 
@NickDugger do not pass Go. >=(
 
!!google gdp adjusted monopoly game
 
@rlemon I just built this machine in November so only 87 currently installed
 
@NickDugger It's not really weak typing; it's still strongly typed, it's just that it saves you the effort of typing out the type name, since the compiler can infer it.
 
I HAVE MORE GAMES (installed) THAN LOKE~! WOOT!
 
lol
 
8:28 PM
Do not pass GO, do not collection $3,400.
 
Is GO even used in the real world? Or should I learn something more productive?
 
@NickDugger Go is used
 
java, ruby, python, javascript, lisp?, perl, c#...
did I miss any?
 
@NickDugger I dunno, ask Dropbox and GitHub
 
if TJ can make a living writing Go, I'm sure it is ready.
although I'm sure he could make a living writing any language
 
8:30 PM
Who's TJ? I'm so out of touch
 
Holowaychuck
 
^
 
Yep, no idea who that is
 
I always have to google how to spell his last name
@Shmiddty wrote express.js and a lot of other cool shit you've seen
 
oh ok
 
8:31 PM
one of those types, just pounds out exceptional projects like it is nothing
and does it in no time at all
he probably write more code in a weekend than I write all week.
 
I'd learn C++, but I really don't want to do memory allocation... ew.
 
@NickDugger being productive is not a very important criteria
 
That assessment is relative
 
@NickDugger if you haven't done an unmanaged language before you definitely should learn C++.
 
What was the name of that recent sslv3 vulnerability? adding comments to my nginx config...
 
8:32 PM
but memory allocation :(
 
@Luggage heartbleed?
 
@NickDugger you're being sold by the other side - wanna hear the case for memory allocation?
 
no, later.
 
I can imagine it makes things faster and more efficient, but it sounds hard to do...
 
shellshock?
 
8:33 PM
ahh, found it. Poodle
 
@NickDugger it's not
it's one line of code to create a new object in JS. It's one line of code to allocate a new object in C++
 
foo.addEventListener('click', function handlerForFooAndBar() { });
bar.addEventListener('click', handlerForFooAndBar);
 
It's also one line of code to delete an object in C++
 
would you kill me, or is this an acceptable hack
 
@NickDugger languages like JavaScript deal with memories undeterministically you're never really sure when they'll perform a costly GC cycle, when your file handle goes away or when your point objects get really removed. In modern "unmanaged" languages you treat memory with the same respect as database handles and file handles - resources are a key part of what a program is and it makes a lot of mistakes obvious.
@KendallFrey one you should never write.
 
8:35 PM
@BenjaminGruenbaum oh, smart pointers, huh?
 
also, handlerForFooAndBar is a single line of code.
 
My boss just told me Steven Colbert donated to us during his last week of his show
 
just seems like a waste to visually block it out
 
How cool is that?
 
@NickDugger so it's not only about writing an efficient program - GC is pretty fast when given about ram - it's about writing correct and deterministic programs where you know what's happening at every stage.
@SterlingArcher 7 cool points
 
8:36 PM
That's so much cool :O
 
@KendallFrey smart pointers are one way - yes.
 
C++ still sounds hard, but I feel like the payout is tons of babes and all the cuban cigars in the world.
 
@NickDugger in unmanaged languages resources are first class citizen and you're very aware of design mistakes like "who owns what", if an object holds another object it's very clear it owns it (or doesn't) - in JS you just do this.foo = bar in C++ there are several ways to associate them.
 
@NickDugger I personally recommend C; the concepts are simpler
 
What no, C is a horrible outdated language :P
Don't write C, you'll hate unmanaged coding and your life, C does not provide any of the facilities C++ provides to make your life easier.
 
8:38 PM
C++++
 
@BenjaminGruenbaum C++ is a horrible updated language
 
@NickDugger that's C# (the # is 4 +s)
 
I'll learn assembly
 
@KendallFrey yes, but it's possible to write code in it you won't kill yourself over :P
 
@NickDugger also a good pick
 
8:38 PM
@NickDugger you should understand assembly regardless of any of that.
 
@BenjaminGruenbaum Surely you'll agree that C is simpler than C++
 
what... stop trying to make me into a proper programmer.
 
damn, I thought 'bar' would be hoisted
foo.addEventListener('click', function bar() { console.log('handled') });
 
and IME, simpler is better 99% of the time
 
bull
 
8:39 PM
Can new users note vote?
 
correct
 
@KendallFrey yes, but C++ code is often simpler than C code.
@KendallFrey fml :D
 
there are (low) rep requirements for voting
 
I should stop answering their questions
 
@BenjaminGruenbaum simpler on the outside, maybe
I can't understand something if I don't understand its parts
 
8:41 PM
@KendallFrey RAII is beautiful compared to C style cleanup and is much simpler - it's like C#'s using only actually deterministic.
What's easier to understand?
 
That may be just me, but I learn from the bottom up
 
@BenjaminGruenbaum but baddddgeeeeesss
 
@BenjaminGruenbaum What part of using is nondeterministic?
 
struct mystruct_t *s = (mystruct_t*)malloc(sizeof(mystruct_t));
if(s == NULL){
     return -1;
}
mystruct_doSomething(s);
free(s); // have to remember this, also can't return early at any function ever
Vs:
auto *s = unique_ptr<My>(new My()); // should probably stack allocate
s->doSomething();
Basically, C resource management is a lot more error prone than C++'s
 
only because it doesn't use magic to do so
 
8:44 PM
There is no magic, it's super simple
It's just RAII - when you allocate something you instantiate it.
 
@BenjaminGruenbaum ok, how does s know to clean up?
(I admittedly don't know C++ very well)
 
@KendallFrey when you have a function with int i = 5 (on the stack in C) how does the int get deallocated?
 
the computer is rebooted
 
It's "popped off" the stack - local variables have a local lifetime.
 
@BenjaminGruenbaum it gets overwritten by any stack frame that appears in the same place
 
8:46 PM
{
    int i = 5;
   ...
}  // i deallocated here
 
stackoverflow.com/questions/27828329/… im not sure how i feel about this
 
@KendallFrey right, whenever an object goes off the stack in C++ its destructor gets called - this isn't like C# it's absolutely deterministic. Every time something gets popped off the stack the destructor is called.
 
ah, right
 
So let's say you have a database handle - instead of putting it on the heap you do something like:
 
You never answered this:
5 mins ago, by Kendall Frey
@BenjaminGruenbaum What part of using is nondeterministic?
 
8:47 PM
class Handle{
       Handle(){ /* make DB connection */
       ~Handle(){ /* clear DB connection */
       // get here
 }
@KendallFrey using is an attempt to add deterministic C++ like resource handling to C#, it's much weaker. For example when does the resource you used get deallocated? What happens if there is an exception thrown in the block and so on - I think i have a question about that with an Eric Lippert answer somewhere.
 
oh, you mean deallocation
 
@SterlingArcher Make a better answer
 
@KendallFrey not just deallocation - remember that Dispose has two overrides :D
 
in terms of resource cleanup and exception handling, that's deterministic.
 
Why was the JavaScript developer sad? Because he didn't Node how to Express himself
3
 
8:50 PM
@BenjaminGruenbaum Not required, just good practice, and that doesn't affect determinism
 
@monners That joke wasn't well rounded.
 
Everyone's a critic
 
Also, you can "force" an object to be deallocated if you really want to
 
@KendallFrey that 'determinism' is why finally and using in turn were added into the language but remember that in C++ everything is that deterministic.
@KendallFrey C# has structs which you can use to do this. One of the things languages like C++ and C have and you can get away without noticing in languages like C# is value types.
The fact that RAII Handle trick above works is because it's a value type.
 
Yes, C++ doesn't actually have reference types like C# does (you'll probably correct me on this)
 
8:52 PM
I'm trying to find a good write up on using vs RAII but all I can find is Eric Lippert and he hates using so I'm looking for someone more neutral.
 
IIRC, the only difference between struct and class in C++ is default member visibility
 
@KendallFrey sure it does - those are called references only that when you pass a reference you pass it and not a copy of a pointer to it.
@KendallFrey yes, I was referring to a C# struct.
 
@BenjaminGruenbaum but not reference types, right?
 
auto& foo = somethingOnTheHeap();
 
@BenjaminGruenbaum I know, those can be cool is abused well
 
8:54 PM
Twilio api for Java is pretty freaking awesome. So much easier than parsing stringified XML
 
@KendallFrey it actually has reference types but things are pass by reference. This means that when you pass a reference to something into a function you can change it where C# lies about it and you can only change its members if you pass an object in.
It's a white lie.
 
The JS room: Proof that everyone knows more than you.
3
 
So you can write a method that swaps two variables by reference in C++ but not in C# (that's a lie, call me on it!)
 
Ready, Set, Best C++ IDE (except for codeblocks, because fuck it)
 
@BenjaminGruenbaum But you could do something = *somethingOnTheHeap() still right? The reference part isn't part of the type
 
8:55 PM
@NickDugger TextEdit
 
@NickDugger g++
 
I need a compiler, doood
 
Pffft
 
Compile? Just make the browser do everything.
 
@BenjaminGruenbaum ref
 
8:57 PM
Make the browser compile my C++? Why Didn't I think of that?
 
@SomeKittens that runs in the browser or on the server?
Also, it appears @SomeKittens works for the NSA
 
@KendallFrey you can have a Foo (that's a Foo) and you can have a Foo& (that's a reference to a foo), you can have a reference to everything (no matter where it is) you also have raw pointers (you can actually mangle memory) but that's not really fun). You haven't called me on the swap thing yet btw :P
 
@KendallFrey huh?
 
@KendallFrey sorry, internet hickup - yeah ref, in a way in C++ everything is passed as ref.
 
8:58 PM
@SomeKittens you just wanna look at our code
@BenjaminGruenbaum uh, not the way I remember it
 
Oh very yes. I'll steal all your knowleges.
 
runnable is slow as bricks
 
void f(int i)
{
    i = 42; // does not update the variable
}
 
@KendallFrey well, everything you pass as &, values are passed by value and the difference is there is no indication at the caller site.
void f(int& i)
{ // this does
    i = 42; // does not update the variable
}
 

« first day (1544 days earlier)      last day (3397 days later) »