« first day (1745 days earlier)      last day (3218 days later) » 

6:00 PM
 
Anyways back to googling for tutorials about javascript
 
@Retsam toEqual?
 
double equals kills puppies
 
"tutorials"?
 
@ssube I'm pretty sure that's still === for primitives, it just adds logic for object comparisons and array comparisions
 
6:01 PM
it's okay to kill puppies
 
Is it me or is javascript just so simple that there are hardly any books that do not immediatelly state "use this extension" like jquery or nodjes?
 
@NickDugger discontinues using Ruby, Haskell ....
 
@JanDvorak I meant in javascript, silly
 
@paul23 those are bad books written with 2009 in mind
 
ah.
 
6:02 PM
DOM api is bad
 
@paul23 jquery and nodejs are not even close to being the same type of thing
 
@paul23 Get good books
 
@rlemon What you mean?
@uselesschien Does SO have a good list somewhere?
 
should I recommend w3schools as a learning site, then promptly kick myself?
 
My brain does, wait.
 
6:03 PM
@paul23 the DOM API is slow, convoluted, verbose, sometimes inconsistent. it is bad.. this is why libraries like jQuery exist
it is getting better
also MDN > books (Wiki > books)
 
@paul23 getify's YDKJS, Flanagan's definitive guide, Professional JavaScript for Web Devs by nzakas, good parts by crockford, and crockford's js videos
 
!!resources
 
^ everything you need
 
6:04 PM
var instructions = _(fs.readdirSync(filepath))
  .filter((file) => _.endsWith(file, '.assembly'))
  .map((filename) => fs.readFileSync(path.join(filepath, filename)).toString('ascii').split('\n'))
  .reject((x) => /^\s*$|^[\\\'\"].*/g.test(x))
 
@Retsam so slo pacedf
 
well then... this is getting intense
 
@rlemon You're stating now that JS without libraries is terrible? Still not following you there then? Should I skip learning JS vanilla and opt to study libraries directly? (From C++ I've learned that to be a terrible idea though).
 
it's all about the VDOM
 
@paul23 *was terrible
and that is not all of js
that is just the DOM api
 
6:06 PM
part of being a JS dev is learning ALL THE FRAMEWORKS
jk, you'll never learn them all
 
> Q: Which elements except fluorine have an atomic mass between that of carbon and sodium?

> A: NONe
 
@nick -.-
 
and you need to learn javascript in order to use javascript libs
 
@paul23 I don't suggest jumping into a library directly, it will result in a nightmare
 
please don't tell me you're just gonna "learn jQuery"
 
6:07 PM
@nick jQuery especially I found annoying to read lol. Never understood the people who wrote the syntax there.
 
teh beauty of JS is that you can learn it in a weekend.. however you'll be picking up new edge cases for the next few years.
but like any language, edge cases are to be taken on a per-case basis
 
@rlemon Well but it seems unlike other languages, it's hard to predict beforehand when you'll run into one.
 
in what language are edge cases easy to predict?
because that is the language I wanna code in
 
yesterday you said tomorrow
 
Rust, theoretically.
 
6:09 PM
@Retsam Rust shouldn't have edge cases, theoretically
 
Haskell?
C doesn't really have edge cases, depending on whether edge is defined or not
 
@rlemon Actually in C++ they are quite easy to predict if you memorise the standard well. Or at that I found to be true.
 
@rlemon Well, a lot of the compiler wats are what I'd call "Edge Cases", honestly.
 
@JanDvorak Magnesium-19 isotope too
 
@paul23 ohh but then you are using a new compiler, or a new non-standard lib. then what?
I get where you are going. compiled languages pick up more
but JS has tooling for that
 
6:11 PM
@rlemon nice avatar
 
ty
 
ty
 
@rlemon Don't use non-standard libs for a loong time lol. Only once you exhausted manual labour, and know that the tool is documented well (boost).
 
ty
 
6:11 PM
ty
 
@paul23 you can limit your JS to 'sane stuff' as well
you just need the experience now to do so
(like you have in c++)
 
part of the appeal of javascript to me is how rapidly I can get something running
 
that is a lot of the appeal
 
Hmm guess it's true, you need to get a feeling for when what library to use, it's just that in javascript I find that part quite overwhelming and no idea where to start lol.
 
@paul23 ask us
eventually you'll be able to filter out the crap (just like any language, it takes experience)
 
6:14 PM
Is there any library like "matplotlib + numpy/scipy" for javascript? To be able to do numerical processing fast and display them easily?
That way I could port all things I made and start doing that as excercises.
 
stuff like this is enough to prove to me that javascript is actually pretty sophisticated and can do wonderful things
 
@Purag Which is great!.. for prototyping.
 
@paul23 client side or server side?
 
javascript should be embedded in all of our spaceships
 
Well client side :P
 
6:15 PM
SPACESHIPS!!
 
> Houston we overshot Venus.
 
Remember them?
 
> Oh god, we forgot to promisify the orbit method.
 
Isn't php+sql better server side for data processing, like always?
 
though, i'll admit, one thing I wish was more readily available for javascript was detailed under-the-hood information
 
6:16 PM
@paul23 lol
 
@paul23 you poor, poor man. Let us help you
 
Guys, can we not do the "star message we disagree with" thing?
 
@Retsam no
 
6:16 PM
(Can't tell if my message is being starred for agreement or disagreement...)
 
@Retsam no
 
irony
 
!!v
 
6:17 PM
@Shmiddty That didn't make much sense. Maybe you meant: d, ^, π
 
!!<
!!>
 
Add all the arrows
 
@Shmiddty "undefined"
 
!!help π
 
6:18 PM
@JanDvorak Command d, created by rlemon on Wed, 13 Aug 2014 13:43:46 GMT, invoked 1 times
 
This guy is amazing. I'm blown away
 
@JanDvorak Command π, created by rlemon on Thu, 11 Jun 2015 13:07:51 GMT, invoked 1 times
 
@SterlingArcher farts much?
 
Server error (status 500) occured (message probably too long)
 
6:19 PM
!!d
 
why
 
why not
 
I was expecting a different D
 
It is not for us to ask "why?", it is for us to ask "fuck it, hold my beer!"
 
6:19 PM
@paul23 In seriousness, doing data processing server-side is often a good idea; (particularly if you have any concerns for data-integrity; client-side data can be tampered with)... but php certainly isn't a popular choice for that, in this room.
 
so that you can give someone the D if somoene wants it
 
@Loktar I haven't do you have any songs I can sample?
 
@Retsam Well yes, but I'm trying to learn javascript as client-side language. So "dataprocessing" is just something I"m familair with (had to write in python several algorithms for feature recognition etc). And I find it also FUN to write those algorithms, so I wish to learn javascript while doing those things (like write a small app dat does facial recognition using your webcam in a browser).
 
@paul23 JS is not the best at math-intensive stuff, thanks to having weird flippy floppy number types.
 
@NickDugger my response to this...
Whoever did this is a savage, lmfao http://t.co/sRtMsI8dKd
 
6:22 PM
@paul23 you will need to get accustomed to a few things. WebWorkers are magnificent and might be able to work for what you just described (they are like fake threads.. if i'm being totally incorrect but simplified)
but like anything web, do as much processing off of the client as possible.
 
@rlemon they're real threads, just isolated from each other
to dodge all the weird issues threads usually have
 
@SterlingArcher what the fuck did I just watch
 
The best ever
 
@ssube so they are like fake threads :P
 
@rlemon Well nah for starting up I just wish to have something like plot(x,y,"-",blue) - which plots vector x vs vector y with a line and colour blue. (Or any syntax like that).
 
6:25 PM
8bit cinema: terminator 2: bulvy.cz/2015/07/26/…
 
@paul23 if you wanna learn you want the Canvas API
if you wanna make shit you want something like d3.js
but the learning curve of d3 isn't shallow
 
hmm ok
canvas api might seem enough so I have a decent feedback of any script I can write.
 
yea, using the raw canvas api will result in more people being able to help
victor.js looks neat
 
@Farhan Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
> What's your vector, Victor?
 
6:27 PM
1 message moved to Trash can
@Farhan Please don't post unformatted code - hit Ctrl+K before sending, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
How does cap know it's code being posted?
 
@rlemon Just a view of something I would make (made in python, this is near finished processing of the data): i.imgur.com/2A57mwE.png
 
@paul23 d3js.org might be better then
 
Hello room. I've an assignment (please see below). I'm not asking for the solution but just the direction towards the solution. That's why I'm not posting it as a question on SO.

A JavaScript function takes name and status as arguments and then inserts a new table row into the following HTML sorted by name.
 
@Farhan look into document.createElement, Element.appendChild, and document.createDocumentFragment
 
6:30 PM
document.querySelector("table").rows will give you a nodelist of the rows in that table
 
.
 
not enough jquery
 
get out
 
i love you
 
i tolerate you
 
6:32 PM
i am not convinced there are two nicks.
 
one is from australia; see how it's upside down?
 
@Shmiddty nice pic
 
3x uncapitalised "I" combo
 
@JanDvorak shouldn't it be 'uncapitalized' or is that just american spelling?
 
@paul23 I haven't used it, but you might look at Numericjs
 
6:33 PM
i rarely capitalize
pretty sure 'z' is american style
 
@SterlingArcher "-ised" is the British spelling, "-ized" is the American.
 
I gotchu
 
!!s/the American/correct/
 
@Retsam @SterlingArcher "-ised" is the British spelling, "-ized" is correct. (source)
 
@Retsam based on what?
 
6:35 PM
@tereško Superior firepower.
 
USA should be renamed to USSNA: United States of Southern North America
 
@rlemon @JoshLeBlanc Thanks. I'll look into those.
 
[randallkoutnik:~/Dropbox/node/perf]$ NUM_ITEMS=1000000 node index.js
--- .forEach ---
.forEach took 250.709 ms
for loop took 9.863 ms
--- filter ---
.filter took 103.648 ms
for loop took 36.117 ms
--- .map ---
.map took 376.684 ms
for loop took 9.579 ms
--- .reduce ---
.reduce took 45.702 ms
for loop took 2.438 ms
 
@Retsam compensating much
 
Comparing Array.prototype with regular for loops, perf-wise
 
6:36 PM
or USSNAMM (MM = minus Mexico)
 
@JanDvorak afaik Canada is the only country in The Americas that doesn't use states
 
Solution: annex Mexico and Canada. Problem solved.
@rlemon By "The Americas" you must mean North America, right?
 
@JanDvorak bitch please
 
@Retsam north and south. but I haven't looked into all of the south american countries
 
@Retsam lemme guess. You are from South Carolina or some other shithole like that
 
6:38 PM
@tereško Let me guess; you've never been to South Carolina, if you think it's a shithole.
 
your lack of cognitive capacity is showing
 
@Retsam I've been to Illinois. meh.
 
@rlemon I'm pretty doubtful that any of the Central American countries have states. Too small.
(I was just in Guatemala, and they definitely didn't have states, as far as I could tell)
 
@JanDvorak I believe @rlemon would prefer us to rename to South Canada
 
@Retsam But they also don't use something that's not states...
 
6:40 PM
@tereško Disclaimer: I may or may not validate any flags raised as a consequence of this conversation
 
@Retsam Brazil seems to
 
@tereško Coming from someone who can't seem to find the shift key or recognize parody, meh.
@rlemon Brazil isn't Central American. Or small.
 
I'm talking south america
 
@Retsam south carolina would be improved if it was a literal shithole
 
Americas should only be north and south
central was added for convenience
 
6:41 PM
@Retsam died
@tereško no need to be rude :)
 
Guatemala is strange. you see reports that say that they are states, others call them simply "places"
 
Co-governed Places of Northern America
 
@rlemon I'm from Illinois. (well... I'm from Chicago, at least) And, yeah. Meh.
 
@Retsam I do work in the corn belt.
drove through illinois
wasn't impressed (wasn't a shit hole, but wasn't impressed)
cept the skyway
that shit in insane
 
most of murica is pretty meh
 
6:44 PM
most of mankind is pretty meh
 
tru
 
!!wiki skyway
 
For the SkyWalk in Toronto, Canada, see SkyWalk. In an urban setting, a skyway, catwalk, skybridge, or skywalk is a type of pedway consisting of an enclosed or covered bridge between two buildings. This protects pedestrians from the weather. These skyways are usually owned by businesses, and are therefore not public spaces (compare with sidewalk). However, in Asia, such as Bangkok's skywalks, they are built and owned separately by the city government, connecting between privately run rail stations or other transport with their own footbridges, and run many kilometers. Skyways usually connect on...
 
!!wiki chicago skyway
 
i hit the skywaaayy making money the fly waaay
 
6:45 PM
Interstate 90 (I-90) in the U.S. state of Illinois runs roughly northwest-to-southeast through the northern part of the state. From the Wisconsin state line at South Beloit, it heads south to Rockford before heading east-southeast to the Indiana state line at Chicago. I-90 traverses 108 miles (174 km) through a variety of settings, from farmland west of the Fox River Valley through the medium-density suburban west of O'Hare International Airport, through downtown Chicago, and through the heart of the industrial southeast side of Chicago before entering Indiana. I-90 comprises several named highways...
 
I-90 is a bad road
I do not like it
 
that and 81
 
but hey, it's elevated
 
I very much wasn't having fun on 81
 
You probably just visited in the wrong season, we've only got two: winter and road construction.
 
6:49 PM
same with Canada
cept longer winter :/
 
Any tips for Google Earth road tripping?
 
@JanDvorak I believe you meant robo, and make sure you have a good sturdy desk chair before you start
Google Earth robo tripping is a great way to spend a few days, but not for the faint of chair
 
!!urban robotripping
 
@JanDvorak robotripping Drinking a bottle of Robotussin cough syrup (containg DXM), with the intention of purposely hallucinating.
 
6:54 PM
robotussin, gin and juice, purple drank, whatever floats your brain
 
is <canvas> limited to max 60fps?
 
no
 
any links?
 
requestAnimationFrame gives you 60 FPS IIRC
 
@tereško rendering itself is not limited to 60fps
requestAnimationFrame tries to lock you into 60 or dump your ass down to 30
but it tries to keep it consistent which is the point
 
6:59 PM
got it
 
does RAF try to stick with vsync everywhere?
 
what if I want 120 FPS?
 
technically you can only render at 250 fps because timers in JS are limited to 4ms iirc
 

« first day (1745 days earlier)      last day (3218 days later) »