Live data from Hacker News

Myself – v1.0.3

codepen.io

61–70 of 79 posts

Re: Myself – v1.0.3

#62
post #9

This is outrageously cool. Really nicely executed. That said, it does rather illustrate just how nasty the syntax is for creating animations with CSS.

I was just thinking that. I don't do much with CSS directly (I know enough to be dangerous) but I kept thinking "Ok, now it will start beating" and then 2-3 more lines of practically gibberish and rinse and repeat until the end when it started beating. WAY too much CSS to do something like that. I'm not sure what the fix is though? A JS library to generate the CSS animation with a saner syntax (I realise CSS probably…

>WAY too much CSS to do something like that. I'm not sure what the fix is though? A JS library to generate the CSS animation with a saner syntax (I realise CSS probably needs all of that stuff to be extendable but it's a massive amount of code for something that should be easier to accomplish IMHO).

The most logical solution would be the way we extend CSS syntax today - preprocessors like LESS and SASS. You don't need to render the valid CSS clientside, you can just compile it into CSS before you deploy it.

Re: Myself – v1.0.3

#63
I love this! I found it funny that the heart sends out those little shockwaves on the ventricular diastole (when the heartbeat relaxes) as opposed to when it contracts.

Re: Myself – v1.0.3

#64
post #53

Earlier quoted context omitted.

The best and earliest example I saw of this was Bret Victor's talk "Inventing on Principle" https://vimeo.com/36579366

I gave a talk at OOPSLA in Montreal in 2007, made a pacman game during my 30 minute talk slot using a live programming language/environment. I'm sure I wasn't even the first, as I got many of my ideas from Chris Hancock's PhD thesis published in 2003, "Real time programming and big ideas in computational literacy", and of course the multitudes of less but still interactive Lisp and smaltalk environments, and fully in…

Is there a video of the talk?

Re: Myself – v1.0.3

#66
post #10
post #4

I feel like someone could build a game with this. Where you see the code being writen as you make your choises. That would be super cool. Anyway, that's an amazing job you did OP.

There is a game called Odesk. You need some money to create new match and then just describe starting level in natural language. As game progresses, you will face choices, but only once per day at most. It's pay to win though.

Link?

Re: Myself – v1.0.3

#67
post #64

Earlier quoted context omitted.

I gave a talk at OOPSLA in Montreal in 2007, made a pacman game during my 30 minute talk slot using a live programming language/environment. I'm sure I wasn't even the first, as I got many of my ideas from Chris Hancock's PhD thesis published in 2003, "Real time programming and big ideas in computational literacy", and of course the multitudes of less but still interactive Lisp and smaltalk environments, and fully in…

Is there a video of the talk?

No, I have some videos of the demos on you tube...see the bottom of

http://research.microsoft.com/en-us/people/smcdirm/liveprogr...

Re: Myself – v1.0.3

#69

This is called interactive development; if you liked this, check these out: * Interactive programming Flappy Bird in ClojureScript: https://www.youtube.com/watch?v=KZjFVdU8VLI * Live-editing React app without refresh: https://vimeo.com/100010922 These demos aren't smoke and mirrors, I and many others do interactive development, 8 hours a day, writing regular web apps.

Are there any good approaches for doing this without a specific framework?

I use this and it works for me http://brettterpstra.com/2011/03/07/watch-for-file-changes-a...

Re: Myself – v1.0.3

#70
post #26

This makes me think of a new requirement for a hypothetical programming language: this requirement is that the programming language supports a coding style where additions to the code (new functionality, or bugfixes) are appended at the end of the code text, rather than inserted inside the existing code. I wonder if a language like this would be feasible and practical.

Maybe literate programming ( http://en.wikipedia.org/wiki/Literate_programming ) goes some way towards that? Or at least could be extended to do that?

This is a good example of what the OP is asking for. However, you really have to see an example of it to understand the benefits. The writers of the "Physically Based Rendering: From Theory to Implementation" did this for their book, and it's pretty amazing.

They would write text, then a code block:

    func main() {
       
       
    }
followed by another block of text, and then an expansion of the code

     = 
        var foo int
        var bar int64
And so on.

     +=
        var zed rune
Which, when run through the "tangler", would produce:

    func main () {
        var foo int
        var bar int64
        var zed rune
    }
The first really interesting implementation I've seen of literate programming, and it makes me want to implement it myself.
Post reply on HN