« first day (951 days earlier)      last day (4222 days later) » 

12:00
^ part of my new site
@phenomnomnominal damn that is pretty.
No-one loves my functional code :/
@BenjaminGruenbaum, I DO
i do have bit of cash if anyone can help to do this for me btw.
@mikedidthis - This is my best.
12:01
@KirstyHarris, buddy, just ask the question
@KirstyHarris being a jerk and just saying a joke "If you said I have a bunch of pictures of mine, if somecan can help to do this for me btw" you will get 10x dudes helping u (XD)
ok...
www.heredesign.co.uk
@mikedidthis - For some reason it doesn't upload the pic. Hold on.
ive got that coded into wordpress
@phenomnomnominal
it uses two sections, a portfolio and a clients section
and in the js its got some code to make the bad boy work...
deepschool.jaberwokkee.kodingen.com/~/ , is therea reason why the iframe only shows in ie?
12:03
how easy would it be to add a 3rd section in this js so i can do it in wordpress... apparently its tempremental as hell
@phenomnomnominal naa, people only like jQuery
@BenjaminGruenbaum, yeah people suck.
basically the guy has made 2 sections, that then link to the js somehow,... and i need to be able to do two more in that js basically replicating that code
Anybody tried go templates ? I have the most basic question :
0
Q: Access value from out of the loop inside golang template

dystroyI have this struct : type Site struct { Name string Pages []int } I pass an instance of Site to a template. If I want to write a list of all pages, I do {{range .Pages}} <li><a href="{{.}}">{{.}}</a></li> {{end}} Now, how what's the simplest way to use the Name field inside the...

@rlemon wise words. Now add two kids into that equation. I have no idea how @loktar does it.
@mikedidthis - See this:

http://imm.io/177Dj
osrc.dfm.io/raynos <----- WHY DOES THIS NOT SURPRISE ME ! RAYNOSSED
@mikedidthis same
> I hate to say it but Raynos does seem—as one of the top 20% most vulgar users on GitHub—to be a tad foul-mouthed
lol
12:06
@phenomnomnominal, lol.
@AaditMShah damn, that's some skill
osrc.dfm.io/loktar00 <- and this is a proof that statistics are useless :P
it makes Jason look like a newbie :-(
idk
I'll take "Hump Day Hero"
oh yeah, I completely forgot
!!/tell Shmiddty protip
@Shmiddty ProTip: Asking to ask, (or warning us of a upcoming question then waiting for a response before typing the question) will just get you ignored.
12:10
/tell now universally controls output, so it should work with everything
@rlemon.. fancy a job lol! :)
> Zirak seems to speak only one programming language: JavaScript. Maybe it's about time to branch out a bit.
@rlemon boy thats a lie
@Darkyen Because your Jason hasn't done much with his github
@Zirak how is he mine ?
and he has pushed way too much on codepen which is OPEN SURCE
12:12
I hate to say it but @Zirak does seem—as one of the top 33% most vulgar users on GitHub—to be a tad foul-mouthed (with a particular affinity for filthy words like 'fucking').
Maybe, but this only refers to GITHUB
@AaditMShah Fuck off
My source code contains a lot more...vulgarity
I think the FF error madness was the worst
@Zirak, lol.
Anyone got a nice way to create, call, and return a function?
12:14
Wait, I've got to check @Zirak's SO bot code. Just to confirm that he's a bot. =)
@phenomnomnominal did u see what i posted? not sure if u did
@KirstyHarris, yeah I did, looks too big to handle tonight
@phenomnomnominal, yes:

https://gist.github.com/3091759
that's what she said
no worries :( well i could have done with it for tuesday latest... is it a copy and paste job lol!
> We seem to have missed the gist of that gist you were looking for.
i hope to understand that copy and pasting is the answer to most things.... 0_o
@rlemon To be fair, this tool doesn't make a good job in identifying languages. I don't know cofeescript and it identifies it as one of my main languages
12:15
@AaditMShah, haha
Nice, but I was looking for something more concise than:
var blah = function () {}
blah()
@phenomnomnominal, I was hoping to get some design patterns standardized but no one in TC39 ever listens to me.
One day they will!
You could try:

let blah -> undefined
blah

And then create a Haskell to JS compiler. =)
Something like that.
@phenomnomnominal why cant u just do
function blah(){

}
@Darkyen, because I want to call it as well
12:19
@Darkyen, I think @phenomnomnominal is just goofing around.
and I don't like named functions
(function(){
})();
@phenomnomnominal - That's something new.
and this ?
@Darkyen - That's an IIFE.
12:19
I want to call it later as well
You can't call it whenever you want.
ah @phenomnomnominal
how long would that take someone to do @phenomnomnominal realistically to add a new section
so you dont want a named function but you want to call it later
got it !
12:21
@phenomnomnominal, don't use a function. Just Ctrl+C and Ctrl+V. Fastest.
What the fuck did I just watch
@phenomnomnominal I think you already know the answer
@AaditMShah, oh yeah, why didn't I think of that
@phenomnomnominal what are we trying to do? I was coding, now compiling
got a minute or two
12:22
@phenomnomnominal, I got a solution. Try sweet.js
create a function, call it straight after it's defined, and have a reference to it, so it can be reused
I think a named function probably is the answer
macro def {
  case $name:ident $params $body => {
    function $name $params $body
  }
}
(function blah() { ... })();
Ah, I think that's what named functions are for
12:23
@phenomnomnominal no
but then it's scoped
that's still an anonymous function
@phenomnomnominal - sweetjs.org
I don't want to include a library for this haha
12:23
I'm genuinely fine with var blah = function () {}; blah()
//What's wrong with
function myMethod(){
 //
}
myMethod();
I just thought someone might have a super classy way to do it
@phenomnomnominal, it's not a library. It's super JS which compiles down to regular JS.
Kind of like coffeescript.
@AaditMShah, I'm already compiling for CS, don't need another layer :)
@phenomnomnominal - You have too high expectations.
12:24
@phenomnomnominal If you're calling your function anyway, it's not anonymous
(x=()=>x)()
It's not named though?
@BenjaminGruenbaum, he's storing his anonymous function in a variable.
@phenomnomnominal, perhaps you should do point-free programming with Factor.
12:25
var blah = function () {} // anon
var blah = function blah () {} //named
@AaditMShah Yeah, I know, I just think it's not the best idea, your function really isn't anonymous
Wait that's still not anonymous.
@BenjaminGruenbaum, I don't like hoisting
@AaditMShah but I am.
@phenomnomnominal why?
12:26
@BenjaminGruenbaum, just don't
@dr.eval, but you are what?
@phenomnomnominal in CS, probably what @FizzyTea said
@BenjaminGruenbaum, seems like just another place where you could fuck up
@AaditMShah anonymous
Functions get hoisted in most other languages too you know
It's just vars that are strange
12:27
@phenomnomnominal, if you don't want hoisting then write functional code:

(function (f) {
    // use it here
}(function () {
    // something
}))
@AaditMShah, I do
@Zirak 420, help, listen, eval, coffee, live, die, refresh, forget, ban, unban, info, jquery, choose, user, listcommands, norris, urban, parse, tell, mdn, awsm, convert, define, get, google, hang, inhistory, learn, 5318008, bewbs, i_am_a_robot, aliens, ym, format, 3point14, camel, ihatelanadelrey, fa, knock, lick, insult, ultimateinsult, microlove, easytools, wherearethegoats, tobacconist, ninjad, sarcasm, adventure (page 0/2)
Fuck
!!c> (blah = () -> console.log('blah'))(); blah()
@phenomnomnominal "undefined" Logged: "blah","blah"
12:28
!!c> (x=()-> console.log "hello world")();x;
@BenjaminGruenbaum "SyntaxError: syntax error"
@BenjaminGruenbaum "function () {\n return console.log(\"hello world\");\n}" Logged: "hello world"
!!> help
@phenomnomnominal, create let expressions in JS.
@C5H8NNaO4 "ReferenceError: help is not defined"
12:28
!!help
@AaditMShah let is stupid
!!norris
@C5H8NNaO4 Y U NO MAEK SENSE!? Could not understand norris (perhaps you meant to execute a command? If so, prepend the command name with a /)
@BenjaminGruenbaum - I mean let from LISP let. It prevents your variables from being hoisted.
12:29
Ah, I thought you meant ES6 let
Instead of using var declarations or function declarations you use IIFEs to create new variables.
There's a word for it - Continuation Passing Style.
In functional programming, continuation-passing style (CPS) is a style of programming in which control is passed explicitly in the form of a continuation. Gerald Jay Sussman and Guy L. Steele, Jr. coined the phrase in AI Memo 349 (1975), which sets out the first version of the Scheme programming language. John C. Reynolds gives a detailed account of the numerous discoveries of continuations. A function written in continuation-passing style takes an extra argument: an explicit "continuation" i.e. a function of one argument. When the CPS function has computed its result value, it "return...
Yeah, I know what CPS is
Also, @AaditMShah that's pretty much how JS works
Instead of returning stuff you work with callbacks and promises, so it's nothing new
The entire language is practically based on using CPS
@BenjaminGruenbaum, unless you want to use call/cc in which case your programs would have to be in CPS.
What? I didn't get that last one
xhr.addEventListener("load",function(){
   // code here
},false);
that's a type of CPS right there
@BenjaminGruenbaum, call-with-current-continuation can't be implemented in JavaScript unless your programs are written in CPS (which means that absolutely no function ever returns) - beside native functions.
12:33
Oh, again you're changing languages
When you said call you mean a scheme call
You've got to be more specific when you do that
Lol. Sorry.
11
Q: What's the difference between a continuation and a callback?

Aadit M ShahI've been browsing all over the web in search of enlightenment about continuations, and it's mind boggling how the simplest of explanations can so utterly confound a JavaScript programmer like myself. This is especially true when most articles explain continuations with code in Scheme or use mona...

C# has something similar to call-with-current-continuation
@AaditMShah @FlorianMargaine Y U CLOSE HIS QUESTION >: ( ?
12:35
@rlemon, one of those times when you get a brilliant idea that's really stupid.
@FlorianMargaine @AaditMShah 's question about continuation, y u close it?
@AaditMShah C# has continuation :) I use it lots
@BenjaminGruenbaum, I've never tried C#. Do you work on Windows?
@AaditMShah I also agree with you that you can't implement call/cc in JS but that's because you can't hook on a function finishing to execute, that's the only reason.
I work on a hockey puck .. but then, I am from Canada eh.
I think this question which is mostly about semantic should have been migrated to programers.se
12:37
@AaditMShah Sometimes. In C# tasks have a .ContinueWith method which rocks.
!!/info friday
@AaditMShah In JS we can get that, but only in the next version (harmony) with generators :)
@BenjaminGruenbaum, cool. I only use Linux so my options are limited.
@AaditMShah Mono
@BenjaminGruenbaum, generators are like inverted continuations.
12:38
@AaditMShah HEAR THAT @OctavianDamiean !! HE ADMITS THAT HIS OPTIONS ARE LIMITED IN LINUX!, that doesn't make him worse of a man :P
@AaditMShah They let us have coroutines, which means we'll be able to develop constructs where we'll be able to simulate continuations effectively.
9 messages moved to Sandbox
@AaditMShah They give us the hook we need on a function finishing, like the async/await construct in C# (or F# if you do know that language)
!!/tgif
@BenjaminGruenbaum - I wrote a library for creating fibers in JavaScript 1.7+: github.com/aaditmshah/fiber
12:39
@Loktar that ones for you ^^
@BenjaminGruenbaum - That's as good as it gets without using node-fibers.
@AaditMShah Very interesting!
@AaditMShah have you heard of async/await ?
@BenjaminGruenbaum, no I haven't.
@AaditMShah :) It's orgasmic really, it lets you write asynchronous code in a synchronous way
@BenjaminGruenbaum, in current JS implementations?
12:41
var myDB = async dbQuery(...);
// do synchronous stuff
var result = await myDB
foreach(ver row in result){
 ///
}
Awesome.
It's C#, not JS :/
@AaditMShah C# lets you do something like that in fiber syntax:
Oh. Lol. It looks a bit like promises.
It's just a generator in the background :)
 //C# tasks let you do that
 Fiber(myMethod).ContinueWith(otherMethod).ContinueWith(thirdMethod).start();
@BenjaminGruenbaum, I see. Anyway I've got to go now. I'll talk to you later. Thank you.
12:43
See ya :)
@BenjaminGruenbaum, interesting. Bye.
@BenjaminGruenbaum dig into your flash pool of tuts and find me one on 2d particle fluid simulation
@rlemon first google result blog.oskoui-oskoui.com/?p=1727
wait nvm
that's just a 'how to copy-pasta' tutorial
yea particles are fine, it's the physics of the fluid I need to simulate.
12:47
@rlemon, fluid simulations are a bitch
How are your laplacian eigenfunctions?
@phenomnomnominal I think you're shooting too far. @rlemon how is your vectors?
that is cool
and damn, ok i'm going to read some more. fuck you guys... always showing me how little I know
That looks promising
@rlemon Do you by any chance have the simulation I gave you for the circular orbit?
I remember making it prettier than what I came up with now
12:59
How do i execute a javascript function directly? I don't want it to do on load, but as soon as possible.

« first day (951 days earlier)      last day (4222 days later) »