« first day (2230 days earlier)      last day (2721 days later) » 

2:00 PM
@rlemon it gives me JSON but as a string, but I need JSON as an object
grr this is so confusing
 
@rlemon yes its a string
 
brb
 
JSON as an Object is just an object.. JSON Objects are not a thing
@FlyingGambit that wasn't the question 😉
 
@rlemon what is the question?
 
not mine
I was clarifying
 
2:02 PM
okie dokie
 
I want what is returned from JSON.stringfy....

but then it fails here as the type is string not object...
so basically I need JSON stringfy structure but as a object..
 
you're not understanding me at all. JSON.stringify doesn't change structures at all
 
but when I use JSON.parse it convert it back to array sort of object as explained above..
 
it converts the entire thing into a string.
JSON is a string
anything else isn't JSON
 
right, that means I want to convert my nested array into a proper object, let me google it
 
2:06 PM
@Mathematics JSON (JavaScript Object Notation) is like an object represented in a string
 
Anonymous
https://github.com/nicematt/esx
esx.detectVersion()
 
@Mathematics JSON.parse
 
@FlyingGambit that converts it back into arrays sort of object
 
:facepalm:
 
@Mathematics array of objects ?
@rlemon i feel you
 
2:07 PM
yes please see what I posted above :)
what else would u call that :S
 
I give up. you're not understanding the most basic concept here. glhf
 
^ ok, thanks for trying
I give up too
 
@Mathematics LOL
@Mathematics Its not an object, its an array of objects.
 
@FlyingGambit which is still technically an object
😛
 
@rlemon well yes but dont tell him that now it will confuse him
 
2:10 PM
@FlyingGambit no, the only thing confusing him is not being able to grasp that "JSON Object" isn't a thing.
 
user6820627
array is an object. object is an object. that's all.
 
user6820627
JSON.stringify is magical. not only for objects but for boolean, number, string, array as well.
 
it's actually pretty simple
json.org you can follow the charts here
 
user6820627
2:16 PM
@rlemon it will confuse him.
 
calling a function "magical" when it is simple enough to figure out is confusing
 
user6820627
@rlemon 89.90% JS dev don't know JSON.stringify is not only for objects. you are smart enough to figure out. but what about people who are not as good as you?
 
@LearnHowToBeTransparent they can read the specs and figure it out
 
rlemon's hips dont lie
bye peeps
 
user6820627
@rlemon i hate specs. i figure everything about js out in the browser console.
 
2:19 PM
enjoy that
 
@LearnHowToBeTransparent That sounds stupid
I bet you hate documentation too
 
user6820627
no i don't hate docs. specs only.
 
user6820627
docs is easy to understand.
 
@LearnHowToBeTransparent The fuck is this shit?
 
user6820627
Jay Hanlon on June 25, 2013
It pains me when I hear people say that our sites are unfriendly, or that we chase new users away. But it's a hard problem, because our highest priority has always been the quality of content on our sites.  And it still is. We can't lower our standards. We won't.
 
2:23 PM
... wat
 
user6820627
now i really need to add the link for context a lot of people are misunderstanding it.
 
Yea, for transparency's sake, better link to the context...
Because it looks like you're actually serious, in your profile.
 
well, given the added title to the picture it is misleading
the blog isn't talking about not closing things, it's talking about verbiage
and education
not lowering standards
 
While we're at it, I'm so triggered by your use of a code block in your profile, @LearnHowToBeTransparent
The semantic perfectionist in me is about to perform harakiri
 
user6820627
@BenFortune but why do you come to my profile page? someone tell you?
 
2:27 PM
It's public, I don't have to justify that.
God I sound like Garg.
 
@BenFortune I don't get why people complain, or even think it is strange that someone clicked on their name while in a public chat
if you don't want people reading your public profile, leave it empty
 
user6820627
@rlemon no not complain. but everyone here loves reading each other's profile?
 
i filter request according to there requestStatus, which would look like SELECT * FROM request` WHERE requestStatus = 'accepted';` ** accepted would be a placeholder send from the client** . Is there a way to get all request regardless of the status, without the need to write a second sql query without the where ?
 
Guys you can make fun of me, but I am really clear that I am not able to explain CLEARLY what I want to achieve...
 
@LearnHowToBeTransparent most people will look at others profiles at least once, yes
 
2:29 PM
As you can see the library wants this,

data.A.propertyX
but my A is not accessible, it's only accessible like this, data[0].A
so I am not sure how to explain what I want or search it on google
 
So give it data[0]?
 
@BenFortune so you want me to change whole library instead of input ? :S
 
you have an array of objects, the service / library wants one of those objects.
 
pass it one object
 
2:31 PM
@rlemon it want all of them, not just one, I just need to convert them into whatever phrase you use for above :(
 
listen dude. if the library wants a single object you are stuck with that
you can pass it an array of objects, or a single one
or a JSON String
 
@rlemon did you looked at library yet :S
 
do what it accepts.
 
It accepts the datasource as an array.
 
it's creating a tree
@BenFortune not when it creates the chart
 
2:33 PM
ffs stop posting pictures of code.
5
 
So create an object and pass your array as the children.
 
^ data is dynamic, I will ask my friend google for rest, sorry for being annoying
 
Why does that matter?
 
user6820627
@rlemon so i'll show some ads there.
 
Good luck
 
user2620028
2:39 PM
the hell is going on in here
 
@BenFortune seeing how you're partially interested in the project. When the store is up you gonna audit the code for me?
 
is it ironic that babel needed a polyfill for ie11?
 
@rlemon Sure 😛 Don't expect much though lol
 
@bitten No. Why?
 
user6820627
@bitten why ironic?
 
2:48 PM
i was just wondering
because it's transpiles es6 to es5, allowing you to write "next generation JavaScript" that's compatible with older environments
yet it still needs to be polyfilled
 
what is being polyfilled?
 
 
3:04 PM
@rlemon padLeft
 
@bitten ?
String.prototype.padLeft ?
padStart exists... but not really.
 
ahh, because they don't exist.
define(String.prototype, "padLeft", "".padStart);
define(String.prototype, "padRight", "".padEnd);
padStart and padEnd do
as experimental
 
they should have just used left-pad rite
 
idk, seems silly to alias them like that
but what do I know.
 
3:07 PM
it's quite a heavy polyfill though, if this is the right one i'm looking at
85KB
 
they are not polyfilling anything, those prototype never existed tmk
 
It wouldn't be ironic either, but kinda stupid if they always included that crapload of useless code in every transpiled output just so that you wouldn't have to include it when targeting IE
 
unless you want a separate build for IE10, IE11, new chrome, old chrome, android chrome, safari, etc..
it only uses the polyfill on the methods that need it
 
if one uses babel as a polyfiller, then (with a big stretch) couldn't you say your polyfiller needed a polyfill?
 
O[key] || ...
babel uses core-js as a polyfill..
so.. no.
 
3:11 PM
I actually got upvoted on /r/compsci
 
Babel is a transpiler and one of the plugins uses core-js and regenerator to polyfill. This is no different than using gulp to start babel. They do different things but you sometimes use one as a 'step' in the other.
you can use core-js without babel and babel without gulp
 
heathen
 
Yes, but I'm a correct heathen
 
that's the best kind of heathen
 
a pedagogic heathen
 
3:17 PM
I'm looking for a composable way to pre-fetch data, like Relay, but not relay.
 
@Luggage i don't understand then, i'm including it in my build just so IE11 doesn't throw errors
that doesn't sound like what you just explained
 
Yes it does.
 
:(
it > my head
 
I never said not to use it
You want to use functions that are in es6 but not in ie11, use the polyfill. That's all there is to it.
 
@Luggage i thought babel would do that for me already?
 
3:20 PM
No. Babel is a transpiler, not a polyfill.
Someone MADE a polyfill plugin for it, though.
 
ah okay
 
which just wraps core-js
 
then i understand
 
see that link above that points to babel code. you see it right there
all it does is import core-js and apply it.
 
what is babel's transpile target then? and why does it not include IE11?
 
3:21 PM
it does only what you configure.
if you don't configure it, it does nothing.
asking what babel targets is like asking what gulp does. it does what you tell it.
 
Anyone has a good resource on nodejs/socketio/express/etc and what they all do individually?
 
a blank gulpfile does nothing. a blank .babelrc does nothing.
nodejs is a JS engine (like the JVM is to java and the CLR is to .NET). socket.io is a wrapper around websockets. Express wraps and extends node's http library with useful helpers.
 
Hello everyone, good morning. Could someone please explain to me how to use multiple setTimeout in an iterative function?
 
@Jam1 Welcome to the JavaScript chat! Please review the room 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 can tell you more, or you can ask a more specific question :)
@Jam1 too broad, rephrase or, better yet, make a fiddle and I'll help.
 
3:24 PM
@ErwinOkken each project has a homepage which does just that
 
I have a fiddle it is right here jsfiddle.net/Jam1/6d7y40ov/8
 
@Jam1 did you notice you have errors in the console?
 
What I am trying to do is to create divs dynamically, and animate them letting them in First Come First Serve order, there should be 250 div that should be created in all. I just need the setTimeout to pause the program while each div is being animated.
 
you should probably pop off each animation and wait till it is complete by an event
timing is going to be janky af to get right
 
The error I see in the console is the json_process[I].waitTime
 
3:28 PM
yea.
 
@Luggage then i understand
 
and probably really good for his health
 
That is what I am doing, each animation should finish before the next one starts. The 3 functions that have animations are done within these functions queuefunction, waitvar and finsihCPU. I think I will create a test jsfiddle to practice on setTimeout thanks for all your advice.
 
const queue = [ .. describe what you need to get the animations going ];
function anim() {
  const item = queue.shift();
  if( !item ) return;
  item.element.addEventListener('transitionend', anim);
 // trigger animation
}
honestly, you're over complicating things
of trigger the animation after the early exit
I am currently 15 hrs 42 mins 46 secs of light-travel time from Earth (2016:328:000000:2L)
@KendallFrey
 
3:36 PM
Voyager 2 is a probe currently hurtling through space and is therefore far away
 
Man, light is slow.
 
I'm aware of Voyager
 
V'ger
 
V'gr
 
Huh, Skype disconnected on both my computers
just me?
 
3:38 PM
NSA is tapping in
 
whee
phone's still connected
wtf
 
My skype just dropped too
 
lol people use skype?
 
casuals
 
We used to use Skype for work
 
3:40 PM
wait, I guess not right now
 
Then we switched to Lync
 
Hangouts ftw
 
Before too long, we went back to Skype
 
since everyone is talking about highly js-related things, what do you guys think about the fidget cube?
 
3:42 PM
I thought Lync WAS skype?
 
It's now Skype For Business
 
but still the same piece of crap with a new name
 
I think it's BS
crazy how it got pledged with 6.5mio$
 
I used skype a bit since I have no landline and it worked better for conference calls with clients than my cell phone.
Always worked for me.
 
3:46 PM
@Ronin pretty sure @SterlingArcher backed that
@BenFortune robogist.rlemon.ca/browse think you can make it look better? 😃
 
I'm awful at UI 😬
 
@rlemon add your phone number in a large font top-right mate.
 
what about the bullet points?
 
user2620028
is there any possible way for a visually impaired (or mentally not sure which) developer to learn how to make something look nice?
 
sure
 
3:50 PM
It's called 'ripping off other people's designs'
 
a lot of design principals are objective, the details are not.
 
@HatterisMad Do what the non-impaired to: copy others
 
user2620028
everything i make ends up looking like a porno, just 50 different shades of grey
 
@rlemon I'm a big fan of borders, material.google.com/components/cards.html
 
robogist IS a decent candidate for material..
 
3:51 PM
re-style it all for material then 😃
 
I think
 
I used bootstrap because I know it
 
that's so 2015 :)
 
Is that a material design theme or have you styled it manually?
 
@rlemon just pick the ui framework of your choice, for material design maybe materialize
 
3:52 PM
@BenFortune it's a bootswatch theme
 
@Ronin run Length Encoding?
ohh
 
@rlemon Shame it doesn't work with 4, v4-alpha.getbootstrap.com/components/card
 
@Ronin I did. and it was bootstrap
it's an open source project and I'm a bad designer. I'm trying to crowd source here. sshhhh
 
He's trying to vamp. :)
 
hell yea I am 😃
 
3:55 PM
haha
I don't like bootstrap too much, it looks old-fashioned imo
But it's a safe bet if you don't need a super-fancy looking app
 
It's not bad already. Just a few alignment issues.
 
did u check out zurb foundation yet @rlemon
 
it's also a safe bet if you need a super-fancy looking app
 
user2620028
is good design a matter of opinion or is it more objective than that. Because i typically find that i do not enjoy designs that others like.
 
But yea, material could kick it up a notch.
 
3:56 PM
@HatterisMad levels of it are subjective, but studies have been done
 
We're super excited to welcome @SaraMG to our team! http://ow.ly/CC77306srPh https://t.co/2mhW6dizBC
 
so you can 'call' some of it objective
 
@rlemon I never saw any^^
 
There are objective things (readability, complementary colors), opinions, and always a dash of "what you are used to"
 
@FlorianMargaine nice!
 
3:56 PM
@Ronin look harder?
 
@rlemon prove me wrong?
 
the problem is that everyone uses the default styles.
 
user2620028
colors in particular i find to be especially difficult
 
3:57 PM
customize bootstrap and people don't know you're using bootstrap
 
@rlemon Sauce?
 
don't hate me
none of the pages have stubs yet
that's on my list to do
 
@rlemon slightly better than most bootstrap apps I've seen but still not really exciting
 
❤️ postgres
 
@Ronin my point is that there is nothing inherently bad about bootstrap, people just don't tweak it and every website ends up looking the same
 
3:59 PM
@Ronin yea, i agree that bootstrap suffers from "omg, not another bootstrap site". But it's still a solid base thatn you CAN customize.
 

« first day (2230 days earlier)      last day (2721 days later) »