« first day (2614 days earlier)      last day (2333 days later) » 

7:00 PM
 
@SterlingArcher your memes look like they were stolen from 9gag by tumblr
 
Alright folks; I hardly ever ask on main, but you lot might know how to help me out stackoverflow.com/questions/47779762/…
 
@ndugger damn, actually that's a good question dude
i have no idea
 
anyone here familiar with Flexbox
 
I ended up buying that rubiks cube
 
7:04 PM
!!welcome anemaria20
 
@anemaria20 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.
 
@ndugger I'm beginning to think that the venn diagram of people who can answer tough JS questions and people who are here regularly are two distinct and separated circles
 
Wow this is a really good read on ES6 decorators medium.com/google-developers/…
 
@Vap0r You'd be surprised
 
Would I?
 
7:07 PM
@SterlingArcher medium often hosts quality reads dont they
 
@Vap0r Most of the regulars here are at the forefront of advanced JS topics
 
@KamilSolecki not only that I actually understand it
 
I'll drop a huge bounty on that Q if anyone can figure it out
 
Don't waste your rep, I'll drop a bounty on it since it made me learn
you need dat 10k
 
7:09 PM
i like learning
!!afk learning and vaping
 
ohhi
 
.. why I am not even surprised, that r/JavaScript new header contains "jquery-only code"
 
@tereško and that formatting...
 
well, that too
 
7:17 PM
I can still do better
but it's somewhat working (for the pine trees)
 
Is there any way to not add an empty string to array?

ri_chozyinTime=[, , ]
 
wat
 
y tho
 
updooted, and replied
 
7:24 PM
@Seongwon-Choi that isn't adding empty strings, it's creating empty values
same as Array(2)
 
@rlemon for example,
 
@Seongwon-Choi arrays in JS need not be declared with their size to start out. Arrays are flexible
 
if(chozyintime != "" || chozyintime != null)
{
	cur.ri_chozyinTime.push(chozyintime); // cur is obj
}
 
@Vap0r in array literal syntax, that is setting the length
 
like this?
 
7:25 PM
[,,,] == Array(3)
and so on
@Seongwon-Choi so what is your question? you wanna always push and have the array ignore falsey values?
 
okay so I finished up a bunch of tuts on flexbox and I think the way people present it is over-simplified
they say: Use flexbox vs floats. That's stupid. FLexbox seems to be useful only in a certain % of cases for more complex layout
 
@rlemon I'm sure Array() and Array(0) are the same behind the scenes, so I probably mispoke. Basically I'm insinuating that if you have an array type object, the size can be changed after instantiation
 
flexbox is simple, therefore it's presented simply
 
for simple 2-column alignments in 1 direction, floats work well
 
@anemaria20 that's not true; once you go flexbox, you never float
 
7:27 PM
you'll float too
 
@anemaria20 I can't imagine why I would want to float in that situation
 
floats are broken
 
you'll float too
 
clear: both
 
or rather use Bootstrap
 
7:27 PM
k
 
@Vap0r meh, arrays in js are stupid :/
 
Well, now we know he's just a troll
 
@ndugger everybody floats down here
 
> Flexbox is dumb; just use bootstrap
ok troll
 
@Vap0r , @rlemon I am "chozyintime = $ ('# ri_chozyinTime').val ();" To get the value input to input. Is there a way to check for an empty string in the first place?
 
7:27 PM
@rlemon I know there's a bunch of weird quirks and stuff about them, but why?
 
@SterlingArcher IT isn't even good
 
because of all the weird quirks. :P
 
stop
 
HAMMERTIME!
 
@ndugger learn how to read
 
7:28 PM
data structures should be well defined and intuitive
 
wtf IT was incredible
 
@anemaria20 learn how to flexbox
 
-6
Q: i want to add JS code to send the response to another location

Tarek Zidani have write a XmlHttpRequest like that <!DOCTYPE html> <html> <body> <center> <h2>CORS POC Exploit</h2> <h3>Extract API Calls</h3> <div id="demo"> <button type="button" onclick="cors()">Exploit</button> </div> <script> function cors(){ var xhttp = new XMLHttpRequest(); xhttp.onreadystate...

 
@anemaria20 just a heads up bootstrap 4 is built on top of flex
 
IE11 is still around ~10% usage, and flexbox has a lot of quirks around it you need to handle
yeah I know
 
7:28 PM
10% usage?
where?
 
whether it will get adopted
 
who cares, unless your site has 10% IE users, no one cares
 
that's another issue
 
If you're still worried about IE11 flex isn't the issue
 
I think we have like 1-2 IE11 hits a month
 
7:29 PM
We use flexbox perfectly fine with IE11
your concerns are invalid
 
also, IE11 does support flex
so...
10 does too, if you prefix
 
"we use"
you need to change it to
"we adjusted"
 
No, we use
 
trying to justify things with global market statistics just shows you haven't checked your own audience.
 
IE11 fully supports the flexbox api
 
7:30 PM
global stats are hardly ever relevant
 
ban the troll
 
my sites are also around ~10%
non-tech audiences mainly
 
so?
I work with farmers
legit farmers
 
We are farmers, dun dun dun dun dun dun dun
 
nice lol
 
7:31 PM
'legit' farmers? so.. just corn, then?
 
hint: non-tech audiences are more likely to buy a new pc than get their old crappy one fixed.
new pc's come with new windows
so...
 
thin mints need dryers, too
 
some people might think I'm being general when I say farmers to mean rural folk
 
i think that unless you have above average layout requirements, flexbox is a waste of time. Use Bootstrap 3 and introduce flex layout when you need it
 
Josiah is a farmer
 
7:32 PM
@Luggage when it becomes legal in Canada, we're going to look into it
@anemaria20 bootstrap 3 is a waste of time
why invest time in already dated tech
 
you need to look into it before that so ytou are ready to pounce on the market
 
I'm telling you guys; dude is obviously a troll
 
snooze == lose and all
 
IE11 is not going to be going away soon, as many people are still on Win 7-8
its market share has been pretty stable
 
@anemaria20 think about it, you just chose outdated technology to support ~10% of your userbase
 
7:33 PM
ie11 works with flex box well enough
 
5% of our traffic uses IE, 90% of that 5% are using ie11, which supports flexboxes
 
well. maybe not enough
 
7% of that 5% use IE7
 
this conversation is now financial aids
 
7:33 PM
Supporting IE7 sucked so much
 
IE4 for Mac was tough too
 
best way to handle file upload in Express mongodb
 
i don't want to know what our site looks like on IE7
 
s/IE7/yo mama/
@MARahman multer
 
@Vap0r you never supported ie4 for mac, i'll put money on it :)
 
7:34 PM
netmarketshare has been most representative of my (and other ppl I talk with) sites
 
any example on that
online link etx
 
@rlemon no dummy it's spelled Moulder, and he's an agent for the FBI
 
not real money, mind you
 
@MARahman probably on their docs. go look
 
@Luggage well I did in a school project because it pissed off the teacher
 
7:34 PM
hmmm thank you
 
crazy, chrome is up to 50% of our traffic now. IE has fallen so far
 
But never practically, no. And I had to revise an area that I was using a VBscript fallback for
 
Edge is only 3%
 
Edge is a great browser if the entire web were just e-books
 
@KevinB what about the new FF version?
 
7:36 PM
Does anyone have any opinions on FF quantum?
 
I think I'm going to put a badge on my works website
 
8.7% firefox, 78% of that on version 57
 
FF quantum is probably good, but it's too late
 
:D
 
Chrome won the browser wars
 
7:36 PM
for now
 
forever
 
people said that about IE6
 
no pls
 
someone used seamonkey to view our site
 
I used Netscape 7 it wasn't a bad option
 
7:37 PM
IE6 will forever remain in my heart
 
@KevinB fuck with admins, just spoof your useragent to IE5
IE6 innovated a lot.
 
I use lynx
 
it was just around for WAY too long
 
@SterlingArcher I had trouble uninstalling it too
 
ie7 is the oldest browser in our stats
 
7:38 PM
You can't uninstall IE--you can only disable it. Hell, I'm not even sure if you can disable Edge, since it's so embedded into the rest of the OS
 
more people use IE7 than IE9
 
@ndugger I don't have IE
your move
 
IE is more embedded into the OS than edge
 
I am sorry for the heated debate, but can I ask you a question that I can not do before?
 
don't ask to ask
 
7:39 PM
Is it about Korean women?
 
thing is, my use case for these 3 months will be building landing pages. And as far as I know

a) Most landing pages have pretty simple layout, no nav
b) 99% of commercial landing page themes are built in bootstrap 3 (even last week ones, only 1 out of 30 is built with BS 4/flex layout)

I'd consider flexbox if i'm building an admin interface for a web app, or a commercial page, but for landing page designs I think it wouldn't be necessary for now
 
@ndugger no no, It's not
 
I think you're giving up on flex too soon.
flex is pretty simple
 
@anemaria20 you might want to reconsider what you know
 
honestly, just let him not use flex--his loss
 
7:40 PM
Themes are shit
 
Right, but our point was you're basing your decision on using flex over floats on incorrect information.
 
css-grid is more complex, and that is also pretty simple
 
I'm tired of his rhetoric
I'll go back to watching my little pony now
 
Cookie cutter websites are garbage
 
thanks
 
7:40 PM
Maybe 10% of your users use IE, but that's still not a reason to not use flex
 
if you like your bootstrap 3 you can keep your bootstrap 3
 
@KevinB I only have one car, so I should be fine with leaded gas right?
 
A better reason would be you simply don't like flex layout
 
i don't like bootstrap 3, I like to use the most suitable tech for a use case I have
 
At least that one wouldn't be provably wrong
 
7:41 PM
> [3] Internet Explorer 10 supports an old incompatible draft version of the specification; Internet Explorer 11 has been updated to support the final version.
Wham bam thank you ma'am
 
for some reason I just can't imagine sterling saying "ma'am"
 
yeah, my head started spinning when I've read all the things you need to do to avoid flex IE11 bugs
make sure you don't use flex shorthand, do this, do that...
 
tbf I don't think I've ever heard his voice
 
@anemaria20 show me
> Seongwon-Choi has invited you to join Room for Seongwon-Choi and Sterling Archer. See your invitations.
le sigh
 
there are some flex shorthand syntaxes that ie11 doesn't like
 
7:42 PM
@Seongwon-Choi I don't do private rooms
 
Also please don't randomly invite people to rooms
 
at least 10 of the 17 are for IE11
 
How many of those bugs affect you?
 
none if he doesn't use it
lol
 
7:44 PM
He/she doesn't want to find out how many bugs. Just rather avoid flex to be safe. I disagree, but that's a fine desicion if you want to make it. I'm not sure why we are still talking about it. :)
 
10 bugs for an entire spec is pretty awesome
 
@SterlingArcher kick. We told him twice this morning to stop that and he said okay
 
@SterlingArcher you're right
 
@rlemon roger that honeybee
 
@rlemon are you saying to @SterlingArcher to kick everyone who doesn't agree with your opinion
 
7:45 PM
Not at all
 
I skipped lunch today... I want to shove my face into like 12 chipotle burritos for dinner now
 
it seems there's a troll here, but it's not me
 
You can't tell somebody to read and then not read
2
 
the troll is gone, move on
 
7:46 PM
the kicking wasn't about you.
i think
 
you're so vain, I bet you think that kick was about you
2
 
anyway that was a good point, "what % of those bugs affect you"
 
does it make any sense to "unload" a class instance? Like, you instantiate some things (lets say players or whatnot as classes/constructors) and if the class is no longer needed, you want to like remove it entirely. Since you can't overwrite the this value from within the class ("invalid rvalue"), you just set the returned instance to null?
 
the only way to find is to do a few projects and see, or ask people around
 
how many float bugs are there?
 
7:48 PM
Should I pick up chipotle on my way to the car, or get it back near my apartment? Is it wrong to eat a burrito in traffic?
@KevinB too many to count
 
i've been doing some research and it seems ppl complain about 2 or 3 of those
 
@jAndy mmm not really, I think the effort to enable GC is overhead to just leaving it
 
@KevinB too many to count. Good point.
 
I don't think that was his point
 
@SterlingArcher just leaving it would definitely cause leaks since you continue to spawn new instances of the same class
 
7:50 PM
My point is that I want a burrito, and nobody will talk to me about burritos
 
his point was that flex comparatively has way fewer bugs than floats/clearfixes etc
 
@jAndy why do you keep spawning instances then? :P
 
@jAndy depends on how you're referencing it...
I use WeakMaps/WeakSets to help with that
 
Either stop spawning them, or use a singleton? maybe idk
 
but that's why ppl use Bootstrap on the other hand...
 
7:51 PM
I think most people use bootstrap because they want an easy UI with free support
 
Bootstrap is ugly, and terrible to work with. If you want to do that instead of taking the time to learn flexbox, that's your prerogative.
Do your thing, and we'll do ours, which is judging you
 
i already know the main things about flexbox
 
@anemaria20 those 2 to 3 issues that most people complain about are covered here, and are easy to avoid philipwalton.com/articles/…
 
@FlorianMargaine yeah, a compiled CL binary would include the CL runtime and any dependencies, which is invisible if you assume a pre-installed runtime
 
now I don't know whether to
 
7:52 PM
So I'll have to just flip a coin over it
 
a) go to bootstrap 4, start using their flex-layout
 
bootstrap4 supports IE10+ btw
this entire convo is moot
 
b) go do stuff from scartch, coz flex basically solves most of the stuff bootstrap was used for in the first place (layouts)
No they support IE11+
 
have you checked their docs?
 
and they don't have autoprefixer included by default
meaning older versions of safari are not supported
yes
 
dammit this song is gnarly
 
another 6 hour print for this stupid robot arm. many more to go
 
sure, no windows Safari support.
 
most confusing with flex for me was differentiating flex-grow and flex-basis
 
7:53 PM
but is that an issue?
 
thats.. kinda weird
 
@jAndy yea. I always specify all of those now. grow, shrink, basis.
 
I don't use bootstrap because i realized i didn't need it anymore, flex made things so much easier. but i don't really need it all that often either
 
I use bootstrap because I'm lazy.
it makes my components self-consistent
 
flex: 1 0 auto; // big as you can be
flex: 0 1 auto; // small as you can be (given content)
 
7:54 PM
as long as I stay in bootstrap
 
@rlemon source?
 
I only used bootstrap because it made grids easier, now that grids are natively easy, there's no need for bootstrap, which means no longer you're tied to somebody else's color scheme
 
*for browser support
 
@Luggage I'm still wondering if its really wise or necessary to specify both (basis AND grow) since both do pretty much the same thing, just on different ways/units
 
7:55 PM
Guys, I want a burrito and a bloody mary, but like a really good bloody mary that comes with all sorts of good shit
mostly just a bloody mary now that I'm thinking about it
 
like grow is just a factor, which takes all flex elements with grow into consideration and basis pretty much is just a %
 
in ie11, specify ALL
 
like with pickles, and sausage, and like a slider on a stick
 
getbootstrap.com/docs/4.0/getting-started/browsers-devices/… sorry I linked alpha, but the support is the same in beta 2
 
and olives
 
7:55 PM
You just said bloody mary three times @ndugger RIP
 
RIP me in peace
RIP my life into pieces, this is my last resort
 
play some fallout 4 on survival
with darker nights and true storms
 
oh hell no
 
7:59 PM
umm, put it in me
 
that
 
can just have a bloody mary and then all that stuff on a plate?
 
@anemaria20 worried about < 3%?
 
@Luggage no, because then they don't count as being apart of the bloody mary
duh
 

« first day (2614 days earlier)      last day (2333 days later) »