News for hackers. Stuff that matters.
Re:Show HN: Lucia – 3kB Vue Alternative by gavinray on Sunday October 25, 2020 @02:30PM (#24888638)
I would make a joke about "we don't need any more frameworks" but his Github profile says he's a HS student, and he has 20 source repositories (many of which seem non-trivial) and just shy of 2 years of commit history.

Regardless of whether or not this is really a "Vue alternative", this kid is killing it.

Re:Show HN: Lucia – 3kB Vue Alternative by bachmeier on Sunday October 25, 2020 @03:51PM (#24889344)
> I would make a joke about "we don't need any more frameworks" but his Github profile says he's a HS student

I don't see why that's relevant. You shouldn't shit on someone else's project regardless of age.

Re:Show HN: Lucia – 3kB Vue Alternative by muglug on Sunday October 25, 2020 @04:38PM (#24889689)
It's the reverse! They're saying the kid is doing great!
Re:Show HN: Lucia – 3kB Vue Alternative by frutiger on Monday October 26, 2020 @02:15AM (#24893261)
Sure but GGP is saying that if it wasn’t a high schooler, they would criticise the project.

Therefore they would criticise a project based on the author’s age.

Re:Show HN: Lucia – 3kB Vue Alternative by shermanmccoy on Monday October 26, 2020 @12:54AM (#24892935)
"killing it" is slang for doing really well.
Re:Show HN: Lucia – 3kB Vue Alternative by aidenyb on Sunday October 25, 2020 @02:34PM (#24888669)
Thank you for the positive comments :)
Re:Show HN: Lucia – 3kB Vue Alternative by Existenceblinks on Tuesday October 27, 2020 @07:03PM (#24913076)
Don't downvote me, when I was in highschool I barely be able to print star pattern (from exam) on DOS screen with C++.
Re:Show HN: Lucia – 3kB Vue Alternative by uallo on Sunday October 25, 2020 @02:27PM (#24888620)
Re:Show HN: Lucia – 3kB Vue Alternative by aidenyb on Sunday October 25, 2020 @02:30PM (#24888641)
Thank you, I'll be sure to look at these and add them in the Acknowledgements
Re:Show HN: Lucia – 3kB Vue Alternative by jonahx on Sunday October 25, 2020 @03:05PM (#24888944)
Unless you drew inspiration from them (I'm assuming no, since you just heard about them), "Acknowledgements" doesn't seem right.

"Similar Projects" would be more accurate.

Re:Show HN: Lucia – 3kB Vue Alternative by aidenyb on Sunday October 25, 2020 @03:10PM (#24888994)
Good suggestion - I'll be sure to change that
Re:Show HN: Lucia – 3kB Vue Alternative by TiredGuy on Sunday October 25, 2020 @09:52PM (#24892065)
We often see two sides of a spectrum in js framework approaches to templating: directive-driven and mental model driven. Vue and Lucia are good examples of directive-driven templates, with things like v-if, and JSX is a good example of mental model driven since you know the JSX markup is just js syntactically sugared to look like html and you then act accordingly. Here's another 3k library from the mental model side of the spectrum that uses a lit-html-like approach, where the template is just a string template literal: https://andrewfulrich.gitlab.io/barleytea/
Re:Show HN: Lucia – 3kB Vue Alternative by aidenyb on Sunday October 25, 2020 @10:13PM (#24892222)
This concept looks really interesting. I like the analogy you gave for both types of libs
Re:Show HN: Lucia – 3kB Vue Alternative by superasn on Sunday October 25, 2020 @02:16PM (#24888529)
This can be a useful alternative for small web apps similar to how AlpineJS is but please don't call it an alternative to Vue.

As a matter of fact Evan You (the creator of Vue) himself created a blog post about this topic (1)

(1) https://blog.evanyou.me/2013/11/04/simplify/

Re:Show HN: Lucia – 3kB Vue Alternative by keb_ on Sunday October 25, 2020 @04:24PM (#24889594)
I wonder what Evan You's position on this is today. I use and have been productive with a couple smaller libs (Preact, Mithril, Hyperapp) and never felt I was making major tradeoffs. I suppose everyone can have very different use-cases of course.
Re:Show HN: Lucia – 3kB Vue Alternative by aidenyb on Sunday October 25, 2020 @02:33PM (#24888661)
Thank you, this is really useful. I'll be sure to check it out and take notes
Re:Show HN: Lucia – 3kB Vue Alternative by LoSboccacc on Sunday October 25, 2020 @05:07PM (#24889882)
> By scattering selectors all over the place the HTML template and the JavaScript code is tightly coupled so when you change one place you need to manually change the other place as well

eh, it's not like if you change something in the vue state store you don't have to modify the template as well

Re:Show HN: Lucia – 3kB Vue Alternative by franciscop on Sunday October 25, 2020 @02:42PM (#24888733)
I am a bit confused with the readme, is it a jQuery or a Vue alternative? Those are very different:

> "a drop-in replacement for jQuery and vanilla JavaScript web apps"

> "provides a declarative API similar to Vue to create views"

But reading further from the code samples it seems like a Vue replacement and not a jQuery replacement. I made a 2.5kb jQuery replacement back on the day so was very curious if this would be another: https://umbrellajs.com/

I'd also recommend the author to use a spellchecker, since I've found typos generally decrease trust on a project and I can see two on the second paragraph alone.

Re:Show HN: Lucia – 3kB Vue Alternative by aidenyb on Sunday October 25, 2020 @02:53PM (#24888833)
Hi there, I agree the way I tried to communicate Lucia was kind of confusing - I'm pretty new to the javascript library space and I wasn't sure how to correctly communicate it. As per the other comments on this post, I'll definitely be shifting towards describing it as a Vue/Alpine alternative.

UmbrellaJS looks really cool! I just left a star

Re:Show HN: Lucia – 3kB Vue Alternative by kaushikt on Tuesday October 27, 2020 @09:20AM (#24907108)
I'm just discovering UmbrellaJS. This is pretty sweet. I hate to say it but I like jQuery but don't like the heavy load times it comes with.

Although, yes, I don't need jQuery but I would love to do things easily without bloating up my code.

We will be looking into UmbrellaJS more.. thanks for this.

Re:Show HN: Lucia – 3kB Vue Alternative by canada_dry on Sunday October 25, 2020 @02:23PM (#24888585)
Quite impressive for a high school project.

Kudos!

Re:Show HN: Lucia – 3kB Vue Alternative by aidenyb on Sunday October 25, 2020 @02:32PM (#24888654)
Thank you! I'm very happy I'm lucky enough to be in a magnet program at my school that allows something like this
Re:Show HN: Lucia – 3kB Vue Alternative by ev1 on Sunday October 25, 2020 @04:38PM (#24889691)
What do you mean "allows", they are mandating what you do in your spare time and don't allow open source projects?
Re:Show HN: Lucia – 3kB Vue Alternative by aidenyb on Sunday October 25, 2020 @04:43PM (#24889730)
Oh, not at all. What I meant was that not only am I able to work on something I enjoy, I'm also able to get support and use it for school as well - sorry if I worded that weirdly
Re:Show HN: Lucia – 3kB Vue Alternative by gitgud on Sunday October 25, 2020 @05:42PM (#24890157)
Very cool! Even though there's many projects in this space I love seeing new attempts from fresh perspectives.

I was looking trying to find template iteration in your library and was surprised to find it listed as "l-join" which I haven't seen before. Seems intuitive now that I think about it though:

    <div l-use="ListRendering()">
      <p l-join="fruits by , "></p>
    </div>
Re:Show HN: Lucia – 3kB Vue Alternative by aidenyb on Sunday October 25, 2020 @06:10PM (#24890432)
Thanks! (Love the username btw)
Re:Show HN: Lucia – 3kB Vue Alternative by SandroRybarik on Sunday October 25, 2020 @05:52PM (#24890243)
Cool stuff! I definitely try this out. Im looking forward for some inspiration.

I recently created very similiar project to simplify web dev.

In just 100LOC I came up with (I think clever) way of writing web apps without webpack or npm. Reactive, declarative, Elm-y style.

if you are interested: https://github.com/SandroRybarik/nameless

Re:Show HN: Lucia – 3kB Vue Alternative by aidenyb on Sunday October 25, 2020 @06:12PM (#24890451)
Awesome! I hope you find Lucia useful. Your project looks cool, I just left a star :D
Re:Show HN: Lucia – 3kB Vue Alternative by xellisx on Sunday October 25, 2020 @04:38PM (#24889694)
For another alternative that really pushes TypeScript, check out http://aurelia.io/ .
Re:Show HN: Lucia – 3kB Vue Alternative by aidenyb on Sunday October 25, 2020 @04:45PM (#24889746)
This looks really cool! I love how they use es6 template syntax for text content