« first day (1454 days earlier)      last day (3509 days later) » 

9:00 PM
oui
 
I suppose there is always abuse potential when you have people rolling their own all over the place.
 
@SecondRikudo I did today, seems like people ignore me
 
user2620028
Can anyone think of a better recursive way to achieve this? jsfiddle.net/p3bg3hbf
 
Its cool, I wrote my own SQL parameterization library!
 
!!tell zigi welcome
 
9:00 PM
@zigi Welcome to the JavaScript chat! Please review the room pseudo-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.
 
user2620028
I managed one but i wasn't able to get it to stop at the right range out of bounds
 
" just ask your question,"
 
Download it here
 
it's not "splitting" the model
the model layer is a whole layer
it can have all of this
 
@ziGi I didn't invent the Domain Object pattern, or the Data Mapper pattern.
 
9:02 PM
 
I'm not the only one who can answer you
 
I understand that pain, sadly
 
3 messages moved to PHP
 
@HatterisMad - You know that fibonacci is O(1) right?
Is this just for demonstration purposes?
 
@HatterisMad JS isn't optimized for recursion
 
9:03 PM
@TravisJ Which implementation has it at O(1)?
 
@SomeKittens - Uhm, the direct formula
 
!!google fibonacci formula
 
@Mosho why?
 
user2620028
@TravisJ This is not the fibonacci sequence, although similar.
 
9:03 PM
!!wiki golden ratio
 
@TravisJ oh, not "finding the nth fib number"
 
In mathematics, two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. The figure on the right illustrates the geometric relationship. Expressed algebraically, for quantities a and b with a > b > 0, where the Greek letter phi (φ) represents the golden ratio. Its value is: The golden ratio is also called the golden section (Latin: sectio aurea) or golden mean. Other names include extreme and mean ratio, medial section, divine proportion, divine section (Latin: sectio divina), golden proportion, golden cut, and golden number...
 
@FlorianMargaine high cost of function calls
 
user2620028
@Mosho I managed it with recursion already but wasn't able to get it within the max n limit of 29
 
@SomeKittens - Find the nth = O(1)
 
9:04 PM
@Mosho do you know any language that is good at fibonacci then?
 
user2620028
It was always spitting out the 30th number as well
 
@HatterisMad - Ah, okay
 
!!epic
 
@HatterisMad - I only looked at the start of the sequence and since recursion made a bad assumption
 
!!undo
 
user2620028
9:05 PM
@Travis J yeah it appears very similar with those starting seeds :)
 
@TravisJ Oh, I see what you mean now
 
@SterlingArcher ftr JoeWatkins and NikiC are probably the biggest contributors to php7
 
@FlorianMargaine not off the top of my head, but functional languages have less tail call optimization
 
@Mosho less?
 
@FlorianMargaine no kidding?
 
9:07 PM
yes
 
no wait, that's not what I meant
 
Leigh is a frequent (young) contributor, Jack is a veteran and has I-dont-know-how-many-commits, etc etc
 
they have more :D
 
user2620028
And for clarity this is a midterm question for a c programming class that they wanted me to do with a for loop and i looked at it (made it in a minute or two) and said this looks like it would be fun to do recursively. So i wrote it recursively and then couldn't get it within the range of inputs that i wanted.
 
I remember reading JS isn't good at recursion
 
9:08 PM
@Mosho it's not about the function calls, it's about the TCO :)
do you know what TCO is?
 
yeah
 
@SterlingArcher the php room is full of php-src contributors, seriously
there's a reason I said this:
in PHP, 6 mins ago, by Florian Margaine
except Second and teresko, most regulars here are php-src devs
 
Very cool
 
yup
I ended up contributing too :P
 
I like meeting OG contributors
 
9:10 PM
and I kinda actually am right now...
OG?
 
original, sorry
slang
 
ircmaxell is a big contributor too, you know?
 
So I guess they even PHP, bro?
 
9:11 PM
@SterlingArcher: php is for wusses. Do you even headbutt steel tubes, bro?
 
On a daily basis, bro!
 
user2620028
@SterlingArcher Just watched the episode of Archer last night where it started off as Bobs burgers... I had to check and make sure i was on the right tv show before i was convinced it was Archer.
 
I just literally crashed my head into a steel jumping obstacle at the stables.
 
@HatterisMad that one was fucking hilarious
 
!!> (function(n){var p = (1 + Math.pow(5,.5)) / 2, f = ( Math.pow(p,n) - Math.pow( 1 - p , n ) ) / Math.pow(5,.5);return Math.round(f);})(500)
})(500)
 
9:13 PM
@TravisJ 12586269025
@TravisJ 1.3942322456169767e+104
 
50th and 500th fibo numbers
 
var fibonacci = _.memoize(function(n) {
  return n < 2 ? n: fibonacci(n - 1) + fibonacci(n - 2);
});
 
heh, try running that with 500
do it in a separate window :P
 
Yeah instant
 
user1596138
@hatter hey I figured out what happened I think lol. Welded piston
 
user2620028
9:16 PM
@Jhawins how did you find that without a tear down?
 
user1596138
i.imgur.com/BYzwp4I.jpg // turbo intake Lmao this thing is carbuerated probably welded itself together running lean for so long
 
@TravisJ you fill the stack at 5000, but if JS had proper tail calls (which it will for ES6), it would be fine
 
lol "instant"?
it crashes chrome
 
user1596138
Cause it happened at runtime toi
 
@TravisJ it's a memoized function
 
9:18 PM
@TravisJ import the underscorejs library, run his code
 
@phenomnomnominal what's a tail call?
 
@TravisJ not for me?
 
user2620028
@Jhawins what in that picture makes you think it was running lean? Just the fact that it was a turbo on a carb?
 
What is memoized? Is that supported with memory?
 
@TravisJ that's the magic
 
9:18 PM
I see
I didn't do it that way
 
Of course it is, it stores previously computed values, then just looks them up
 
user1596138
@hatter do you see the boot?
 
Sounds like a lot of memory
 
user1596138
Wasn't connected to the intake anymore lol
 
So I have to interview a junior guy, have about 45 minutes
suggestions?
 
9:19 PM
@TravisJ a few stored numbers, and infinitely more understandable code
 
@phenomnomnominal - maths r hard
 
user2620028
@Jhawins yeah but that would mean excessive air getting in not............ Damnit i am thinking about the mixture incorrectly in my head again lmfao. Yeah ok it was probably running lean
 
user1596138
It was basically running wide open ,the turbo amplifies this to an insane degree and since its carved the computer can't increase fuel trims at all to compensate. Runs extremely lean. He had a fuel/air gauge that always read the leanest possible and he swore it was the gauge that was broken.
 
@SomeKittens touch on the prototype, properties vs attributes, basic dom traversal?
 
@TravisJ especially when you're using IEEE754
 
9:21 PM
Make him think under pressure, that's a big one
mental pressure, not physical pressure lol
 
@TravisJ the problem with fib recursion is that the function calls grow exponentially. With memoization, the first call (say 50) makes 2 calls (49 and 48) but when 49 calls 48 and 47 it only needs to compute 47 since 48 is stored from when 50 called it
 
@SterlingArcher Never liked that
 
so you get a nice linear number of function calls
 
This guy has a 4.0 from Columbia, so he's really good at following directions.
 
user1596138
You too much air is lean ;P but no compensation for that at all the fuels/air atios are fixed because its carbed so its a much much bigger deal haha. Plus. Turbo. Who knows what he was running and without the pipe to increase air velocity before it goes in you can fuck up all kinds of stuff.
 
9:22 PM
Well that kicks the shit out of my 2.5 GPA
 
So the current plan is to throw him into a situation where he has a goal, but no specific steps
 
What sort of goal are you thinking?
 
@SomeKittens get him to implement tic tac toe in any way he wants
 
user2620028
@Jhawins right if it was a non carb it could adjust itself for how much air its getting.... I got you as soon as i realized i was having a derp moment.
 
@HatterisMad - Wont converting your function into recursion cause a loss in performance?
 
user2620028
9:23 PM
@TravisJ I didn't test to find out when i had a recursive version of it.
 
@SomeKittens - Ask him why manhole covers are circular
 
user1596138
Yea you got it lol. I used to get those mixed up too but the bikes are carbed and I've had to tune them so I'm used to it
 
@phenomnomnominal I was going to do Minesweeper (already did that with one candidate)
 
I was asked how to calculate the width of canada once
 
@SomeKittens yeah good idea
@Mosho what did you do?
 
user1596138
9:24 PM
Anyway. That's all hahaha. I just wanted proof ahead of time that this is my prediction. I bet the walls and whichever pistons got it worst are smeared looking and welded together.
 
user2620028
@Jhawins i like carbs lol i dont mind them at all. but in my head i was going.. that boot sucks i bet its sucking in tons of air through that.... but good thing that will only make it run rich cause its getting too much air and not enough fuel....... brain starts working damnit thats lean not rich, hot not cold....
 
@TravisJ Probably, but fuck performance :) (until it's actually a problem)
 
@phenomnomnominal I said approximately 15% of the world's circumference at longtitude 40 degrees
but he wanted me to use timezones
 
user2620028
@Jhawins i just wonder what made the thing die in the first place.... if it was running (idling) at a stop light something else would have had to of given to stop the engine rotation to let it weld together. The pistons could have come apart
 
=/
just crashed chrome with 92 tabs open
fml
 
9:29 PM
@Mosho haha fair enough
 
92 tabs?
 
@TravisJ ctrl+shift+t
 
How the hell do you know what tab to click on?
 
@phenomnomnominal - I had 4 windows open, that only brought 1 back
 
oh noob
:P
 
9:29 PM
@phenomnomnominal - A lot of the information was also time dependent
 
this helped me a lot with tab management
 
well, there goes my dating life
user image
3
 
Sounds about right.
 
@SterlingArcher Seems legit.
 
that's me right now
 
9:31 PM
3 messages moved to Trash
 
!!beer or Irish creme
 
@rlemon Irish creme
 
!!scotch whiskey or irish whiskey
 
@TravisJ scotch whiskey
 
9:32 PM
good choice
 
@TravisJ Wait, I changed my mind! irish whiskey
 
Ahaha
 
I had royal canadian whiskey yesterday
or something like that
 
Canadian club?
 
exactly this one
crown royal
 
9:34 PM
Ahh yea
That is pretty good stuff
 
pretty nice
not expensive too
$40 I was told
comes with a fancy pouch
 
Yup
 
!!> (function f(n){return f(n-1);})(1)
 
@TravisJ "InternalError: too much recursion"
 
:P
 
9:36 PM
recursion is for hipsters anyway
 
I feel this is relevant to
Horses love 'staches.
 
Hi there!
 
@Basj HI THERE FRIEND!?
 
9:48 PM
My coworker perches on her chair. It's adorable.
 
How can I make it so that the title attribute shows it's value instantly when you hover over an element instead of it fading in?
 
3 messages moved to Trash
oops
 
@SethTaddiken you don't choose that. Don't use a title attribute and use some tooltip js lib
 
9:51 PM
1 message moved to Trash can
 
@ziGi I'm a room owner, you're not
 
this ain't no democracy
 
@FlorianMargaine ok...
 
9:51 PM
Did you guys hear something?
 
@phenomnomnominal come on
 
@FlorianMargaine LOL
 
who is that guy phenomnom
first time I see him
and he is an owner?
 
Your eyes suck
 
@SethTaddiken the title attribute is defined by the browser, you can't really choose how it appears
 
9:52 PM
!!afk home
 
I sure am.
 
@FlorianMargaine would have an idea for a an <input> not showing its history when using DOWN_ARROW key ?
 
@ziGi not in your timezone I guess
anyway, g'night
 
what do you mean not in my timezone?
 
want
indoor pond/garden
 
9:53 PM
man
isn't it ironic
that people go to live in the cities
wanting to go back to nature
 
^ in before not ironic
 
by bringing it inside their homes
this is more like situational irony
 
well I live in Canada
I can't have this shit outside year round
inside or nothing
 
ahahaha yes I forgot you have like 2-3 days of summer
 
last weekend I moved my garden indoors
 
9:56 PM
 
wtf
 
I lied about the home
 
media shock headlines
 
in a minute
 
9:56 PM
nothing new
 
lol
people are idiots
and fight like little children over power
until people learn to live normaly and not being greedy, we can't go forward imo
 
It wouldn't have happened if Bush was president
@rlemon I'm not clicking anything coming from the "fisting fury" domain
owait
 
why isn't there parties that do coalition
example
 
!!afk fuck politics nobody is right
:D
 
30% for liberals 70% for republicans then if the parliament has 100 people do 30 people liberals and 70 republicans
 

« first day (1454 days earlier)      last day (3509 days later) »