Live data from Hacker News

Myself – v1.0.3

codepen.io

31–40 of 79 posts

Re: Myself – v1.0.3

#31
Wow this was really nice.

Although, as a non-webdev, the amount of code needed for this surprises me. I guess that's all abstracted with JS and CSS frameworks, but still.

Re: Myself – v1.0.3

#32
post #23

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.

There's also my favorite: live-editing a VR environment. https://www.youtube.com/watch?v=db-7J5OaSag

I sent this very link to an acquaintance who is looking to get started programming, to give him an idea of how much fun it is to do things interactively in a tight REPL-alike.

I think a lot of people who are just starting out get deterred when the only thing they end up with after a week of effort is some hard-to-see changes happening on the filesystem or in some file.

Re: Myself – v1.0.3

#34
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?

Re: Myself – v1.0.3

#36

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?

Not really, for interactive UI development you need to model the UI as a pure function (no state in the view). So that limits you to React or React-like approaches, and game engines: https://www.youtube.com/watch?v=tJr_TD1BtF0

For backed web development (in Clojure at least) there isn't really a lot of state in the first place - request comes in, request comes out, state is in the database not the application - so there are no framework constraints.

Re: Myself – v1.0.3

#37
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.

It isn't that bad. Remember that he prefixed for webkit and also wrote everything by hand. Most of CSS is written using mixins/functions these days or at the very least with some help with the text editor.

He also created two animation. One that us subtle in the background and the beating of the heart.

That being said, yes. They are a pain to write.

Re: Myself – v1.0.3

#38
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.

well if you think of "the code" as whatever is checked into git, then we already have that and it works great

Re: Myself – v1.0.3

#39
I've evaluated Light Table a couple of weeks ago and wasn't really happy with it (it's a lot better than Facebook's hot code swapping lib though). I don't need React or any of that stuff (I don't mind writing plain HTML5, ES5, and CSS3). I just want to do graphics programming in real time. Is there anything besides Shadertoy I should be looking at?

Re: Myself – v1.0.3

#40
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.

I'd say it's feasible. Practical? Probably not. I'd imagine it would be like a very linear, horribly written story:

    * John goes to the store and meets a woman named Jane.
    * Wait, actually her name is Alice and she works at the store.
    * John tells Alice that he is looking for a widget.
    * Alice looks for the widget and shows John a list of what she found. 
    * John can't read the list.
    * John takes a photo of the list and sends it to his friend Jane.
    * Jane reads the list and texts what she thinks it says back to John.
    * John promises to get back to Alice once he can read the list. 
    * John gets Jane's SMS. John can't read Jane's SMS.
    * John throws his hands in the air.
Post reply on HN