« first day (1813 days earlier)      last day (3140 days later) » 

7:01 PM
@christiaanderidder looks reasonable to me.
 
Thanks for having a look
 
@Zirak im using it to test a string .test(string);
 
"Killer is dead" game is unusable on a PC
 
So why is it wrong to use RegExp?
 
@rlemon I did it as part of routine, now my hellevator has no water :(
 
7:14 PM
why do you need water?
 
To cushion the fall
 
well you can't have water in hell
so you have to stop short and add a bucket or two there
or get wings / jetpack
or just before you hit the ground use the hook
 
Or use spider webs. Remember to reset
 
This is a little off topic, but is anyone familiar with SIC/XE?
 
@Aven 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.
 
7:15 PM
@Asperger It's not exactly "wrong", it's less right. You have a literal syntax which understands regexps, so you don't need to double-escape backslashes and things like that.
 
y'all are zebras
 
And your regexp is correct, so as said
20 mins ago, by Zirak
So your princess is in another castle.
@rlemon What do you take me for, a pleb?
 
yes
 
yes
 
Just wanted a nice auto-cushion; I used to make a small several tile high area filled with water
Nice on large world where you can jump into the hellevator, afk, and remain alive
 
7:17 PM
another fun solution is using rope/chain on the bottom and give it a nice mesh.. hold up while you fall
 
so instead of this new RegExp("^[^#.]+$").test(elem);
edit: I do this: /^[^#.]+$/.test(elem);
 
What do you think?
 
^
 
More accurate.
Also, I hope for you that elem is a string and not a DOM element.
 
@Zirak it is a string. Well a variable containing a string
I think the mozilla documentations are the best out there
@Zirak when exactly does one use RegExp?
 
7:23 PM
When constructing regexps dynamically.
 
I understand, I just never constructed one dynamically so I cant really imagine how such a scenario would look like. I will keep it in mind though
 
plus points if your dynamix regexp is generated by a regexp
 
21
Q: Javascript Regexp dynamic generation from variables?

SomebodyHow to construct two regex patterns into one? For example I have one long pattern and one smaller, I need to put smaller one in front of long one. var pattern1 = ':\(|:=\(|:-\('; var pattern2 = ':\(|:=\(|:-\(|:\(|:=\(|:-\(' str.match('/'+pattern1+'|'+pattern2+'/gi'); This doesn't work. When I...

 
How?
 
@Zirak thanks a lot for your tips
 
7:26 PM
Good luck.
 
7:43 PM
I can haz logo design skills
 
@SomeKittens is that keyboard mechanical?
 
AFAIK
 
Why is WASD backlighted? Web dev aint no game :p
 
@tereško uh, so?
I'm aware there are other keyboards out there - I have a Das at work myself
 
7:47 PM
:)
 
Das are overrated anyway
quality has gone down in recent years.
 
I got plenty of bang/buck on mine
 
^ same here
build quality seems really good
 
forgot exactly what model I have. I think 3? Mac version. Got it used for $40
 
yeah they switched manufacturers to ione, quality has been complained about ever since.
I think it happened around 2012?
they used to be made in Japan
not saying they are junk, just the name "Das" isn't what it used to be
 
7:50 PM
yeah, they used to be the keyboard
 
yeah definitely
from what I've seen Ducky is gaining in that area
people love their Duckys
 
Really? One of my friends got a Ducky and wasn't impressed
 
But its just good we have a lot to pick from!
 
wasn't bad, just expensive for what it was
 
@SomeKittens I don't like the look of them, but they have a really strong following
people are nuts about the Ducky Shine
 
7:52 PM
then again, I'm typing from a MBP silly keyboard
 
haha
man people swear by those too
 
@Mosho Where did you buy your Kinesis?
 
just all comes down to preference in the end obviously
haha I just have a recent obsession with Mech keyboards and any chance I get to talk to people about them I take it now
feel almost as bad as a linux fanboy :p
/me goes back trying to get win98 bootable iso working
 
@Zirak I'm gonna get that
less crazy
 
7:57 PM
Except for the ctrl/alt/shift placements
 
those things are so nutty looking
never typed on one before though
there are some recent ones that even split down the middle allowing you to place then at the exact location you need
 
@Zirak oh, these suck yeah
especially for emacs
@Loktar ha saw that, it looked really ugly though
 
@FlorianMargaine Did you read up a lot on it? Ergonomic keyboards are tricky - you either get the one where you're in heaven with, or you get one that isn't actually beneficial and you end up wasting a lot of money.
@Loktar Those look fucking amazing
 
thats another nutty one I've seen people go crazy about
 
That's what @Mosho has
 
7:59 PM
expensive as hell
 
@Zirak I have a slightly ergonomic one (not split, but the shape is already there), and I really like it
and tbh, it's $30...
 
I want an erogenous keyboard.
 
yeah thats not bad at all @FlorianMargaine
if it sucks not much lost
 
@FlorianMargaine Oh then by all means
 
Is this an appropriate forum for questions about node.js?
I don't see a chat room for that
 
8:00 PM
I just use voice-to-text
@IDWMaster node .js
 
@SomeKittens that must suck for code
 
@FlorianMargaine you should ask my coworkers
 
so unless you're a manager...
 
@phenomnomnominal Interesting...you can use those muscles in a variety of fashions
 
@Zirak I haven't entirely thought it through.
 
Quick question about resource management in node.js -- do Sockets automatically finalize themselves; or is there some kind of "dispose" method or equivalent that needs to be called when a socket gets closed? Example code: pastebin.com/gWUJBbps
I'm new to node.js
 
@phenomnomnominal Poser.
 
^ thats pretty cool as well, can build your own
 
@Loktar yeah, the "small" part sucks tho
 
@Zirak the biggest
 
8:03 PM
@IDWMaster You just need to call close / end - and if you look at the docs for pipe, you see that it automagically does that for you.
 
@Zirak Thanks. So I should be fine in this case?
 
@IDWMaster generally speaking, look at the docs, they're fairly complete and easy to skim through
 
@IDWMaster Yep yep.
What bums me out about buying keyboards non-locally is the keys only come with English letters on them. I personally don't mind, but certain family members want to kill themselves when they use my laptop
 
@Zirak I'm using an OSX keyboard on a Linux PC so I feel your pain
because that's exactly how it works
 
8:06 PM
Just me who doesn't give a fuck about keyboards? Does that make me a bad programmer?
 
Ctrl vs. Cmd and that shit?
 
We need a world dictator that can force everyone to use the same keyboard layout, language and charset
 
Imagine giving your mother a blank DAS keyboard. That's how it is here, basically, if you only have English on the keyboard.
 
@Zirak yurp. Though I did switch them
 
@phenomnomnominal That's healthy, continue not wasting your money.
 
8:07 PM
@Zirak I waste my money, don't you worry.
 
And don't touch mech / ergonomic keyboards so you won't be tempted.
 
setting "alt" to "ctl" is to normal users as setting caps lock to ctl is to emacs folk
 
I just can't afford another thing to waste it on.
 
I dunno, when you spend 8+ hours a day typing on a keyboard it makes sense to get one that feels good to use
 
how on earth do you do ctl + a?
 
8:08 PM
@phenomnomnominal Buy me something pretty :*
 
@ivarni Agreed
For most? Meh
 
but if you were a truck driver, you'd get a nice seat
@phenomnomnominal A uniquely Kiwi product!
 
* Dolly the sexy inflatable sheep
* inflatable sheep
* sheep
* inflatable sheep stag
* stag
 
@ivarni but really, I spend 5/6 hours a day talking/thinking about stuff and helping others code.
@Zirak knew you'd love it
 
8:10 PM
@phenomnomnominal just started as team lead for a new project and YUP
 
@tereško dat volume knob
 
I need mechanical post-its
 
@phenomnomnominal Hey, I'm not gonna force you to buy a mechanical keyboard, just saying it's a fairly important tool for programming :)
 
@Zirak it makes ticks, when you scroll it
 
If you take the price and divide it by number of hours spent coding before it breaks you end up with a fairly low rate
 
8:12 PM
This is the first time I experienced something resembling sexual arousal from hearing a keyboard's description
 
@ivarni oh yeah I totally agree. I've just never found tooling (of any kind) to be a bottleneck. My brain is the bottleneck. Maybe I just need to get smarter
 
It's not the bottleneck, it's comfort. You have a comfy chair, I assume, and you have good headphones, etc.
 
And a big screen
hopefully :)
 
that's true
and I spent way too much on my headphones haha
 
@phenomnomnominal lucky you, I've had tooling be the bottleneck quite a bit
 
8:13 PM
Everyone also has their own levels - you're a musician for instance, so you're more likely to get quality headphones than Joe Half-Deaf
 
I still need to get good earphones and a good mouse
 
I've a 24" and I think it's too small. Screen that is.
@tereško Bose QuietComfort is amazing
 
@SomeKittens anything in particular? Do you use TSLint? That shit is slow.
 
@ivarni The lady giving you complaints?
 
@ivarni don't recommend bose :P
I want a 3rd 24"
 
8:15 PM
@ivarni I have been looking at options form Sennheiser (and at Mionix for the mouse)
 
Browser + IDE is what I generally have now. I want browser + ide + terminal
I can strongly recommend Shure if you want in-ears.
 
@phenomnomnominal Stupid build processes that take 5+ seconds from save to me actually being able to see things in action
 
@tereško Been fantasising about a Trackman Marble for a few months.
 
@SomeKittens which part of the build?
 
I'm not a driver programmer - I need fast feedback!
 
8:16 PM
Logitech, why are you eye raping me with that video?
 
@phenomnomnominal In that case, it was Browserify, poorly configured (Yes, let's redo EVERYTHING whenever a file is changed)
 
@SomeKittens oh yeah that's a classic.
 
> You're only required to have three things: A non-zero level of JavaScript knowledge, a GitHub account & a willingness to ask questions.
^ sound good?
@phenomnomnominal and then the antipattern-driven-developer who set that up uses it as a reason why we should rewrite everything in the new buzztool.
 
"a Github account, and"
 
@SomeKittens We're currently struggling with that at work, webpack spends 20 seconds when we change a less-file :/
 
8:18 PM
get that oxford comma in there
 
If you blame your tools for problems like that, the problem is a tool, and the tool is you.
 
Yeah it's not webpack's fault
 
(Said snippet is for people interested in the Angular hackday. Trying to encourage people who think they're not good enough to still help)
 
It's probably mine, I set it up
 
@ivarni er, sorry, didn't mean to implicate you
 
8:18 PM
@ivarni We ripped out webpack and it was the best decision we ever made.
 
@phenomnomnominal Why's that?
I just set it up for a new greenfield project
 
Cause of the config nightmare that it is. And with the aim of getting in the right direction for Angular 2. We went with System
 
@SomeKittens Well, it would be totally correct to implicate me, I was the one who swapped browserify for webpack
 
@ivarni well, didn't mean to call you a tool.
@phenomnomnominal it was a bit of a hassle to set everything up
 
We're doing route-based bundling and the amount of fuckery we had to go through with Webpack to get it to work was ridiculous (and the amount of noise it added to the code)
 
8:20 PM
but it does JS & SASS, so that's a win for me
what's route-based bundling?
> You're only required to have three things: A non-zero level of JavaScript knowledge, a GitHub account, & a willingness to ask questions. The hackday is for programmers of all skill levels. Even if you're just starting out, we want you to succeed.
 
We bundle our code from a glob /*Router.ts down.
 
^ ok, sound better (in terms of "it's ok if you're new"?)
@phenomnomnominal Still on the fence about how much TS I should use in this project
 
@SomeKittens What's this Angular hackday?
 
@SomeKittens I'm fully on board with it now. For projects of the scale that we're working on at least.
 
@phenomnomnominal I love it. If the project is just me, I use it everywhere. Problem is, this is a team thing
 
8:23 PM
My favourite part is that we used the types from our .NET to generate TS types of our whole API.
 
I'm already introducing a bunch of other concepts that are more important to me.
@phenomnomnominal Node backend for us
 
Right, so as soon as it hits the back you're not really safe anyways
 
@SomeKittens That's missing a "what" header.
 
so frontend is ES5, backend is whatever ES6 is in node latest, and the tool I built (Gustav) is in TS
 
Oh it's part of "when", I'm just stupid.
 
8:26 PM
I'd move front-end and backend to ES6, and actually transpile
Then once the team is used to that, add types.
 
@phenomnomnominal Given it's Angular frontend, might not be a bad idea
there's just SO MUCH to this project that I don't really have time for all the bikesheddy build process things
The joke at work is that everyone's got two jobs - the one you were hired for and another one you pick up in the first few months.
 
@SomeKittens we're looking at using this too: github.com/MikeRyan52/angular-decorators
 
Keep in mind I've never written A2
@Zirak Hold on, that's a good point
 
I guess another valid question is whether you plan on (/will get resource to) upgrading to A2
 
what should be front and <center>
@phenomnomnominal Not just yet.
This project is already pretty bleeding-edge as is
 
8:30 PM
fair enough
 
The original mandate was "only" to redo how we process data at work.
Last time I checked, we were doing ~1TB every 50 minutes
batch -> streaming
 
so the client is relatively unimportant then?
 
      <h2>What?</h2>
      <p>The Angular FOSS Hackday is a monthly event where JavaScript programmers of all skill levels band together to help out an open-source project.  The goal of the project is to help you help open-source.  Every month, there will be project maintainers and senior programmers available to enable you to help the community as a whole.</p>
@phenomnomnominal That's the original mandate. We're doubling down.
aaaand right about here is where I'll have to stop talking.
hopefully in a few months I can be more detailed about that angle of the project
 
haha fair
 
but suffice it to say the client could turn out to be the most important part.
 
crl
8:38 PM
With Angular, for work, I try to make a sort of CMS, where the user can edit/move/add things in-place. The user has a choice between several templates, so would you store the templates in file system and fill them with data from DB, or store everything in DB? Can you even fill you page dynamically with Angular?
 
@crl Filling your page dynamically is what Angular's all about
What are your templates represented by? HTML?
 
Angular is also about inlining javascript events in your html
 
@Zirak Added "What?" section
@Nick No, it's not. Don't confuse beginners with political stunts.
 
MAKE ME
 
kicked :P
 
8:40 PM
thank you
there's too much infighting among frontend framework enthusiasts.
 
@SomeKittens :shipit: :throbbing-heart:
 
@phenomnomnominal Chill your tits
 
@copy my tits are perfectly frosty thanks
 
Can confirm
Perfect temperature
 
I'm not a front end framework enthusiast; I just don't like angular
 
8:43 PM
@Nick how much angular have you done?
 
Enough to know that I don't like it. As part of my onboarding at work, I had to use Angular to create a faux feature that integrated our api, etc.
 
So you know how the first time you go for a long run, it's really hard? And you hate it?
 
No
 
@Nick Y'know what I don't like? Red onions. And yet I manage to not shout my opinion about them whenever I'm around red onions.
 
crl
@SomeKittens that's the choice to do, either HTML or a json in DB. It's quite more complicate with Angular, imagine I get a json like {nav: [{a: ['some url', 'text']}, {a: ['other url', 'text']}], content: {h1: 'Hello world'}}, how difficult would it be to load it on the page with angular?
 
8:44 PM
I love red onions; do you really not like them?
 
@Nick Correct. Not a big fan of regular onions either.
 
Strange; Onions are amazing
 
What about garlic?
 
onions pie is the best
 
onion soup
 
8:45 PM
England are totes about to drop out of the RWC. So good.
 
so (surprise!) people can have different opinions about things. And they're just that - opinions. So don't act like you've got the Torvalds Truth because you wrote a basic app once.
@ivarni love garlic
 
@SomeKittens Good, then there's still hope :)
 
I am the end all, be all when it comes to opinions
 
#expertbeginner
 
@crl It's best to keep your HTML as HTML. I'd say in separate files, keep the filenames in the DB
!!s/#/#s/
 
8:47 PM
@SomeKittens #sexpertbeginner (source)
 
!!should I learn go?
 
@SomeKittens Certainly not
 
crl
!!should I go learn?
 
@crl I'm not so sure anymore. It can go either way
 
!!should everyone just use PHP?
 
8:49 PM
I enjoyed my brief experience with Go
 
@SomeKittens +4, onions are the worst.
@ivarni Horrifying, second in terribleness only to onions.
 
@SomeKittens you're quite agressive; Nick just said his opinion, he didn't say "your opinion is definitely wrong"
 
@Zirak Ah, someone agrees with my opinion! Let's form a subreddit and pretend said opinion is actually objective truth, downvoting everyone who disagrees.
 
@SomeKittens /r/onionhaters
 
I have no strong opinions on onions or garlic, so you can probably sway me either way with humour.
 
8:51 PM
@Zirak /r/onionhatersmasterrace
because we're totally cool with associating ourselves with Nazi ideological symbols!
 
crl
I have no opinions on onions nor anions
 
awww yiiiiiisssss
 
Think of onions as a JavaEE application, the more layers you peel off the more you cry. But if you kill them with fire they're alright.
 
@ivarni yeah, once they're cooked I'm more ok with them.
 
crl
@SomeKittens ok thanks
gotta advance that work
 
8:56 PM
@crl Do you use Slack?
 
crl
@SomeKittens no, never heard of it, checking it now
a sort of skype/hangout?
 
It's IRC with a new skin
from what I could tell
 
crl
ok
 
@SomeKittens GOOD NEWS
So I was on the submission form for creating a subreddit, and as I was hitting submit, it told me THIS ALREADY EXISTS
 
#peakinternet
 
9:00 PM
@crl Yeah, another chat system. Lots of nice features under the hood. There's a fantastic Angular community you can join via angularbuddies.com
 
crl
@SomeKittens thanks, interesting
 
@phenomnomnominal make it cook for 2 hours, no texture, only taste
 
The taste is the worst
 
@FlorianMargaine onions are quietly pretty great
with a sausage off the barbie.
 
9:04 PM
I thought you only threw shrimps on the barbie?
 
naaah, that's aussies.
over here we throw anything
 
You're supposed to love your Barbie!
 
/me is barbie girl
 
Oh right, wrong stereotype, you're the ones with the wooden decks :)
 
I always have kids around to play on my deck
 
9:22 PM
^ you lot
 
Could someone please (with firefox greater then 34) try the demo in my answer: stackoverflow.com/questions/9018732/… and see if there is no string 'undefined' in the result? Because of this strange disturbing note on developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…
 
9:38 PM
hm, i wonder if that's the structure they use live or just some export schema
 
what a boob. ohh well, he'll be left behind.
 
Yeah, much like that guy, I don't use any sort of plastic payment. If they don't accept a personal check, I go elsewhere.
 
..?
hopefully a joke
 
I wish everyone else eschewed that, the world would be much better if we ignored any innovation.
@Luggage yes, joke
 
9:42 PM
ohh, ok
 
I panic when I see "Cash Only"
 
pretty please? (I'm not soliciting views/votes, just checking that that change doesn't affect my code, and I can't check because I'm not allowed to install such a new firefox)
 
i thought maybe you were an amish programmer
@GitaarLAB browserstack.com
 
And somehow ST and TS don't cooperate anymore
boo.
 
ditch'em both
 
9:43 PM
emacs.
 
welcome emacs and lisp
 
emacs and visual basic.net
 
@Luggage: ?
 
ok, what do i click? "remove comments" or "exp"?
 
either (and thank you!!)
 
9:46 PM
firefox 40, win7 i see code in the output
 
@Luggage: no string 'undefined' in output?
 
pretty sure not.. unless it's camoflaged in there
 
@Luggage: thank you very much!
 
@FlorianMargaine you use a mouse with emacs at all?
 
@Luggage sometimes, yeah
 
9:54 PM
hm.. ok.. damn. osx has now mouse support in the etrminal..
 
I don't use emacs in the terminal
 
> Then I call call it with html here but doesn't work
 
> WARNING: TypeScript plugin initialized.
 
hm. the non-terminal veriosn is ugly and i haven't foudn where to change the background/colrso, yet.
 
WARNING: things worked as intended
 
9:56 PM
@Luggage Emacs 24+? M-x load-theme
 
@Luggage install a theme (M-x package-list-packages and search around)
 
You also have a bazillion themes available on elpa/melpa
Google "emacs 24 packages"
 
yes, 24.something.
 
You know how I know programmers are bored with their job? They're talking about IDE themes.
 
!!xkcd compiling
 
9:59 PM
 
yeah, no
I have glasses and the occasional migraine. A good colour theme is essential or my brain melts.
 
True
 

« first day (1813 days earlier)      last day (3140 days later) »