« first day (1551 days earlier)      last day (3412 days later) » 

3:00 PM
which imo are all part of the template
 
I've had very good luck forcing all the code to live outside of the templates.
 
visual helpers augment a template item
 
@UlisesContreras All I see is it's loading bootstrap without jQuery.
 
@ssube I literally never saw a case that made me want to have logic in my templates.
Not once
 
@FlorianMargaine Are we looking for a perfectly uniform distribution, or a uniform random distribution?
 
3:00 PM
and telling you that. maybe it's getting some of your local resources somehow..
 
I see, haha, I need to add jQuery, buff, yes! sorry, sorry I have many things now with bootstrap, because the companies want bootstrap too. :)
 
@rlemon having the helper isolated from the template allows you to unit test it.
 
May 26 '12 at 9:03, by Florian Margaine
I'm not too much into maths
 
With 100,000,000 samples over 100 slots, the results look to be fairly normally distributed, with a stddev of several hundred
 
Anyway if i add script jQ and script bootstrap I continue with this problem.

    body
    	script(type="text/javascript", src="http://code.jquery.com/jquery-2.1.3.min.js")                     script(type="text/javascript", src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js")
 
3:04 PM
To kickstart this topic again: While I use coffee and jade I don't think either shoudl be used until you can translate back and forth fluently. Don't learn coffee without JS an or Jade without html.
No one will be interested in helping you with problems that are jade-specific or coffee-specific. You need to ask in the common tongue.
Well. a lot less people.
 
BTW doesn't ES6 make a mess with Coffeescript ? Like for of ?
 
a mess?
do you mean a mix?
 
Hmm, i understand u.
 
You can perfectly ask a jade question, just not ask a HTML question when you just have jade to show
@FlorianMargaine I mean, what becomes of CS' for of ? How do you use ES6's for of in CS ?
 
I was just talking ingernal, @UlisesContreras, not to you specifically. I don't mind helping with JAde, but your problems were 1/2 just jade-> html.
 
3:06 PM
I don't know much CS
 
Right.
What dystroy said.
 
@dystroy CS's for..of will still translate to the same es5 js... I don't understand your question
 
I stopped using coffee's list comprehension in favor of lodash.
it's awkward about when you need extra ()'s sometimes.
lodash's chaining (one of the things it does better than underscore) is pretty.
 
@Luggage lodash/underscore with arrow funcs <3
 
right.
 
3:11 PM
part of why I've been using TS for stuff
 
use 6to5
 
meh. We have enough code across enough teams that the type checks are super helpful. Unfortunately, the old compiler is stupid slow and there are a few breaking changes between the version we have and the latest.
 
HOLY CRAP
 
hey! new haircut! I'm not sure why do I have to share this, but I'll do anyway
I don't look like a complete nerd anymore
 
:loads gimp:
4
 
3:14 PM
too much work to do :(
 
@rlemon I guess that's the reason XD
 
Not to mention, most of the contractors here have trouble with maps and tuples. Comprehension, destructuring, and iterators are way beyond them. It would only benefit a few devs.
 
@Luggage I'm using Jade, and is ok, but calling to files https, I have problem, with link is ok, but with script, problem, say runtime.js:231 throw err; and I know, I understand u. :)
 
@FlorianMargaine What do you use for HTTP and Routing? I'm going through the tutorial you linked, and was just wondering what your preferences were for that kind of stuff.
(PHP)
 
@RyanKinal FastRoute for routing. For HTTP... no preference, really
 
3:15 PM
@UlisesContreras ensure the script is loading. If so, it' not jade.
 
@towc say what?
 
If somebody feels like helping... stackoverflow.com/questions/27945514/…
 
@RyanKinal I'd go with sf2's HttpKernel because it's the most used
 
@KendallFrey just a big part of me looks nerdy now, not the complex :P
 
"complete" ?
 
3:16 PM
nvm
 
@Luggage yes, script
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"> html is ok.

but script jq not.

http://codepen.io/anon/pen/azJWjr?editors=100
 
@FlorianMargaine Okay. I'll give it a look. It seemed a little odd to use the tutorial author's implementation for a real project.
 
@RyanKinal yeah, I get your point. It's really a small library though, you don't always need all the bells and whistles.
but go with sf's, he links to it iirc
 
Will do
 
that's the point of interfaces :P
 
3:19 PM
You aren't making your problem clear. MAke sure that jquery and bootstrpa nd getting d/led into your browser. You can't just keep posting some html and expecting us to know what your script error is.
 
\o
 
you can swap out implementations at will
 
Yep!
 
also, that's what PHP-FIG wants: creating interfaces that every implementation will use
 
@Room this week I am going to teach git :D cause everybody wants to learn that at college .. (I personally consider myself mediocre in git) would some git ninja want to video educate them ? Please ? I will give u a cookie and a bunch of college students will pray you like a god for eternity
 
3:21 PM
@Luggage How I can to add img here? I can do a capture screem
 
@UlisesContreras you example you just pasted has bad tabbing.
Jade is strict about it. If you can't keep it consitent then use html
or you'll be constanly frustrated
 
can somebody pin that ?
I have to teach them git, and teach them how to use s3 or azure to build and deploy faster (as around 60% of them want me to) . the latter i am pretty good the former meh :-(
 
This is the 3rd time in a row that i just fixed the whitespace and it started working.
 
I have a file base.jade with my links and scripts (snippets) and other file index.jade with extends base.jade.
 
@towc I made you a nerd again
you're welcome
user image
3
 
3:25 PM
@rlemon :-) hi
wat I have exactly those glasses !
 
@rlemon how to up img here? what r using?
 
@rlemon that's so kind of you XD
 
@FlorianMargaine am totally not a nerd.
 
Perfect.
 
nice.
 
Hahaha brilliant!
 
@SecondRikudo ok, that's just ridicoulous
12 mins ago, by rlemon
:loads gimp:
 
He even looks, dare I say, Italian now.
 
@UlisesContreras If you want it to be one-boxed, link to the actual image (Right click, copy image URL, paste here)
 
mwaahahahahahahah
 
@UlisesContreras Fix your whitespace!
I keep telling you. every example you pasted has bad whitespace and jade is complaining.
 
I want to center my dialog , how do I define screen height and width?
 
I'm not clicking that damn image.
 
@UlisesContreras it also needs to be just the link of the image, with nothing before or after it
 
Or a reply
 
right
 
3:31 PM
turn on visible whitespace in sublime and find your mixed tabs/spaces.
 
@Luggage the worst kind of people.
 
People that use spaces instead of tabs? I agree. (starting a war)
 
nah, the one mixing them. No war there.
 
Yea, joking.
Personally I find it a strength that it's so strict. It keeps you from from getting lazy.
 
Python won't even tolerate it
You either use tabs or spaces, not a mix
 
3:36 PM
I don't... I don't think whitespace should define the structure of a program or something
 
@FlorianMargaine Except in the case of Whitespace
 
No.. but in jade and coffee is does and jade doesn't like ANY deviation.
 
yeah. Except there.
 
But yeah, I have a real aversion to something you can't see changing the behaviour of your program
 
I can see the pros and cons in both arguments, but at the end of the day, I can't read code because of how it is done, not code style
 
3:37 PM
I get it. I don't like the idea, but use jade in practice and like it.
 
@FlorianMargaine precisely. That's my problem with python.
 
Unless it is like very atrocious code style
 
Brackets are for compilers, whitespace is for people.
 
@FlorianMargaine I don't see it as a problem
 
3:38 PM
Hahaha, @Luggage sublume text 3 say not space! XD this is stupid to syntax Jade
 
I see needing to use too many parens as a problem ;)
 
@BartekBanachewicz whitespace is invisible
 
So it matters not that you can use a hanging bracket. What matters is that your condition before it isn't like if(r && !s ^ br)
 
@BartekBanachewicz I wouldn't call lisp a problem, that seems harsh.
 
user4202350
3:39 PM
Fast path.
 
@ssube thatsthejoke.png
 
user1596138
No heat in my office today. Its only like 62 but it's getting cold..
 
@ssube Bartek is harsh
@Jhawins I get 62 even when there is heat
 
So is ok!!! YES! fuck Sublime Text 3

<!DOCTYPE html>
html(lang="en")
	head
		meta(charset="UTF-8")
		title Document
		meta(name="description" content="")
		link(rel="stylesheet", href="../public/snippets/reset.css")
		link(rel="stylesheet", href="../public/snippets/borderbox.css")
		link(rel="stylesheet", href="../public/snippets/clearfix.css")
		link(rel="stylesheet", href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css")
body
	script(type="text/javascript", src="http://code.jquery.com/jquery-2.1.3.min.js")
 
@UlisesContreras If jade ever gives strange errors, un-indent and re-indent. I have to do it now and then. It's finicky.
sublime isn't the problem.
 
Not, now is ok! :)) thanks anyway, the problem r space in Sublime Text 3
 
your editor isn't the problem, you are
 
No. Spaces. Not spaces 'in sublime text 3'
Don't blame the tools! :)
 
unless you are a tool
 
Sure, 0 and 1 the computer, edit and anything not know nothing. :)
 
user1596138
3:42 PM
@KendallFrey lol that's kinda cold
 
@UlisesContreras sublime text 3 is a perfectly good text editor. The one to blame isn't Sublime, it's you.
@Luggage he's using tabs
 
@Jhawins When it's 2F (converted just for you muricans) outside, my little fireplace can't keep up
 
Sadly, it still looks wrong unless it's SO messing it up. <body> isn't indented inside of <html>
 
@KendallFrey how did you like that -30
my car almost didn't start
 
@Luggage jade might be forgiving on that.
 
user1596138
3:44 PM
@KendallFrey Yea that's what it was yesterday :/. The furnace is out here. We have a corn stove at the house we run on setting 1 out of 10 and it keeps it >70F down to 0
 
on days like yesterday I set my house to 26 and I'm lucky if it can keep upto 22
 
if I have an array of 6 values, what's the fastest way to assign each of the values to variables a-f?
 
@Charly why would you do such a thing?
 
@rlemon I don't think it hit that here
 
My mechanic has asked me to give him 1000 dollars in cash as payment for his repairs that he made to my car :(
I don't even know if I can withdraw that much at one time
 
3:46 PM
@FlorianMargaine I know, thanks. :) I use so HTML5 normal, but now Jade with bootstrap to work, because this is current market in spain. :)
 
@KendallFrey -20 standing, -33 with windchill for KW
 
@rlemon not sure... is it pretty pointless?
 
@Charly sounds like it
what is the case for it
 
@rlemon that's probably about what it was here
I was playing hockey that night
it started getting pretty chilly
 
ahh, frozen snot feels so nice doesn't it?
 
3:47 PM
ok nvm ill do it the other way just because rlemon is really famous and i think i'll listen
 
user1596138
We went to -10 but that's about as low as we got I think. My brothers coolant froze and he blew a head gasket :D
 
@rlemon That's something that Floridians don't understand :)
 
@Neil why in cash?
 
@Charly lol famous?! since when?
but really, if you have a case for it tell us and we can talk about it. but just from a first glance it seems like something you wouldn't need to do
 
whenever im online i see u chatting
 
3:48 PM
@FlorianMargaine Like most businesses here, they want to be off the records
 
unless you're making some templating system or something
 
The more money on the books that they earn, the more taxes they have to pay.. If you don't want to pay in cash, you generally pay a good deal more
 
nah im a js beginner so thats probably way higher than my lvl
 
where do you live?
 
Italy
 
user1596138
3:49 PM
@Neil write that dude a check lol
 
@SecondRikudo no, but I am sick of gas prices
 
If you never hear from me again, then call the police
 
user1596138
@rlemon why?! what's it there?
 
and mark that NSFW man
don't be a douche
 
I feel like I'm about to show up to a major drug negotiation
 
3:49 PM
some of us might not know about it yet
 
user1596138
I paid $1.65/gal last weekend
 
@rlemon True dat
 
@Jhawins it's the lemon party joke
"sick of high gas prices, visit lemonparty.org" <- gay porn
 
user1596138
I don't get it haha but ok
 
3:50 PM
we don't link porn here, please
 
is whitehouse.org still a porn site?
 
nsfw is fine, not porn
 
user1596138
I do know what the link went to. I was way too young to find that when I did hahaha
 
@Jhawins people were trolling (not sure where the pic was taken) and had signs up saying what I quoted above
funnyjunk.com/funny_pictures/3565282/Sick+of+gas+prices (do not visit the link in the picture)
 
user1596138
@rlemon Hahahahaha that's somethin!
 
3:52 PM
0
A: JavaScript: $('foo') vs document.getElementById('foo')

Ismael MiguelThere are many differences here: $('foo') This is used with a Javascript framework like jQuery. The first argument is a CSS selector. This one will select all <foo> elements, wrapped with other methods. Probably you wanted this: $('#foo') Which does the same thing, but will get the element...

> question references old blog using Prototype
> no way man, jQuery does X. No really, jQuery does X. NO JQUERY IS RIGHT.
it's too early for those kids to be on my jQuery-free lawn
 
because without jQuery we have DOM Level 0, didn't you know
jQuery is a must for all things web
 
but if ur connection is bad jquery sometimes wont load
 
(me is mocking some high rep users who like to assume that DOM interactions require jQuery)
 
user1596138
@rlemon "You get back to DOM level 0 from jQuery like $(query)[0]"
 
user1596138
SOmebody said something along those lines in an answer last year
 
3:56 PM
@rlemon right, unless you're daft enough to include Prototype. Then nobody knows what will happen, but it won't be jQuery stuff.
 
@ssube surprising that you're not mentioning qsa
 
jQuery people are marketing geniuses.
 
@FlorianMargaine wazzat?
 
querySelectorAll
 
"write less, do more" really appeals to the programmer mentality
even if it isn't always true. you get lazy
 
3:57 PM
> With modern browsers, the DOM does support some more complicated selectors (such as getElementsByClassName),
 
oh, I should. Didn't think of it cause jQuery.
 
you should really mention qsa there...
 
I don't mind writing more
 
@FlorianMargaine done, thanks.
 
I believe it's the thinking part that programmers prefer to avoid
 
3:58 PM
I think jquery can still be minified. If u check the source code theres a new line character at the very end of the script.
 
@Neil everyone minds writing more. but when it is worth it, we do it happily.
 
@Charly don't remove that.
like, seriously, do not do it.
 
@Neil then go write assembly
 
why?
 
yeah, why?
 
3:59 PM
because it works?
 
@FlorianMargaine Writing a larger program often goes hand-in-hand with thinking more
 
I'm not aware of anything wrong with it
 
Since you're typically writing more low-level
It's the thinking part that's a hassle, not the actual writing
 
@Neil but if you can write something in 10 lines instead of 20, don't you do it?
 
I can't wait for a day when I don't have to use function keyword in js
 

« first day (1551 days earlier)      last day (3412 days later) »