« first day (1685 days earlier)      last day (3632 days later) » 

Pip
Pip
22:05
@hasherr I need to talk to you when possible :D
Anyone fluent in Javascript around here? I'm having trouble understanding its object model, prototype chains, so on.
Books only confuse me more and articles I've read didn't help.
@Almo @Wardy @Lasse anyone?
sup ?
js is basically just c# without the type safety
or any concept of standardisation ... at all
but it sort of works for the problem it solves ... getting code in to the browser
so what's you're issue ?
C# has first-class functions?
no
but then js doesn't really ... it just has functions
oh god
22:11
and no concept of scope like c# does
being "technically correct" though ... js does and c# doesn't
but it's just a fancy way of saying I can or can't define a function outside of a class
you also have closures in js ... functions that basically execute themselves as part of being defined
from Javascript: The Definitive Guide: "JavaScript derives its syntax from Java, its first-class functions from Scheme, and its prototype-based inheritance from Self."
$(function () { ... });
yeh don't worry about that just write the code as you would write c# and it should for the most part work
I don't really know C# yet :P
But anyway, what I'm trying to do is a pong clone to get a grasp on the language.
well then the best advice I can give you is ... learn 1 language at a time
I want to inherit objects from a Sprite prototype.
But the Sprite constructor requires a filename string to be passed in and Javascript doesn't have anything like a super function.
just ajax load any images ?
3 mins ago, by Wardy
well then the best advice I can give you is ... learn 1 language at a time
I am.
What made you think I wasn't?
function GetImage(name, handler) {
   $.get("images/" + name), function(result) { handler(result); });
}
@Jovito I thought last time we spoke your trying to do stuff in c#
You don't understand. My problem is inheritance-related. I already got the image loading function.
22:19
eh ... inheritance in js ?
why
Nope, that was another project and it was in Python.
@Wardy Why not?
I guess i've never really written anything in js that warranted inheritance ... since js natively has no concept of a class it feels like a pointless feature of the language to want to use
@Pip Sup
I just tend to build basic objects instead
Pip
Pip
@hasherr uh.... can we move to Skype?
Pip
Pip
sh, you! :)
/bin/sh to be specific
@Wardy Instead js has prototypes. Objects inherit properties from their prototypes.
yeh i know
Pip
Pip
22:22
@KevinvanderVelden :D
but prototyping is not the same as inheritance
prototyping is about definition inheritance is about combining definition (composition but not technically the right word)
@Pip Briefly, sure. No more than 10 or 15 minutes. Is that sufficient?
Pip
Pip
yeah, don't even need to call, just text
Sure, I can stay on for however long then.
Pip
Pip
coolcool
22:33
yo
what's everyone up to ?
Jon
Jon
nothing
@Wardy Nevermind. I'm afraid if I go any further that I'll end up killing myself.
lol
welcome to js
@Veritas trying to get a dev environment set up for C++, on Windows, using Vim
having all sorts of fun
dwarf fortress definition of fun
it's why I prefer a linux partition for development
most stuff is either ready or extremely easy to install
22:41
lol yeah but dual-booting is more annoying in the long run
could vm a linux distro ?
yeah that was suggested earlier. it's a better option, but still has some problems.
so far I've gotten everything working after enough effort
current problem is unrelated to windows. I just don't fully understand how .vimrc works.
Jon
Jon
So sad mars one, is a bullcrap operation -- as expected.
Part of me kept hoping it wasn't.. but all signs were pointing to one thing... and lo and behold.
@IcyDefiance looks like windows 10 comes with hyper-v built in
so things could be looking up :)
is sublime text free?
22:47
yes, but it'll nag you to buy after every 50 or 100 saves or something
just hit cancel and it'll keep working
more than worth it imo
I love it's highlighting
probably the best I have seen
its*
Pip
Pip
holy shit MC got a huge music upgrade
23:03
@Jovito I know a little, but I couldn't help with anything super sophisticated
@Almo have you used prototypal inheritance?
ooh some guy dissected a Pentium III cpu imgur.com/a/ynPeX (hit load entire album at the bottom)
4
23:17
@IcyDefiance thats awesome
23:37
lol
i think some pieces are maybe not quite in the right place

« first day (1685 days earlier)      last day (3632 days later) »