« first day (1749 days earlier)      last day (3199 days later) » 

2:00 AM
i'll change my name back soon
 
just stop using two accounts whatever they are named
 
then who would he talk to
 
^
 
@Mosho Terrible idea.
 
We aren't the same person, doofus
 
2:00 AM
we're different people, don't worry
 
@KendallFrey for development
 
see we sent that at the same time, obviously can't be the same person
 
why is it terrible?
 
@Mosho Because it's broken
 
yea, sure. you always seem to say the same thing.
 
2:01 AM
const protects the variable, not the object
 
if you are two people, then it's really strange.
 
no
 
no
 
we'r talking php_purest level of annoyance
fuckit, i'll just ignore you
 
your spelling is php_purest level
alright cool, cool
sweet I just got plonked for nothing
and to think we were having a good conversation this morning
 
2:02 AM
@KendallFrey I see your point
 
Don't worry, I'll share my coffee cake with you
 
ohh neat, it makes the icon smaller so you can remember you have someone ignored, never used it before
 
still, I would like for that to happen somehow
 
@Nick thx babe
 
maybe just freeze all the things altogether
I think using const as a trigger for it could work, even if it's not the most correct behavior
 
2:04 AM
That's an understatement
 
someone tell luggage to unplonk me in a week when his butthurt cools off
 
not me
 
Those two snippets share no common behaviour that isn't common to all variables
to put it bluntly
 
well I want native immutability
only in development
 
Cool, the new "multiple desktops" feature in windows 10 works great
 
2:06 AM
so make it happen nao
 
the keyboard shortcuts could be a bit better, but it's not bad
 
good idea, but const has absolutely nothing to do with immutability
so we need a new thing
 
you've been 'unplonked' because i hate not knowing if people are replying to comments I can't see.
 
@Nick like spaces in OS X?
 
immu foo = {}?
 
2:07 AM
@Luggage thanks
i'll change my name back if it really bugs you
 
@ʞɔᴉN Exactly like it
 
I don't want to litter the code with non-standard stuff
 
@ʞɔᴉN Or workspaces in i3 linux.
 
do you want shallow, or deep immutability?
 
it's a function either way
 
2:07 AM
You are either one person on one really odd person that like to pretent to be other people and either way, It's just odd and annoying.
I consider you a pure troll
 
but deep, I guess
 
@Nick I spent like a week trying to find a similar solution a few years ago
glad to hear they finally added that feature
 
@Mosho var foo = {"immutable", ...}; taking inspiration from strict mode
 
luggage what if they're 2 people but they're in 1 room
 
shit even gnome had workspaces for as long as I can remember
 
2:08 AM
@KendallFrey I don't like it :\
 
It's only taken Windows since the dawn of GUI-time.
 
That's just as bad, becasue this double person thing, and coordinated comments has been going on for weeks, at least.
 
@Luggage just a bit immature, I wouldn't consider myself a troll though
 
@Mosho Well immutability is a property of the object, not the variable
 
I understand
 
2:09 AM
@Luggage there have been no coordinated comments
 
Rather ugly than misleading
 
weeks worth of trolling is ban-worthy in my mind, of such a thing existed
 
@ʞɔᴉN ... yet
 
I may as well just wrap shit in a function that I change to a noop in production
 
what should deep freezing {window:window} do?
 
2:09 AM
or strip it
@JanDvorak break shit?
 
with a fan, ideally
 
I imagine it would have a similar effect to freezing an actual window
 
nope. Windows just froze. :P
ok sorry for bad puns
 
let's just say that accidentally attempting to freeze a parent frame causes all sorts of uncatchable exceptions.
 
I would say making immutability deep within an object literal would be ok
 
2:13 AM
should deep freezing an object be a transaction, so that if you can't freeze everything, you freeze nothing?
as in, only for objects instantiated by the literal?
 
@JanDvorak yeah
 
Should assignments be silent errors, or loud ones?
 
loud errors are almost always good
(I don't know what you mean though)
 
var x = immu {}; x.x = "x"
 
does anyone here actually try to handle all errors while they're writing code?
 
2:18 AM
nope
 
ideally eventually
 
no, fail fast.
 
i recently wrote an equals function and didn't even have an instanceof check
 
ok I thought I was alone
 
@JanDvorak ES6 updates Object.freeze to fail silently
 
2:19 AM
@JanDvorak loud as all hell, please
 
var x = {{...}};
 
@Purag i have a question somewhat related
 
sends Kendall a Spinal Tap amp
 
@Mosho Poor Liquid
 
Someone shoulf write an ES6 coding convention
 
2:21 AM
@ʞɔᴉN what's up?
 
was trying to figure out how to word it
what's the best way to check if an object doesn't exist?
 
define 'doesn't exist'
never declared?
 
pretty sure I usually do something like typeof x == null
@Luggage well, null or undefined
most cases I don't really care about the difference
 
!!> [0, undefined, null, ''].map(function(x) { return typeof x == null; });
 
i feel like obj instanceof Object == false may work? idk. never needed that before
 
2:23 AM
cap?
[0, undefined, null, ''].map(function(x) { return x == null; });
// returns: [false, true, true, false]
so just x == null is good.
 
cap's dead
 
she's just sleeping
 
I blame windows 10
 
@Luggage the problem is it throws an error if it isn't defined, that's why I've taken to using typeof
 
@rlemon it can take it, because it's the OS we deserve, but not the OS we need right now
 
2:29 AM
was hoping there was a more elegant solution than checking for 2 cases, null and undefined
 
variables should never not be declared
 
@ʞɔᴉN undefined == null //true
 
unless it's on an object.. like someObject.someProperty
but 'someObject' is either declared or not
unless you are ding some form of 'eval'.
 
not really sure what I'm doing
 
@Luggage what if it's an argument?
 
2:31 AM
just stuff I've ran into in the past
 
if you don't pass in all arguments, they are undefined but still declared
 
oh, yeah
 
undeclared variables is just bad code. Not an insult, it just means you are refering to variable name you never declared and that should never happen if you aren't playing fast and loose with scope.
linting should find that, I think
 
yeah, well.. javascript
 
well, to put another way, you don't ever CHECK for undeclared because that's just a bug to fix and then the problem is gone
 
2:35 AM
so for possibly undefined args, from the sound of it you'd still have to check typeof === undefined correct? seems like that's how it's usually done
oh
well sometimes it's nice to have functions that you can be more flexible with, rather than overloading
 
undefined is not a type
 
no, just == null is good enough
 
^
 
or == undefined
 
^^
 
2:37 AM
but..
 
is it s ReferenceError you are getting?
 
I'm hungry but it's 5:40
 
so here's an example: if (x == null) console.log("nope");
 
where the fuck am I going to eat now
 
@Luggage yep
the code doesn't even execute
 
2:40 AM
 
so you have no x = ... or var x = ...?
you are just expecting it to be in the global scope?
 
hmm
It may be declared somewhere (i.e. in arguments) but not initialized/defined
 
if so, that's 'bad' but you can still do that just by: if (window.x == null) ...
no reference error means it's never declared.
undefined is no problem.
 
nasty
alright I see
 
2:43 AM
function foo(x) {...}

foo(); // x will === undefined, but will give no ReferenceError.
so it's not an argument
 
in my tests I hadn't declared x anywhere, that's where the confusion came from I believe
 
sounds like it.
 
What's that terminal emulator that some people in here use (winodws)?
I'd love to get a replacement for the default shitty cmd
 
cmdr or conemu
 
@Nick I'm a pleb and use cmd
 
2:45 AM
cmd is not a temrinal emulator, it's a command interpretor
 
Sometimes Powershell, but mostly cmd.
 
same.
 
ah, cmdr was the one
 
I use sourceforge.net/projects/console (which doesn't actually look liek that ugly-ass screenshot, it looks like cmdr)
 
@Luggage I never said it was a terminal emulator, if you're going to complain about a "pure troll", please don't troll yourself.
 
2:47 AM
but it's old and unmainted, im goignt o try out cmdr
He asked for terminal emulators to use cmd.exe with, so I was correcting you since many people confuse the two.
 
git bash does the job for me
 
ok, so we're talking about command interpreters, now
cmd.exe, powershell and bash.
 
just ssh into a Mac
 
windows is confusing since it 'hides' the terminal emulator from you
in linux, you fire up xterm (the terminal) and then use bash inside that. In windows you jsut fire up cmd.exe and windows silently opens that with conhost.exe, which is the built-in 'terminal emulator'.
 
!!s/Mac/Linux box/
ah fu caprica.
@Luggage Wow, didn't know that. Is it any faster sending commands to conhost.exe than it is cmd.exe?
 
2:52 AM
@Callum just ssh into a Linux box
 
So am I not a troll anymore?
 
@Luggage Hey, everyone trolls at times. It's internet-dweller-nature. However proclaiming trolls to be bad is a bad idea :3
 
conhost.exe is just the UI program that renders text and such.
 
Ah,
 
conhost.exe is also what hosts powershell or ANY commandline program that windows opens.
(not powershell ISE, which is special)
 
2:56 AM
@Callum same here
if I need a better shell environment I just use linux/os x
 
that's why I went mac.
 
@ʞɔᴉN I use linux, because my mac is shit.
 
but unix tools on windows and something like cmdr is not so bad.
even the built in ternminal, if you adjust the settings
 
@Luggage macs are actually quite powerful dev tools
 
@ʞɔᴉN heh, not mine.
 
2:58 AM
also, git commandline installer, choose to put unix tools in your path, and things get nice.
Don't gotta sell me. I love mine for development
I hate finder, though.
Windows Explorer is vastly superior
 
@Callum yeah, yours is pretty much useless IMO
 
@ʞɔᴉN It can run Brackets, almost.
 
@Luggage seriously?
 
@Luggage cmdr is seemingly built on top of conemu
 
@Callum would definitely not recommend a (somewhat) bloated editor like that for your hardware :P
 
3:00 AM
The only useful thing about it is the unix environment and that sexy multitouch trackpad.
 
explorer has an address bar and better keyboard navigation than finder
 
@Luggage explorer still doesn't support tabs or column view as far as I know
dude
column view
 
Finder seems to restrict you, somewhat.
 
yea, tabs are ok, but it doesn't make up for the rest
It's not like i'm some any-mac guy. I'm on my mapbook right now in OSX.
 
My explorer doesn't have tabs. My explorer has a slot for me to put a punch card in...
 
3:01 AM
shift+cmd+g if you want to enter an address directly, not ideal but meh
 
I didn't just give finder 5 minutes and toss it aside, i use it every day
 
i know
how do you navigate explorer with keyboard effectively though?
 
yea, but the explorer address bar, with the segments and arrows that let you quicklygo back and choose another folder is quite nice.
just type, and hit enter to go into a folder
backspace to go up a level
 
@ʞɔᴉN Arrow keys, delete key, home, end, backspace,
 
I've improved my mouse control so much ever since I started using windows every day, simply because I have to click everything
huh, never really thought of doing that
 
3:03 AM
I have more key shortcut combinations on my Windows laptop, that's a bonus of using it I suppose.
 
I also like windows task bar better than the mac thingy
and multi-window apps can be troublesome
BUT..
OSX workspaces are really nice.
 
definitely enable column view in Finder if you haven't already, it's way better than whatever the default is
@Luggage yess
 
yea, I use column view. It's helpful, but I still miss explorer
 
3:05 AM
@ʞɔᴉN I've got icons, list, columns, and cover flow. I use the terminal, because it doesn't lag.
 
@Luggage command-tab & command-tilde (grave mark?)
 
Oh my god, windows added copy/paste in cmd finally
 
you know when som windows app pops up this monstrosity instead of the better file picker?
functionx.com/visualstudio/dlgboxes/browse1.gif (windows 'simple' folder picker)
 
well, keyboard copy/paste
 
Well, finder feels like tha. It feels restrictive
 
3:06 AM
@Nick That's one thing I like,
@Luggage That is literally the folder selector, built by microsoft.
 
yea.
 
I don't know why they haven't changed it.
It makes my eyes bleed fireworks.
 
You can select folders with the file picker and that's way superior
it's an artifact of a previous time
 
on win10, try ctrl+fing a nonexistent word
 
but recently some app i was using popped that thing up and I was pissed
 
3:07 AM
the sound is just...something else
 
"why me?!"
 
@royhowie expose gesture is pretty helpful too
 
well, i cmd-tab back to an app and it seems to always start on the wrong window
 
ah
 
@ʞɔᴉN What is? I only have basic exposé.
 
3:10 AM
where-as in windows I can alt tab between two programs and it usually remember which window of that app I was on
 
i rarely alt-tab, it just feels imprecise
 
i.e. Active screen corners and the dashboard.
 
@Callum ?
 
also, if the windows of one app are on multiple workspaces (mac), that it seems to alwys pick the window I don't want on a different workspace
i'm constantly fighting it.
 
I mean the feature where all the windows shrink and pull apart so you can see all of them at once
which I think is called expose?
 
3:11 AM
but.. i mostly just my editor, terminal and browser each in their own workspace and just three-finger swipe betwwen them. that works for me
 
task view in win10
 
@ʞɔᴉN Yeah, in later versions of os x
Not mine :S
 
three-finger swipe up for that.
 
@Callum aha bummer
 
I could probably sell this laptop as an ancient relic.
"It saw the monolithic era"
 
3:13 AM
yeah, I usually just swipe up, if the window isn't on the same space I can still see the previews of the other spaces too
feels a bit more precise than cmd+tab
 
@Callum lol you'd probably have to pay someone to take it off your hands at this point
@Luggage ah you're a side dock guy
this changes everything
 
only on mac becasue the gaps on the side annoy me
in windows i use the taskbar in the traditional potision
 
auto-hide or go home
 
and the samn dock gets bigger or smaller as you open and close apps, overlapping your windows
 
3:15 AM
well, I have to anyways, I don't have a lot of screen space to spare
 
yea, maybe auto-hide..
 
that's a lot of windows open on the same space though haha
 
that's the exposè
 
it shows all of them? in all spaces?
 
yea
 
3:16 AM
oh
wait mine only shows the ones in the same space
 
note the top of the screen, showing the workspaces
 
maybe I was talking about something else
 
i think that's all..
maybe not
 
@Luggage yeah that's what it looks like for me too
 
no, that's all one desktop
 
3:18 AM
damn, any more than 3 windows and my brain starts getting overloaded from keeping track of everything
 
well, i need, at a minimum: outlook, atom, chrome, terminal
and vry oten had pgadmin, remote desktop, xamarin, etc open
sublime..
 
you use atom and sublime simultaneously?
 
for differnt things. atom, I use more like an IDE and sublime i use for random things
 
@ʞɔᴉN I do, too.
 
ah
 
3:20 AM
and I do know that sublime has the project view
 
I use Sublime for more advanced text manipulation (better regex replacement, basically)
 
does atom handle projects better?
 
Atom for anything not-web related.
 
I even have apple text editor open in that screenshot :)
 
sublime multi select. mmmmm
 
3:21 AM
@ʞɔᴉN I'd say so, yeah.
 
@Callum that's funny since it's running on web technologies :)
 
@ʞɔᴉN Yeah, just it doesn't have as many web-related addons and stuffs as Brackets
 
i use sublime for webdev + javascript
vim for all else
 
sublime is quite capable. I like it.
 
@Luggage lol I use textedit all the time
 
3:22 AM
I just happen to like atom.io better for my uses.
 
@Purag that's pretty hardcore
 
Textedit is shite on my version of OS X. It manages to corrupt almost everything.
 
I have become sooooo producitve with vim
 
nah I gotta learn vim sometime
 
multitasking is legit with it
 
3:22 AM
textedit > notepad.
 
tabs with gvim, sure. but you can multitask in plain ol' vim too and it's great
 
textedit > notepad where OS X >= 10.8
 
@Purag multitasking without windows? impossible!
 
I know :wq and :q! :)
I just use vim to edit configs on linux, or sometimes on osx if i happen to be in the terminal anyway
 
@ʞɔᴉN lol. vim buffers are basically windows...you just can't select them with a mouse
 
3:24 AM
I know :e consol. :e :e :e edit :q
 
if you write C, C++, or Java regularly, vim like saves your life
 
Shhhh, no Java here :P
 
i'm not in that boat hahahaha
 
This is a Java-free zone, enforced by me to save the newbs
 
I write C a lot though.
 
3:26 AM
Just say PHP and you'll coplete the trifecta
 
but yeah. dd alone in vim is so great
 
I'd love to see how windows 10 is on this macbook, but i don't want to dual boot and running in a VM just never feels as smooth.
 
@JanDvorak I consider myself to be a PHP purest
 
someone did it so you don't have to!
 
> By default Windows 10 switched to a 200 percent zoom view, so I’m effectively using it at a 1280 x 800 pixel resolution. I was able to knock this back to 100 percent but everything went tiny (we’ve written about this problem before).
No shit. It's not a problem, it's just more pixels.
 
3:41 AM
Hi Everyone
I have a function(call function A) and inside that function there is an ajax call, after ajax call succeeds, I am calling few other functions. So, I want to call another function only and only if everything or every function inside function A completes.
I have used Web workers, also used jQuery Deffered, but its not working if anyone can suggest better?
Let us make an example:

function one(){
var x=0;
setTimeout(function(){
console.log("started");
x=1;
},3000);
return x;
}
function two(){
console.log("Finished");
}
$.when(one()).then(two());
I also tried this, but failed
 
ahem cough coughformatyourcodepleasecough cough
 
too late but meh
 
yes, Please proceed
 
Anyway, must departé.
 
anyone, please?
 
ttj
4:05 AM
i don't know where to ask this. i'm having a hard time understanding/setting up a git repository in my network where multiple developers would clone to their individual machines then push their progress back to the "main" copy in the network
can anyone give some advice?
anyway, i figured it out
 
4:56 AM
Hi Guys anyone here?
Could anyone help me workout how to wireup a javascript function/s after using a $.ajax call and adding the resulting html to a div?
I have a button inside the partial view which is not firing
 
@AbhishekSharma abhishek
are you for real ?
please stop using my name -_-
from the sight of it, today isa bad day
 
Only you are the one with this name on earth?
 
ttj
brb trademarking my name
 
5:11 AM
wrost man I have ever interacted with, also this one is the wrost blog where no one is interested in talking significantly. They are much cared about their name as they are a big brand or their name is like a trademark. Insignificant... Bad guy from the dustbin of society.
 
@royhowie I'm confused, why are you asking for CVs on an old question that you answered? and for that matter, why are you updating your answer?
 
@Zirak the script one is what I thought we'd use all along. The cross-compatibility is just running the same script on all the distribs, not the content of the script.
 
@Purag my old answer was poorly written (from when I was just learning JavaScript); a better one might help a future reader
 
always a fair thing to do. :) what's it a dupe of? the current CV on it is for off-topic
 
@Purag I cv'd y-code-no-work, but I think it might be worth cleaning up
let me edit the question
 
5:42 AM
Mornin'
Kewl, it didn't take a minute for windows to boot, start visual studio and start chrome :)
 
@Purag stackoverflow.com/q/21691730/2476755 now the question might help future readers
 
Nuked
 
@Cerbrus my computer takes 8-12 seconds to go from completely off to fully functional. It amazes me every time.
 
My computer is fully functional when it's turned off. It's just not powered :P
 
well then…
I wrote so many piss-poor answers when I first started using this site
this is such a headache to correct
 

« first day (1749 days earlier)      last day (3199 days later) »