News for hackers. Stuff that matters.
Re:Marko – An isomorphic UI framework similar to Vue by pier25 on Sunday August 20, 2017 @08:22PM (#15061054)
> use Webpack's aliases

You are contradicting yourself there. There is really no difference in clarity between an automatic path resolver and using aliases.

> I like Vue's idea of separation computed/methods/data blocks more than mixing all together

It's really a matter of taste.

Re:Marko – An isomorphic UI framework similar to Vue by vladimir-y on Monday August 21, 2017 @12:18AM (#15061887)
> You are contradicting yourself there. There is really no difference in clarity between an automatic path resolver and using aliases.

No difference? In case of explicit importing you get the "import" thing in the sources code and it's a huge difference in comparison of not having it there.

> It's really a matter of taste.

Not really, but a matter of separation of concern and good design. Besides Vue is a reactive thing, and such structure I guess makes it easy to apply reactivity observers where they are needed in a more explicit way.

Re:Marko – An isomorphic UI framework similar to Vue by pier25 on Monday August 21, 2017 @11:07AM (#15065109)
> No difference?

If you are using aliases you are not using explicit imports.

    import something from 'something';
Where does 'something' come from? No idea unless you peek at the webpack configuration file.

You don't even know if the module is actually called 'something'.

> Not really, but a matter of separation of concern and good design.

Then I'm guessing you consider all OOP languages badly designed since none of them have properties for 'methods', 'getters' (computed), etc. Yes?

Re:Marko – An isomorphic UI framework similar to Vue by vladimir-y on Monday August 21, 2017 @12:54PM (#15065879)
> If you are using aliases you are not using explicit imports.

You are as you have the "import" code line in the code sources. If you get rid of that code line, you make it happen implicitly and this is the case of undesirable "magic" happening.

> No idea unless you peek at the webpack configuration file.

Some IDEs do support automatic Webpack's aliases resolving, so you can navigate to the module by ctrl+click.

> Then I'm guessing you consider all OOP languages badly designed since none of them have properties for 'methods', 'getters' (computed), etc. Yes?

Don't be silly, we are talking about JS that has a room for adding some structure as it's being too flexible by default.

Anyway thanks for the Youtube link, it helped me to realize that I'm not going to use this Marko thing.