« first day (1720 days earlier)      last day (3244 days later) » 

6:00 PM
@Cereal I don't downvote things when my rep ends in 0 or 5
@afonsomatos time node script.js
26
Q: Is stress expected this soon in my career?

AnonI am a junior developer in a very small company and have been there a year, until just a month ago it was just my boss and I working on developments. While I am a junior and only 21, I have had previous development and teaching experience and as such, feel I am competent in the job and do not req...

That may be the silliest question I've ever seen anywhere on SE.
 
is that unix only?
 
"Is stress expected this soon in my career?" Have you started interviewing for jobs, or is it your first day, or do you work somewhere? If yes, then yes.
 
any way I go back to the dart channel, I enjoyed talking with you guys, and for the webstorm users, you may like my last debugging tutorial (which works the same for es5/typescript/dart or whatever :P):
https://medium.com/@kasperpeulen/debugging-dart-in-webstorm-part-2-673048da2a3f
 
hey guys!
Just had an informal interview, but didn't get the job
I didn't know Javascript at the level they wanted :d It figuires
They didn't buy my excuse that a troll stole my JS knowledge while I slept
 
What kinda questions did they ask
 
6:06 PM
what level were they looking for?
 
Be more JS.
 
They didn't ask any questions really. I just told them I didn't know ES6, and I couldn't mentor others
on JS
 
LOL I made some code to sum two large numbers with strings, and it computes the sum of two 250.000 digit number in less than a second
 
We just shot the shit really about dev. They were pretty cool
 
@taco Learn ES6, then.
It's pretty easy to pick up, tbh.
 
6:07 PM
Arrow functions!
Classes!
Promises!
 
@GarrettKadillak "Senior to Mid" .... but they really wanted Senior
 
> requires at least 3 years experience with ES6
 
Yeah I can read ES6 because of you guys, but I haven't coded it
lol
 
how do you run es6 stuff
 
Just start contributing to the ES7 spec, so you can put 3 years experience ES7 on your resume.
 
6:09 PM
@BenCraig transpile it down to ES5
 
isn't es6 slated to be released soon?
 
or use firefox edge
It's already released!
 
@GarrettKadillak the spec was already ratified
 
@Cereal nice
 
Im not sure I get the point of it then
 
6:09 PM
That was a Reddit job lead anyways
 
@ssube which means it's been delayed?
 
I've got 5 job leads from friends
 
that's the best way to find a job
 
I kind of enjoy being unemployed though. Why get a job at all!?
 
@GarrettKadillak no?
it's done
 
6:11 PM
I've been partying for a week!
 
@taco I have a job and do that.
 
@ssube I didn't mean cocaine
 
@taco Who said cocaine?
 
I meant meth. I've been doing meth for a week.
j/k
 
!!youtube squidbillies party liquor
 
David Cross came up with that show about the dummies that live north of me
 
I fuckin love that show.
Used to know so many people like that when I lived out east
people with eight arms, I mean
 
ah shit, node doesn't handle 100 million character strings
 
I'm not even sure the usecase of a 100 million char string
 
6:20 PM
it handles 10 million
 
anyone use a user feedback service (like User Voice) that they'd like to recommend?
 
That's like 100MBs just for a single string lol
 
@Luggage visual studio uses uservoice.com, I really like it
a game I used to play also had.. but the players were all dumb and were requesting stupid features
 
@SterlingArcher vacation
 
holy fuck uservoice is $500 / month
ohh, that's product management.. nevermind
 
6:22 PM
@Loktar oops! Sorry! Go vacation <3
 
haha np
I'm actually at home now
 
they shoudl really make the cheaper product the default one to show you a price for
 
@afonsomatos it handles 134217728
 
@ssube what should I look at when using time over node: sys, user, or real ?
 
@afonsomatos all of em
 
6:23 PM
@afonsomatos you've used it as a 'user'? How do you think it would be afor non-technical people?
 
@Jhawins so no day off Monday eh?
was hoping to see an email about it
 
@Luggage pretty simple, you have like 3 votes to give to each proposal, and you have like a fancy space to create your proposals too
 
Wouldn't normal be tomorrow off, not monday?
 
@SterlingArcher yep. Day nearest the holiday.
 
Yeah I have tomorrow off
Getting wastey faced on saturday
 
6:25 PM
@Luggage so if someone just wants to vote on a proposal, it doesn't need to register or anything, just click the vote button
 
yea, i don't wnt people to have to register
 
@ssube my node doesn't handle that much
 
God I hate registering for things
 
me too, I never know which username I am going to pick
 
When I made sc2overwatch all the users were like "Make oauth to prevent cheating the system" and I'm sitting here thinking
Only 10 people vote a game
if I put in oauth, no one would
 
6:26 PM
l33t1337xx69xx, catgocat etc..
When summing two numbers, does the carry digit ever gets bigger than 1?
 
What is the largest digit in your number system?
 
crl
why not? oh 2, so no
 
@afonsomatos No
 
@ssube Z
 
What does Z+Z equal?
 
6:31 PM
Z_Z
 
crl
2Z
 
@ssube no it's just 0-9
yeah, carry is always 1 or 0, I am dumb
 
The longest strong node can hold is 268435440 characters
Testing using var foo = '', bar = 'a'; while (true) { try { (foo += bar, foo.length); } catch (e) { console.log(e); break; } }
 
Should I work with strings or arrays? Which one has the best performance? I would assume strings as they are primitive, but I am not sure.
 
@afonsomatos work with how? That doesn't make any sense
 
6:34 PM
hi guys
I've got this code:
var feeds = [
	"http://feeds.bbci.co.uk/news/rss.xml?edition=int",
	"http://feeds.bbci.co.uk/news/rss.xml",
	"www.theguardian.com/technology/rss"
]

var feedXML;
function setFeed(x) {
	$.ajax({
    	url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent(feeds[x]),
    	dataType: 'json',
    	success: function(data) {
    		feedXML = data.responseData.feed;
    	}
	});
}

document.getElementById("feed0").onclick = setFeed(0);
 
@ssube With manipulating. With arrays, I would have a fixed size and assign each index to an element in the process. With strings, I would have to create a new string in each loop of the process.
Or maybe I would do some .push on the array as well.
 
@afonsomatos manipulating... how?
ask real questions
 
@ssube Appending characters / numbers.
 
how can I get url to change each time the function is called?
 
@afonsomatos array, push, then join
 
6:36 PM
Isn't that more expensive that str += str2
 
it's millions of times cheaper
why the hell would an array be more expensive than a string?
 
what?
an array is faster than a string?
 
even if it's a dumb linked list
yes?
 
really???
 
Only because strings are immutable
 
6:37 PM
even with all the methods and functions you have to call
 
And interned, maybe
 
push had better get inlined
 
but you mean faster when creating or when manipulating?
 
manipulating strings requires creating new ones
1 min ago, by copy
Only because strings are immutable
 
yes, but still
wow, I thought creating primitives was very cheap
 
6:38 PM
It's optimised in v8, but you should use arrays just to be sure
 
you can't create primitives
 
But I'm not sure about that
 
my worries is that arrays have a maximum 32bit length
 
Make some benchmarks if you really care
 
you'll run into a problem with a 32-bit runtime before you fill arrays
 
6:41 PM
It's really messy in JavaScript, we should have a way to use ArrayBuffers instead of strings in certain places
Especially JSON.parse
 
posted on July 02, 2015 by CommitStrip

Today, Intel is back on CommitStrip! They’re building an interesting plateform for the Internet of Things, with their Edison technology and the Curie module, specifically designed for the creators of devices. Visit the Intel Developer Zone for access to Developer Kits and support, and maybe one of you will finally build this eagerly awaited connected lamp ;).

 
@ssube lol, a bluebird promise is less expensive than an array, arrays are expensive
Mainly because it's magical.
 
Just hung up with CareerBuilder. That interview went a little better
 
Fastest array in V8 is Object.create(null) if you can't use buffers or typed arrays
 
@BenjaminGruenbaum But a Promise can't be used as an array
 
6:51 PM
So to replace strings, what do I use? Object.create(null)?
 
@copy technically it can :P
@afonsomatos why would you want to replace strings?
 
@BenjaminGruenbaum Yes, but then it won't be faster any more
 
Because I am doing some intensive 250 thousand character-string stuff.
 
@copy details, details :P
@afonsomatos do you know what the difference between a code point and a code unit is?
 
no I don't
 
6:52 PM
@afonsomatos Then you don't want to work with strings
You likely want typed arrays
 
I want something to store characters and numbers
that can handle millions of chars
 
And we told you what to use
 
I didn't really come up with a conclusion.. typed arrays, Object.create(null).. ?
 
Depends on what operations you want to do
 
What are you actually trying to do o_0?
 
6:55 PM
But a good starting point are normal arrays
 
I am doing a BigInteger library, and I want to be able to store / append / get numbers / characters.
I am currently storing these in a big string.
 
crl
you want to fix floating point errors?
 
LOL
Good luck
 
It's not really a library, just for heck of it.
 
Strings are the least of your trouble
 
But I want to make it really fast. That's why I was asking what was the best object type to use.
 
Not strings
Arrays
 
@copy lol
😅😅😅
 
I feel arrays are very slow.. push, subscript operator..
 
Do you know how any of the fast numerical algorithms for big numbers work?
 
6:58 PM
But maybe I'm wrong.
@BenjaminGruenbaum No and I don't care, I want to get it my way. It's funny this way :)
 
Start there, I'm not laughing at you because you don't know stuff, I'm amused by what you chose to attack first.
 
@BenjaminGruenbaum I know multiplication
 
@copy I assumed you know, you have an academic background.
 
@BenjaminGruenbaum I wrote an algorithm that sums 10 million digit numbers in 300 ms
 
@BenjaminGruenbaum It makes sense when he starts with simple things like addition and naive multiplication
 
6:59 PM
@copy but naive multiplication is O(n^2) :D
 
I am going to do an array version, I'll see how that works out.
 
@afonsomatos sums as in a + b for two large integers?
 
@BenjaminGruenbaum yeah
"9".repeat(10000000)
 
@BenjaminGruenbaum I think he's going for the learning experience
 
but I think I can do it even faster
@copy that's right
 
7:01 PM
@copy I think he's starting from the wrong angle.
 
@afonsomatos ruby: 10000000.times.reduce(:+)
I love ruby
I need to write more ruby
 
@copy by approaching this from the "data structure for holding a digit" angle and not the "how would multiplying and/or adding large numbers" work angle he's going to get a bad learning experience.
But ok, ymmv
 
suggestions are welcome
 
@copy right
 
Well, understanding DFT goes a long way into getting insight of how multiplication works.
 
7:05 PM
@afonsomatos Benjamin is trying to convey that you'll have a lot of reading algorithms to do
 
yeah but I'm just a kid
 
It's ok that you're a kid, I just wouldn't start with "string vs array".
 
I'm just a kid, and life is a nightmare ~
 
Hmm, if you're not ready for some algorithms yet - represent it in binary with a buffer.
 
A string is an immutable array depending on your definition of array
 
7:06 PM
Do you know how addition works for base 2 @afonsomatos
 
yes
 
Then don't start with a string
Start with a base 2 representation of the number in a buffer.
Don't use digits as your base type, that's extremely wasteful
 
ok thanks
 
A digit takes as much space as you can use at least 10 digits in. Then you can add number by number and carry.
 
7:36 PM
can someone tell me what's wrong here, because I don't see it, or where the code bug is:
    $('form.modal').on('submit', function(){
    var that=$(this),
        url=that.attr('action'),
        method=that.attr('method'),
        data={};

    return FALSE;
}
 
Error / behavior?
 
kills all javascript in the js file
 
What does that mean?
 
does a "stop(all)"
 
@php_purest FALSE is undefined?
 
7:38 PM
you defined FALSE?
 
i have oneoutside of it, so i know it works
@ivarni false is a reserved word
 
!!> 0/0
 
@Neoares "NaN"
 
what is FALSE, then?
 
@php_purest Yes, false is, FALSE is not
 
7:39 PM
!!> "Siri">"Caprica"
 
@Neoares true
 
false - stops default functionality
 
hahahahaha
 
false does, not FALSE
unless you have a: var FALSE = false;
 
7:39 PM
so lowercase >:D<
 
all variables are case sensitive.
 
and in this case, false is a 'variable', for our intent.
 
so the false !=FALSE
 
@Neoares Very funny, brb buying enhanced telephone for 1k
 
7:40 PM
there is only false.
 
; doesn't kill the variable setup?
 
FALSE, False, fALSE etc are all made up words
If by 'kill variable setup' you mean 'mark the end of a statement, then yes.
 
@luggage >:D<
 
I'm not trying to be a dick, but you gotta be clear here.
 
i didn't know false had to always be lower case
 
7:42 PM
anyway.. was that your problem? returning an undefined variable (FALSE)?
 
all the other javascript is now live
with it in there
 
well if you've been using FALSE and not seen a problem that just mean you rock a lot of dead code
 
Troll feeding :D
 
Yeah, I was starting to get that feeling
 
<not a troll, I should've shown what I had, by using you as a debugger, when it wasn't obvious
 
7:45 PM
If that's the case, add FALSE = false at the top of every .js file and keep rolling
 
people should say "FALSE!=false" in their videos
 
Or for comedy value, FALSE = true
 
functions are also case sensitive
@ivarni lol
from now on for the non-obvious things i'll "ask by code" in here
 
What should I use for running ES6 stuff? I wanna give it a shot
 
@BenCraig javascript, or maybe jquery
@Luggage my newest git plugin will be a modal that does lazy loading
 
7:49 PM
I'm not sure how that makes sense.
 
ttfn room
 
@BenCraig iojs if you can limit yourself to certain features. Otherwise babel
 
what?
 
a git plugin that is a modal and does lazy loading.
are you a recruiter reading words?
 
alrighty
 
7:50 PM
@Luggage no, i used to be a merchant seaman who survived "a few good men" code red
shipmate+surgical scar:
 
ok..
 
10 screws, and a plate
i should put this as my new photo:-?
I'm out
 
crl
user image
2
 
8:08 PM
@crl what image?
 
LOL
 
why does that removed image get starred ?
 
the one by crl?
then you should star mine ;)
 
It's not removed for me.
 
@Luggage please forgive me, but this kills again:
$('form.modal').on('submit', function(){
    var that = $(this),
        url = that.attr('action'),
        method = that.attr('method'),
    data = ();

    that.find('[name]').each(function(index, value)){
        var that = $(this),
            name = that.attr('name'),
            value = that.val();
        data[name] = value;
    })

    console.log(data);

    return false;
}
 
8:14 PM
I still don't know what 'kills' means.
error message. Need one.
 
killed to the point of dead
 
js file = death
 
@php_purest I see unbalanced ( and )
 
ahh, yea, on the .each().
 
But tbh I am close to not bothering any more, this shouldn't be the first stop for trivial syntax errors
@Luggage And no closing the .on
 
8:16 PM
agreed, @ivarni
 
so it's .each()?
 
use jslint or some tool that can spot bad code because "js file = death" is basically "no worky, i'm too dumb to tell you how"
 
I was advised yesterday not to feed the vamps
 
Yea. I'm done.
 
8:17 PM
just ordered a 27" 1440, 144hz monitor
yeah boooy
will be here tomorrow
 
@php_purest if you aren't capable to detect these syntax errors, please use an IDE or tools like jslint on your text editor
 
@KarelG i use console
 
just checked my 2nd bank account. My yearly rent bonus minus costs: + 1 EUR.
 
@Loktar I just ordered a 28", 1450 145hz monitor.
 
maybe i should figure out how to do a "click to javascript" interface
 
8:19 PM
and it'll be here an AN HOUR!
 
@Luggage damn dude
/me cancels order
 
m59
I just learned an interesting thing. Maybe should have been obvious.
 
seriously, @luggage?
using amazon?
 
No, not serious.
 
lol
one hour shipping would be glorious
 
m59
8:20 PM
For any docker / future docker users, if you use -v to mount a directory, the literal directory is mounted NOT its location. i.e. if you remove that directory and put it back, the mount is effectively gone.
 
not that ridiculous in SF, actually
 
I'm in antarctica
 
m59
Would that be obvious to you experienced linux users?
 
oh yeah. That's 2 hours at least
 
Or worse.. Ohio
 
8:22 PM
say it isn't so...
 
m59
I was thinking of it like a map path:path rather than linking directory:directory.
 
@m59 I'm not sure, but I think it shouldn't be possible to remove the directory
 
m59
I can, hence my confusion. I have a task that removes it, creates it, then boots up the container and writes to it and another task that boots up a container that reads from it.
If I start the reading one first, it won't ever see the written files because that directory was removed.
So, I just have the directory emptied rather than removed and all is well.
Trolled me for about an hour, though.
 
inb4 fuse
 
there is an electronic online webshop which can deliver the goods the same day if you order before 14h (2pm for usa)
 
8:27 PM
@afonsomatos When you can, please check Slack.
 
what's it called?
 
why does lint want this:
Expected 'use strict' before 'var'.
 
but the price isn't always the cheapest. I'm patient, so "quick" delivery isn't really important
@GarrettKadillak coolblue.be : free delivery and returning too ofc
 
@afonsomatos When you can, please check Slack.
 
We've a shop over here were you can buy stuff online and then drive to the store and pick them up. I'm not sure what exactly the point is.
 
8:28 PM
You don't have to wait for them to make the pizza
 
@ivarni sorta "reservation" ?
 
@KarelG I suppose.
 
I've been to an electronics store like that as well
 
You can send some idiot co-worker or family member to pickup a part.
 
here's the store I went to. Great parts, btw sparkfun.com
 
8:31 PM
Homemade fireworks?
 
@Luggage i usually ask some1 to pickup if the pick up store is on their road
 
What can possibly go wrong?
 
their site name bruh
 
I wish, @ivarni
 
Wait I don't get it, they're closing for independence day? Isn't that when you guys really light that stuff up?
 
8:34 PM
Can someone explain this?
 
Hello guys
I have a question.
 
m59
@ŠimeVidas comparison vs assignment?
 
@ŠimeVidas JavaScript doesn't have tupels
 
I'm working on a Bootstrap Project. So here's the situation:
I have 2 buttons which toggles modal but their html code is different from each other.
Should I create 2 different modals for this ?
Infact these 2 modals have used in the 2 other files. 1 for each file
Should I import modal from those files using jQuery ?
 
If (0,a) evaluates to a, why can't I assign to it?
 
8:38 PM
Or should I create 2 modals in my HTML document ?
 
@ŠimeVidas It evaluates to the value of a. JavaScript doesn't have lvalues
 
gotcha
Interestingly, (a) seems to evaluate to the reference, since (a) = 'foo' works.
 
What should I do ? Can someone tell me ?
 
write an adaptive modal ?
more challenging but the result is more satisfying n.n
 
Then where should I store html code if I use 1 modal ?
Should I use jQuery's .load() method ?
But that's not an appropriate method
@KarelG what should I do then ?
 
8:42 PM
@ŠimeVidas Interesting. Note that ES6 has some forms of destructuring, for instance [a,b] = [3,4]
 
crl
!!> var [x, y]=[1,2]; x;
 
@crl 1
 
Oh look, @ŠimeVidas , haven't seen you here in a year, what's up?
 
work :)
 
Of course it is fucked up again, let [] = 3 or let [x] = [] don't throw
 
8:46 PM
@copy that's destructuring
 
my JS is getting rusty -.-
 
Not the same thing.
 
@BenjaminGruenbaum I know, read up
 
@ŠimeVidas JS doesn't rust :P Working on anything interesting?
@copy oh ok.
 
@BenjaminGruenbaum Just Web Platform Daily for the last ~2 years
 
8:47 PM
Cool :)
 
!!> var [x,y,z] = [1,2,3]; z;
 
@KarelG 3
 
TIL ...
 
It gets worse :D Object spread is confusing :D
 
show us
 
crl
8:55 PM
!!> var x=1, y=2, a = {x, y}; a;
 
@crl "undefined"
@crl {"x":1,"y":2}
 
so far so nice
 

« first day (1720 days earlier)      last day (3244 days later) »