« first day (892 days earlier)      last day (2896 days later) » 

 
2 hours later…
m59
3:06 AM
No sign of Wes?
 
3:46 AM
no
 
m59
:'(
 
r u a developer?
 
m59
Yep.
 
technology?
 
m59
JavaScript
 
3:52 AM
how people only survive with javascript
u r genious
 
4:22 AM
Damn I love my country
> Nine out of 10 people believe that those with a mental disorder "could get better if they wanted to", a new study of 3,000 people by the Institute of Mental Health (IMH) has found. Around half also think that such problems are "a sign of personal weakness".
I don't know how it is elsewhere, but it is comforting to know that the stigma here is off the charts
 
 
1 hour later…
5:43 AM
posted on October 09, 2015

New Cyanide and Happiness Comic

 
Abe
6:10 AM
@m59 yo?
 
m59
Wes? @Abe ?
@MoinShirazi I don't know what you mean by that :)
 
Abe
@m59 <- wes
 
m59
Yahhhhhh
You know you ruined my life when you showed me element queries
 
Abe
lol
 
m59
How ya been, dude?
Still Italian and underpaid?
 
Abe
6:14 AM
ahah
pretty much
 
m59
I'm still American and underpaid =D
but I also suck, so probably appropriately paid
 
Abe
lol
 
m59
How's your JS/node/npm skills?
 
Abe
nah you are fine
i only know client side js
 
m59
ah. gulp/browserify, though?
 
Abe
6:16 AM
nope
 
m59
dern lol.
Well, I can't take advantage of you then, but because you're a bro I'd still like to show you what I'm up to if you're interested =D
^ didn't mean that sexually. Oops.
 
Abe
:D lol
 
m59
Oh mercy. Here comes the wtf's. I know I'm not crazy.... there is good reasoning behind this. pastebin.com/kr8jxMjy
 
m59
I want to write css that way.
 
Abe
6:19 AM
@m59 why?
 
m59
It's a long road you actually got me on with those element queries! Do you know much about React?
 
Abe
i know nothing about react
 
m59
vjeux / facebook / react had the boldness to propose writing css in js, and I think their reasoning is dead on, but needs to be expanded.
We've taken HTML that far, so far that we don't even necessarily write it anymore. React and virtual-dom, for example. It's absolutely all JS.
 
Abe
yeah
css sucks
 
m59
CSS should be the same. JS will always be more powerful.
Isn't my code sample DANG easy to understand?
 
Abe
6:24 AM
css is designed by academic people that have no knowledge of the real world whatsoever
also, they think to be smarter than the real world. they accept no suggestions
 
m59
Well, you so far don't seem to think I'm crazy ;D
Some people think it's fantabulously nuts to write styles this way. All I know is it's very easy.
easy = good.
I have a React mixin that makes most of that work, but not the states (hover, focus, etc)
I want to write some kind of library that solves this. I think I'm skilled enough to write the code, but not to architect it (what do I actually need to do?)
Most basic question is associating that js module with the element it styles.
 
Abe
first of all you should think of the implications of having a site written that way
 
\o
 
m59
I've done it =D
 
mornin'
 
Abe
6:30 AM
for you wont make a huge difference though. since you are probably using js massively already
 
m59
I have no performance problems, though I know that could be an issue.
 
Abe
both massive use of js and "js-css" affect accessibility/usability/seo in bad ways
 
m59
@Cerbrus hello
 
Abe
mornign @Cerbrus
 
m59
Yeah.
 
Abe
6:33 AM
but again since you massively use js already, i don't think it makes difference :P
 
m59
I'm thinking of using a mutation observer to watch the dom for elements with a certain property and the value of that prop refers to the style... I guess there would need to be a registry?
That blows, though
 
Abe
i would just add class="hover" with js
it is redundant but at least it's easy
and not heavy
 
m59
That's a secondary concern
Gotta figure out the usage first, ya know
 
@Abe never been to turkey
 
m59
is it reasonably arbitrary to pile data into the dom?
 
Abe
6:40 AM
@m59 not following you :P
haven't had my coffee yet
@Kitler it's not necessarily turkey
could even be a 3D render
 
m59
<div js-styles="(insert all that js code from the js module into here using whatever templating library you like)"></div>
MutationObserver picks that element up when it comes into the DOM and applies the styles and sets up the element query functions.
That's my first thought. Second thought is to make a library to adapt to each templating thing you might use, so there's a library for React, Angular, and so on.
 
why not apply classes instead of the styles themselves?
 
m59
That's an implementation detail, I think. Not sure what I'm implementing yet =D
 
Abe
@m59 i have no idea how react or whatever is that works
 
m59
I believe the argument is that styling classes really has no benefit if you write good js code and apply them inline.
React looks something like this:
 
6:46 AM
whatever happened to separation of concerns
 
m59
<div style={styles.container}>
  <input type="text" styles={styles.input}>
</div>
 
tbh I wouldn't touch that with a 10 foot pole
 
m59
That's a misunderstanding of the philosophy, similar to when people ask about SoC within Angular apps.
People see ng-click and lose their heads.
you're already doing that.
<div class="button button-block button-balanced padding-left"></div>
 
no I don't do that
people that use bootstrap and the sort do that
 
m59
best case scenario:
<div class="thing"></div>
 
6:51 AM
bootstrap is the ultimate example of how css shouldn't be
 
m59
why put a class to hook onto instead of just putting the style there?
 
Are you familiar with bem?
 
m59
Yes.
 
what do you think of it?
 
m59
It's better than not doing something, but adds a lot of complexity that can be avoided.
 
6:52 AM
like?
 
m59
Like everything in BEM. It's not that it's hard. It's just not necessary.
 
Can you give me specific examples, something that we can discuss
 
m59
Well, the most obvious is that you have to know how to use BEM :)
I have like 2 days of experience with it, mind you, but I recall it decently enough I think.
Achieves modularity via convention
has the tools to guide that convention
The convention is trying to workaround a problem. I want to just eliminate that problem. React does that, but I'm not satisfied. I can describe styles in a more simple, more powerful and less verbose fashion, so I want to do that.
 
I take it you don't use sass
 
m59
Well, I did.
But, same issue. It's a whole language designed to work around a problem. We already have JS. Should just use it.
 
Abe
7:02 AM
believe it or not, i agree with that
 
lol
 
Abe
we reached a point where an actual programming language is needed for styling
css is just plain stupid
 
m59
@Kitler just posted this a bit ago, but in case you missed it, check this out some time speakerdeck.com/vjeux/react-css-in-js
there's also a talk by vjeux by the same name (css in js), but it's the same info.
 
Abe
though i'm not saying that using js for styling is a good idea today
 
have you seen cssnext?
the global scope issue has been addressed
I agree css as is sucks balls
just not sure if js is the way to go
 
m59
7:05 AM
yeah, and there's another thing like it
 
I m not even sold on jsx templates yet (not like it matters)
 
that presentation cites w3schools for js best practices
user image
2
 
m59
Listen to the talk :)
 
credibility--
 
m59
7:07 AM
:/
 
Abe
@Kitler #pwned
instantquit :D
 
m59
That is way unfair.
 
Abe
w3schools slide appears -> conference room empties
 
w3schools instructs you to use document.write
if that is one of his favourite resources for js it makes me doubt his sanity
 
m59
sigh.
I think you're being biased.
It's a joke, man.
 
Abe
7:09 AM
@m59 you don't know kitler
 
of course I m biased, we're discussing preferences O.o
A bit of background
I m a strong believer in convention over configuration
 
m59
You're doubting his credibility based on a joke!
 
I didn't know it was a joke
 
m59
You would unless you start by assuming he's not a good developer on the basis that you disagree with his product (I wouldn't touch that with a 10ft pole)
btw, internet... I'm not offended or anything =D
In case my communication comes across that way.
oh, cssnext uses postcss hah
 
morning
 
m59
7:19 AM
hello
 
hiya
any idea jsfiddle.net/rawnrvh6 value of global variable is not changing in validator
 
m59
 submitHandler: function(form) {
     var b = $("#sdf").val();
     alert(b);
     return false;
 }
 
noop i can not do that ... i know that method
i am getting value from function param
 
you assign the value of b once at the start, how do you expect it to update?
 
m59
^
 
7:25 AM
damn created horrible example
 
m59
g'night peeps
 
@m59 night
@Kitler jsfiddle.net/Jg4a3/123 now just click on any item in chart and than submit form you will find it args.id is not changing after first click
 
Abe
8:17 AM
2
Q: Calculate what seat I can take

PeeHaaI have been given the following task: Find the most efficient way to calculate which seat you can take considering the following: Given there is a car (a convertible) and you have four friends all sitting in the convertible. Two friends are taking the two front seats. And two friends are tak...

4
 
9:12 AM
@BoltClock Inb4 GitExchange
 
@Sippy There are plenty of gits on Stack Overflow #shotsfired
 
lol
 
crl
9:33 AM
guy, how would you do to make the horizontal spacing between those boxes the same as the horizontal space between the first box and the border (currently it's twice larger) jsbin.com/reyozuw/edit?html,css,output?
with a :first-child and :last-child?
 
9:51 AM
@crl tadaaaa ヽ༼ຈل͜ຈ༽ノ jsbin.com/caludokifu/1/edit?html,css,output
So tricky, don't do this at home. xD
 
crl
on Chrome45
 
 
2 hours later…
11:45 AM
 
Abe
@easwee twitter.com/MrJamesMay/status/652447869706878976 won a contest by james may :D
 
 
2 hours later…
1:17 PM
1
Q: How to detact CSS Round Display

eirenaiosI was referring https://drafts.csswg.org/ And came to know about the CSS Round Display Nowadays we are using digital clocks with circular displays and in future we need to design things for tiny rounded displays. There are some initial properties are there for this kind of displays. Thinkin...

WTF?
"I'm looking at this draft that shows you how to detect round displays. Now I'm wondering how to detect round displays?"
 
@BoltClock I know it's restating what's linked, but isn't that the answer to the question?
 
@ZachSaucier It is
The answer to the question is in the question
In any case I'm more concerned about the question. I could remove all of the material and leave just the final paragraph, but it'd be a terrible question if not treated like a canonical
Alternatively, close as unclear pending clarification on what exactly the OP doesn't understand from the reference material?
 
I don't think it's so bad
 
What HTTP status does @rlemon give women when they engage in chamber activities? 413 ;D
 
@ZachSaucier Tell that to the meta crowd
 
1:41 PM
@boltclock okyou can remove this question, np — eirenaios 55 secs ago
lol
 
sorry. i am looking for a fast answer. base on html specification, style sheets may have three different origins: author, user, and user agent. They say a user may be able to specify style information for a particular document. How a end user can define his own styles? it does not make sense to me?
 
@DiegoBayona user styles. See userContent.css in Firefox
AFAIK this feature is not available out of the box in Chrome, idk if there are any extensions for it
@ZachSaucier OK so OP admitted they slipped up. Now what?
 
I think it'd get a fair bit of traffic
the question is valid, he just didn't look at the resource much
 
ok. It is a browser feature. Great. however i think it is not really common feature for end users. thanks so much
 
Had he not included the link it'd be valid
@BoltClock there are extensions for it
I use one called "Stylebot"
 
1:47 PM
@Gemtastic isn't that kind of you to say
 
@ZachSaucier Yeah no arguing it's a valid question. But at the moment with the answer in the question it's a rhetorical question at best and absent the source material it's going to get downvoted to oblivion for "no apparent research effort" - which will guarantee it not getting anything more than a trickle of views
 
ok i am check them out. appreciate it.
 
One for meta, I guess
 
@rlemon :D
 
the guy links directly to the media query part of the article.
 
1:57 PM
@cimmanon That's what I bloody said
He's so precise with the answer that I fail to comprehend just how he's managed to completely miss it being the answer
 
unless the article he linked to changed between the time he asked his question and the time the rest of us saw it :p
 
Only way is if you weren't paying attention to or just plain didn't understand what you were looking at and linking to things randomly. But it's still too much of a coincidence to be real
@cimmanon or the image
 
2:13 PM
6
A: =] C# syntax and its function

BoltClockA cursory search for the text in the comment in the given code listing leads to this Channel 9 article. There are two occurrences of this code listing, in which one of them presents the same lambda expression with the correct syntax =>: //decide what to do with the response we get back from the ...

 
anyone see anything in this article that actually explains anything? it just looks like marketing speak to me: ampproject.org/how-it-works
 
It's ok to answer typo questions if the typo comes from elsewhere, right guiz?!?!?! #repwhore #noragrets
 
2:24 PM
@BoltClock if the OP had run the code, it would have raised a syntax error. there wouldnt have been a question of "what is this operator" because it would have been obvious that it's not a thing and the code is actually broken
 
@cimmanon True
 
Hi Team, i need to position an expandable form on top of my header menu
what's the best way to do it
right now it shows right after the header menu
here's the codepen (not complete yet ) but will give you an idea
 
2:44 PM
mother of copypasta ༼ ºل͟º༽
 
-1
Q: Slick Slider css has `\9` in margin rule

Billy Moonwas... margin-top: -10px; now... margin-top: -10px\9; /*lte IE 8*/ https://github.com/kenwheeler/slick/commit/abf7eeb48d045f9abc053144e5b934679beb325a#diff-12c48723bb8ab1439a9502269845e4aa Is this a typo - or is there a reason for it?

Why is someone like Billy Moon posting a question like this?
 
Abe
AHAH
luckily this time i wasn't eating or drinking anything
 
3:27 PM
@rlemon omg the comments
People are getting so fucking mad
Poor Gino has no idea what he did lol
I bet he thought they were laughing at his food
He looked like he was gonna cry xD
 
bike means something other thank bike in the UK??
!!urban bike
 
@rlemon bike Someone that's shagged almost everyone in the neighbourhood.
 
ohh the village bike
bit of a stretch
 
Not really.
 
outside of the UK we say "the village bike"
his statement in itself, to everyone else in the world, doesn't indicate he is calling his grandmother a hoe
 
4:19 PM
lol, my answer got a dv
I don't understand people sometimes
 
@ZachSaucier There's also a reopen vote
 
Not by me
 
25
Q: Currently in testing: Improved new-user signup, expanded profile information

Stéphane MartinWe've been brainstorming a lot lately with the product team about how improve the experience of joining and participating on Stack Overflow. One project is meant to help users find better content and allow everyone to share more about themselves. Today, we're shipping the first pieces of these p...

 
4:50 PM
Hello :) What is the best place to ask for a website review?
Basically give advice about style, colours, proper use of HTML5 / CSS etc.
 
@async Pay someone to do it
I'm available on CodeMentor if you'd like codementor.io/zachsaucier
 
Thanks, I didn't know about codementor :)
 
there are other sites like it
 
5:11 PM
@ZachSaucier parallax backgrounds y/n
 
UX says no in most cases
it's pretty distracting/disorienting most of the time
subtle usage can be nice at times
 
My previous site had a background-attachment: fixed background, which I can stick with easily
 
I'm more for that than parallax in most cases
if you're doing a full experience type of thing then parallax can be cool
 
you know what sort of parallax I'm referring to right?
 
but regular websites are most always no like I said
@BoltClock probably
 
5:14 PM
the perspective scrolling effect
the original definition before web developers came and muddied it all up
not sure if your talk has any examples of that specifically, I did see examples of doing totally unconventional things on scroll, which some people apparently call "parallax"
 
ya, any movement caused by scroll is unfortunately called parallax these days
 
thoughts?
 
just what I said before, really
 
0
Q: HTML Marquee between 2 divs?

AmbidextroidI've got a website with images tot he left and right in their own divs, one with float:right and one with float:left. I also have an image that travels across the screen with the marquee tag. Is there any way to get the marquee between the divs? So basically it would start at the left side of the...

Marquees are dead long back. What you wanna really achieve? — Praveen Kumar 24 mins ago
What you wanna really achieve?Praveen Kumar 10 mins ago
 
> hobnob
hahaha
 
6:04 PM
http://www.commitstrip.com/en/2015/10/09/developers-how-to-easily-save-time/
CommitStrip - Blog relating the daily life of web agencies developers
Developers: How to easily save time
CommitStrip
1444413806
 

« first day (892 days earlier)      last day (2896 days later) »