« first day (1287 days earlier)      last day (3662 days later) » 

12:00 PM
Is there a canonical example of something made simpler and easier to maintain with FRP in JS ?
 
when you can't write filter ((== 32) . keyCode)
 
@dystroy check out BaconJS, it's full of cool examples. The intro lecture is great if I can find it.
 
I am looking at the slides now
 
@Scott 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.
 
12:01 PM
but seriously, it's fucking unreadable
ES6 arrow fns plz
 
@BartekBanachewicz the commit made it today to v8 to add support for the parser. Still needs work though. FF already does it btw.
 
@BenjaminGruenbaum I just pulled traceur directly from google, but was too lazy to configure sourcemaps
 
@BenjaminGruenbaum I had tried to read that a few times but always got hit by the fact it seemed to make things more complex. I'll try to have a new look as you recommend it ;)
 
 // always :: a -> (b -> a)
  function always(value) { return function(_) { return value } }
@BenjaminGruenbaum I wonder what other language does the author of Bacon speak :P
 
.
 
12:04 PM
while searching a link, I just spotted one of my famous Raynos rants / quotes
Dec 7 '11 at 2:44, by Raynos
Seriously though, no-one needs private properties. Those things are for Java trolls
 
@jAndy I think I got many downvotes in SO arguing the exact same thing ^^ and I didn't even dared call the obvioulsy javaesque users trolls...
 
@BartekBanachewicz Haskell, Ruby, Scala (it looks like)
 
I got like +12 iirc :P
 
20
A: No ways to have class-based objects in javascript?

Benjamin GruenbaumShh, come here! Wanna hear a secret? Classical inheritance is a tested and tried approach. It is useful to implement it in JavaScript often. Classes are a nice concept to have and having templates for modeling our world after objects is awesome. Classical inheritance is just a pattern. It's pe...

 
12:05 PM
we had a discussion about memory consumption of closures and stuff there
 
Oh yeah, closures are bad for memory consumption atm. That's a micro optimization though.
 
but you can't generalize stuff like that, how Raynos liked to do :p
 
@BenjaminGruenbaum I'm usually happy enough wiht
> A common contract with other developers simply says "If my variable starts with _ don't touch it, we are both consenting adults"
 
quick physics question: is there a name for the point at which the vector ends?
 
And I always add that if some other coder tries to break into my API and change the variables I say to be private, it's his own problem, I don't have to protect him from that
 
12:07 PM
@dystroy that's what we do, although it's easy enough to also enforce that in compile time with a build step.
 
but why enforce it ?
 
@dystroy obligatory steve yegge reference.
 
@BenjaminGruenbaum A.K.A. a compiler
 
!!/google steve yegge
 
12:08 PM
@dystroy its not that micro, considering the Essaila and Raynos claimed to shrink code in memory by a coupled tens / hundres megabyte, especially on node instances
 
@dystroy to make it easier to spot usages of those symbols later for further analysis and debug
 
(removing "unnecessary" closures)
 
Hello all can somebody please help me find the bug of a script?
 
@jAndy I don't get your point here
 
Im a beginner and I cant find it since days!
 
12:09 PM
@AlexStanese don't ask if you can ask, just ask
 
@ДимитърКлатуров 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.
 
!!google Wikileaks Java developers
 
@dystroy ^
 
12:10 PM
@AlexStanese = yes
 
hello all can u review my code and tell me if i am wrong somewhere: jsfiddle.net/bulgaria_mitko/S8fC9
 
@dystroy you said refactoring code for cleaning up unwanted closures is micro optimization right ?
 
@jAndy I said that ?
 
i am trying to make the step go to 33,66,99.... but it goes 33,34,66,67,99,100...
 
@dystroy hrm, lets see maybe I'm wrong :p
no.. the other guy that looked like you said it.. grrr :p
 
12:12 PM
so I have this script someone helped me to achive and it doesn;'t work when I implement it in phonehap.. Sometimes the bug also appears in the web version. SO I have 5 lives wich regenerates after 15 seconds each and sometimes they regenerate sometimes they dont regenerate..
https://student.sps-prosek.cz/~eisead11it/web/IS/Administrace/index.html
They should regenerate also if the tab (and app) is closed
@t1wc thanks
 
@jAndy Maybe it's about my last node lib when I wrote a few implementations and benchmarked them in order to see if changing a closure to a prototype was faster (it was, and I did find it enough to keep that implementation even while I usually prefer closures).
 
in the phonegap app they never ever regenerate when th app is closed...
the date is not set when I reenter it..
I also made today the whole day some steps on the mobile version to try and find the bug...
I paste them here :)
 
@jAndy There I try to nano-optimize : github.com/Canop/bounded-cache/blob/master/src/…
 
SO this is a detailed "debugging" process as I've done. I pulled on each step the fresh localstorage db from the device:
1) I cleared the localstorage and I entered the app, I killed some lives and they regenerated ok.
2) I left the app with all the 5 lives active and I closed it
3) after 1 sec I reopened it and I saw that the data from localstorage was empty
4) When I press the remove live button the lifes decreases but NO DATA was stored in the localstorage!!! and no lifes are regenerating
5) If I wait 5*15 sec (the time in wich all the lives shoud have been regenerated while this, the cu
 
sounds like you'll have better luck on main @AlexStanese
 
12:14 PM
@ДимитърКлатуров - jsfiddle.net/S8fC9/2
 
My answer is a lot better than @Aadit 's :P
 
this thing also happends in the ripple emulator since I also tested on it
 
@rlemon what do you mean by main?
 
post a question on main site
 
12:15 PM
@AlexStanese Stack Overflow
 
5
Q: Candy Crush Saga Type countdown life system jQuery & Phonegap

Alex StaneseI'm developing an app and I'm interested in ways to achive a Candy Crush Saga Type countdown life system. My app is developed in phonegap (so html, css jquery and jquery mobile) and untill now I havn't figured out how to work with an external file as I'm thinking it's needed in this algorithm. I...

 
@adeneo, thank u, but i want the default value to be 1 and the step will be changed every time i cant write this in html as the step will change every time user interact with the page
 
lol you got someone to write your code for you
 
@rlemon yea.. he helped me
@rlemon but we cant find that bug :(
 
BTW, if somebody has other ideas for trying to optimize those cache (wink at @BenjaminGruenbaum )
 
12:16 PM
@AlexStanese I guess that is becouse you have that blur event listener
 
@t1wc I am beginner at jquery.. May you please explain me what that blur does at all?
 
> I wrote code, can you explain what does it do?
 
@AlexStanese when you are no longer on that tab it triggers the function in the blur event listener
just remove that
 
@jAndy who looks like me ? The other guy with the monkey ?
 
@t1wc ok thank you.. I'll try it now
 
12:18 PM
no prob
 
@dystroy haha, no Benjamin said the line about "micro optimization", I thought you said it
 
@ghdalum 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.
 
@t1wc its still the same man :(.. I remove all lives (till they reach 0) and when I reenter the app the data is NULL and I have to press the button again and it becomes -1 and only than the data gets a value and the lifes start regenerating till they reach 5 -_-
 
@Lodewijk 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.
@SpyrosMandekis 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.
 
@AlexStanese what do you mean by the data is null?
 
12:23 PM
@BenjaminGruenbaum good one. For the record I don't advocate the removal of the private keyword in Java. I know I should make things private more often
 
@t1wc sorry!! the date is null.. it doesn't contain any value
 
@dystroy what cache?
 
@AlexStanese where's the date? (line)
 
hello room
 
12:25 PM
@t1wc the date from the localstorage
 
but... why does this chat open a new tab for my link instead of scrolling ?
 
@dystroy why are all the method names prefixed?
 
@t1wc it uses a time difference not an actual counter...
 
hi all, are node.js and angular.js the same thing, just differnet flavors of a javascript framework?
 
@BenjaminGruenbaum where do you see a prefix ?
 
12:26 PM
@redshift they are completely different: you gave me an heart attack
 
@redshift Yes, they are both subsets of jQuery.
 
is the comparsion like bootstrap and foundation?
 
@AlexStanese you didn't remove the blur event listener...
 
JavaScript itself is a subset of jQuery
 
HI All, I just joined so I thought I'd read the room pseudo-rules. That last point was just cruel
 
12:27 PM
@BenjaminGruenbaum those are just different implementations (my "build tool" takes the fastest one and rename it without prefix)
 
I didn't lose the game since maybe a year
 
@JonasGrumann never enough
 
@t1wc I removed it in my app.. the site I gave you is the example he shared me.. I cand modify it...
 
@AlexStanese oh
well... I need to see the new cod
e
 
@dystroy which one is the fastest ATM?
 
12:28 PM
right now im still learning the basics of javascript, but at what point do i move on to learn something like angular and node?
 
@t1wc do you know phonegap? May I share you my project to take a look? You can modify data there..
 
@BenjaminGruenbaum apart when you have a very very big number of entries, the double linked list based on a prototype is the fastest one. See github.com/Canop/bounded-cache/blob/master/src/…
 
@AlexStanese do you know github? mostly all of the programmers use it
 
inb4 what's git
 
I'm using bitbucket since is private :D
 
12:29 PM
@hidarikani 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.
 
side track...but did anyone read the New York Times article on how to get a job at Google? It was interesting...they don't hire based on coding ability but on cognitive ability...basically can you figure things out.
 
@redshift when you can read "The Good Parts" and understand everything.
@redshift that's a lie. Someone who hires people from Google called me yesterday and asked me if I know anyone who can get shit done because he's sick of all those 'math wiz' people who fail at basic coding tasks.
true story.
@dystroy you should probably not use objects for maps.
 
@redshift you need to get their attention first, otherwise they won't even look at your resume
 
@BenjaminGruenbaum their own fault for doing 3hr CS tests at interviews
 
@BenjaminGruenbaum you mean with ES6 ?
 
12:31 PM
A first step would be this.map = Object.create(null) , but this.map = new Map is better. Petka has a shim.
 
@redshift one possible answer would be "never"
 
Why is this.map = Object.create(null) better than this.map = {} ?
 
You know, learning JS as a first language might be actually pretty dangerous to the learnee.
 
(BTW I'll try it this we)
 
like BASIC
 
12:32 PM
mmmm beer
 
mmmm BASIC
 
boy a rough crowd in here...so it's NOT a good idea to learn javascript before moving on to angular?
 
wut
 
@dystroy faster. Also, use Petka's or Kris's shim.
 
I'm spawning an ssh command from node, and i'm trying to log what is happening (it is either erroring or dropping right away on like 10% of the tests) but i'm getting no logs
 
12:33 PM
@BenjaminGruenbaum I understood you say it's faster, I'd just like to know why. But I'll test anyway
 
var child = require('child_process').spawn('/bin/sh', ['-c', cmd], undefined);
child.stdout.on('data', function(data) {
	console.log('data', data);
});
child.on('exit', function(code) {
	console.log('exit', code);
});
 
@dystroy No prototype. Then again, I'd use a map implementation.
 
@redshift definately learn JS before Angular
 
is Angular the recommended framework over the others?
 
@redshift angular is javascript: how can you learn how to run if you don't know how to walk?
@redshift depends on your needs
 
12:35 PM
@t1wc +1
i love angular, but it has its place
 
but I always reccomend vanilla.js as the top framework
 
@BenjaminGruenbaum I don't see any map shim here. Do you remember the name ?
 
im learning to walk right now with the basics ...i know it will take a while before i move on to ANgular
 
!!resources
 

Javascript Resources.

Sep 4 '12 at 13:36, 2 minutes total – 8 messages, 1 user, 1 star

Bookmarked Sep 4 '12 at 13:40 by rlemon

 
12:36 PM
@redshift so there you go! learn js before angular
 
@Michiel 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.
 
@dystroy you ever done anything like what I show above? (sorry for the random ping)
 
@dystroy collections
 
I wouldn't say learn js before angular, I'd do in parallel
 
@rlemon no problem for random ping from you. But with what ?
 
12:37 PM
of course.. js should be slightly ahead
 
dystroy i'm spawning an ssh command from now using require('child_process').spawn and trying to see any data or errors (it is failing in some tests and the sshd is being dropped or not connecting)
 
I'm a designer...expert in css/html, average jquery, basic php, expert in bootstrap but javascript is the bane of my existence..finally forcing myself to learn it as it's the one thing keeping me from truly doing what i want to do with my websites
 
@redshift it will keep doing that even after you learn it
 
trying to figure out why
 
12:38 PM
documentation is light
> Under construction, don't judge plz
 
@doxin 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.
 
@dystroy lol
 
I find the room notifications disturbing, all starting with "Call Me"... It looks like skype spam...
 
room topic changed to JavaScript is okay... I guess...: Read this link or we'll eat you: rules.javascriptroom.com. Before asking a question inform yourself on the XY problem goo.gl/taIqf [ecmascript] [ecmascript-5] [javascript]
 
what's the best book for a javascript newbie to buy?
javascript the good parts?
 
12:42 PM
its a very good start
 
Eloquent Javascript <- free
 
SILENCE WILL 404
 
@redshift The more you understand language fundamentals (scope, closure, oop, patterns, etc) the easier all languages will become for you.
 
@OğuzhanEroğlu 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.
 
@rlemon do you own javascriptroom.com?
 
12:43 PM
no
 
anyone here use bootstrap?
 
I hate searching the needle in a haystack
 
whose is it?
 
12:44 PM
Neals
 
cool thanks for the recommendations
 
@rlemon oh
 
@redshift yes
 
@redshift stackoverflow.com/tags/javascript/info scroll down till you see the heading "Learning JavaScript"
 
i had this crazy idea of quitting my job and spending a year learning javascript..i got enough money in the bank to do that (no kids), otherwise i'll never have the time to learn it.
 
12:45 PM
shouldn't take a year
 
@redshift do a bootcamp
 
yea?
 
pluralsight.com/training one month subscription with these guys and you can get through the JS courses
 
@redshift If you want to deepen your coding skills in a short amount of time, and have the time+money it's the best way imo
 
i thought learning javascript was akin to learning a new language...it would take years to get fluent
 
12:47 PM
@redshift years to get fluent, but not years to get competent. You can get to a point where you can get things done, build stuff, fairly quickly.
 
well it is an ongoing process. but to get going and to be able to do most things you only need a few weeks with the language
 
cool, thanks for the motivation
 
I'll offer promotional bus trips soon.. "learning JavaScript", with a ton of advertising and after 10 hours I sell cap's and tshirts
I'll call it... "troll-travel"
 
could i realistically apply for a front end designer job after a few months learning javascript?
 
> sudo apt-get install jquery && jquery -build 'my website'
 
12:49 PM
i already know jquery but i made the mistake of learning that first before javascript...not an expert but dangerous enough to do things
 
@rlemon I'm not sure the targeted audience would even start to read that line
 
@redshift Maybe/Probably? It depends on how quickly you pick things up, but yes 50-80% of people from these bootcamps get jobs after even if they started with 0 coding experience (disclaimer: I teach at a bootcamp).
@rlemon lol
 
since my customer still uses IE7-8, some of the newer JQuery versions don't work
 
@redshift condolences
 
thanks
 
12:51 PM
jQuery is great and does all things.
 
@vkorchagin 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.
 
then why learn javascript?
 
can't tell if you're serious or trolling :p
 
he's trolling you @redshift
 
ok
 
12:52 PM
@redshift jQuery is javascript. It's not really possible to learn jQuery without learning Javascript properly. You can get things done with it, but to understand how jQuery works is really working is to understand js.
 
I'm wary about all those joke/troll advices :\
 
@Raine You can't teach pork my friend
 
@Connor I can try! :)
 
how long does a javascript bootcamp usually take?
1 month?
 
@redshift 2-6 months
 
12:53 PM
Bro, you even lift?
Learning the language itself is the easy part :)
 
so if i quit my job and took a bootcamp....
 
@redshift You wouldn't last it out, you cry for mummy because of jQuery.fn
 
too risky?
 
If you have experience with other programming languages, I say 1 month is tops. If it's your first language, programming can take years to master, if not more. I wouldn't call myself anything close to a master, and I've been doing it for a long time and actively trying to get better.
 
sort of like going back to school
well im not looking to be a programmer, just front end designer
 
12:55 PM
I don't see the point in leaving your job. If you're serious, learn at night. You'll then see if you're combative enough.
 
@redshift Except cheaper, faster, and more practical.
 
31 secs ago, by redshift
well im not looking to be a programmer, just front end designer
thats an insult on so many levels for most guys around here :p
 
@redshift front end development isn't easier (at the higher levels) than any other form of programming.
 
@redshift I'm a jQuery programmer and I can say with confidence that i am the best and no 1 has built more frameworks for jQuery than I have
 
Anyone who tells you otherwise is a tool :)
 
12:56 PM
@redshift You can always learn on your own (that's what I and probably most people in here did) but in my experience the best practices and tactical approaches are hardest to develop without expert mentorship.
 
@Connor that sentence has so much wrong in it.
 
@redshift It may take years to develop the intuition for those things on your own. Which is totally worth it.
@BenjaminGruenbaum tru dat
 
@Aarmora 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.
 
@BenjaminGruenbaum jQuery programmer is better than jAvascript programmer cuz jQuery programmer knows how to work it in iE6
 
@redshift my advice? Start with something like codecademy.com see how it goes.
Programming is fun, but it takes time to do well.
 
12:58 PM
benjamin im using codeacademy and codeschool...been fun. almost done
 
@redshift my advice is to get stuck in, get frustrated and feel the pleasure of finding out you wasted 24 hours because of a spelling mistake
 
@Connor ha! then you're a real programmer
 
ok ok one thing i can't get my head around is why modulo is practical
 
@redshift what's that got to do with anything?
 

« first day (1287 days earlier)      last day (3662 days later) »