News for hackers. Stuff that matters.

HOLYCOWBATMAN

Re:Optimistic UI and Reactive Programming with Elm on Sunday July 26, 2015 @04:19PM (#9952086)
>The one thing I really like in react is the composability. I haven't seen a mechanism a nice in elm like the virtual dom

Im not familiar with react, and im not quite sure what you mean by that, but elm html is based on virtual-dom...

http://elm-lang.org/blog/blazing-fast-html

I think we found a feminist blogger news reporter.
I got excited for a short second http://helm-engine.org/
Re:Case study: tinnitus with distortion on Saturday July 11, 2015 @10:01AM (#9869786)
Its the first blog i have bookmarked in years. I just couldnt stop reading all the previous posts. Every post is full of interesting content not just empty useless rants. This is quite the change from the typical wannabe philosopher blogs "durr web is broken." or "10 Things To Know When Making Web App in <yyyymmdd>"

...ok back to reading the rest of the posts!

Re:Our beautiful fake histories on Friday July 10, 2015 @09:33PM (#9868088)
>It's not about faking anything, it's a question of what information you want to leave for posterity

Exactly, i bet when this guy wrote his blog post he used backspace more than once. No idea why he thinks git is any different.

I commit all kind of garbage while developing: stackoverflow references, commented code examples, temp commits when i have to leave in a hurry, etc... rebasing --interactive + merge (with optional no-ff if you hate linear history) is a must and basic respect for your colleagues.

You can cook naked if you want but i dont want to see your pubes in my meal.

Re:Things to Know When Making a Web Application in 2015 on Friday July 10, 2015 @03:47PM (#9866299)
I wouldnt take any advice on web dev from someone if his simple blog looks like this http://i.imgur.com/uHi0g0Z.png

brb compiling linux to JS to render my blog post.

Re:YC startups that are hiring on Tuesday July 07, 2015 @10:09PM (#9849382)
And .net runs on linux with mono or the new .net core plus its open source.
Re:YC startups that are hiring on Tuesday July 07, 2015 @10:05PM (#9849371)
Getting runtime errors.

But seriously if you want something quicker than c# for prototyping just switch to F#. Ruby has only downsides.

F# - Functional language where you can cheat more than haskell if you need to. Can use all the .net ecosystem and works everywhere (linux, windows, mobile, can compile to js.)

C - Pretty much everything is built on top of C right now.

Javascript/html/css (using Flow to add a robust type system, since dynamic typed languages are shit for long term ease of development)- Required if you want to do anything web plus its the only true cross platform GUI to use on top of your F#.

>The benefits of static typing (complie-time checks) are grossly exaggerated. If the claims were true, Java itself and Java projects would be much less buggy

I wouldnt call Java an "advanced type system". Take a look at Idris then try to say that with a straight face:

>Because neither an advanced type system nor static analysis could catch bugs in program logic

It certainly does if you indeed use an advanced type system.

Re:Frankencamera on Saturday May 16, 2015 @04:59PM (#9557594)
more like Frankenwebsite, white page if no javascript for a simple blogpost... pass
Re:A cursory look at meta-programming in Nim on Tuesday May 05, 2015 @07:33PM (#9495673)
Hey i can do that in $php too!

    function execute($order, $callbacks){
        foreach($order as $i){
            $callbacks[$i]();
        }
    }

    function abcProcs(){
        foreach(func_get_args() as $f){
            eval("function $f() { echo '$f'; };");
        }
    }

    abcProcs("A","B","C");
    execute([0,0,1,2,1,2], ['A','B','C']);
edit:

you don't have to quote the function names (just to show they are really functions and not closures):

    execute([0,0,1,2,1,2], [A,B,C]);