Hacker News new | ask | show | jobs
by franciscop 2548 days ago
> a mission to build the most elegant framework ever

This is where it lost me. Why is elegance a priority? What problem is elegance trying to solve here? Elegance is just a feature, that ill-suits many people who might be better served by others. Also seeing the examples in the homepage don't seem very "elegant":

    // A first Activity, similar to the Controller in an MVC approach
    export class MainActivity extends
      PageViewActivity.with(view) {
3 comments

Examples aside, here's how I think about elegance. Sometimes you run across, or imagine in your head, or accidentally stumble into writing some Especially Good Code. The code just seems to work, extends easily, repels bugs, scales appropriately, etc etc.

I think what's happened in these cases is, typically by luck, you've written code that matches up very simply and beautifully with an undescribed and perhaps indescribable pattern that's present in a larger problem domain. Like poetry, your code expresses the nuances of that problem in a way that prose simply can't (efficiently). You can't always tell or explain what's so great about it, but working with it is a pleasure, and it rarely lets you down. To me, that's the ideal of elegant code.

Agreed, might have rushed this part of the intro. Edited the story to add some more important goals. Thanks for your feedback!
Elegance might be a priority insofar as it correlates with developer productivity.