Hacker Newsnew | past | comments | ask | show | jobs | submit | grabanski's commentslogin

Here's what I came up with for switching to event delegation: https://github.com/1Marc/todomvc-vanillajs-2022/blob/event-d...


Here's what it would look like to support that usecase: https://github.com/1Marc/todomvc-vanillajs-2022/commit/09979...


That seems like a good improvement. Pull requests welcome!



Cool! I'll look into the API and consider adding it to this implementation. Or happily would take a look at a PR for it.


Seriously- just do the innerHTML assignment on li.innerHTML omitting the title, followed up by a simple li.querySelector().textContent = todo.title.



Oops, yeah I just accepted a pull request from the community that broke my helpers module declarations. Just fixed it, thanks for noticing!


Thanks for sorting it.


Ah, thanks for the plug!! I did this as a fun little weekend project, glad people are finding it useful as a reference of how simple vanilla JS can be these days. :-)


I killed my blog and stopped writing around 2008 and it peaked at near a few million page views in 2010. See: http://marcgrabanski.com/grab/3c8cd1.png -- this is just web traffic. Not email subscribers or RSS readers.

Thanks for stopping by to question my authenticity!



Right but the point I was aluding to was there's a difference in pressure from being just a developer on a team like I was to being catapulted to "the guy" who's supposed to lead delivering mission critical software bug free when millions of dollars on the line. It was a simple comment saying being given more prestige will lead to even greater expectations of you...


Believe me, I get it. I've been in the position of principal engineer responsible for multi-million dollar projects multiple times. It's always interesting to see someone go through revelations when stepping into new shoes. We've all done it. In my case multiple times. Interesting how quickly one's perspective can change with the advantage of a new frame of reference.


> A blog, datepicker, and meetup events are trivial to me. They're like the freebies you'd expect in a party favor bag. It sounds more like he doesn't want to work hard, just hang out and talk, make a few small things, and somehow expects that to translate to survival.

You're grossly underestimating the work that was put into open source, writing and running events. I worked 60-80+ hours per week throughout my entire twenties. 20-25 was largely given to coding open source, speaking and running events...all for free.

> This guy might have more potential if he's managed to reproduce and have a spouse. Or there might be some critical flaw there that's blocking his ability to work at Google, and he's stuck without much opportunity.

You're missing the point here. I've had an abundance of opportunities, but decided against working at these large tech companies. I'm from the Midwest was insistent on doing everything the hard way...consulting and giving as much of the time I could to open source, blogging and speaking for free.

Ultimately this article was just meant to be a brain dump of some things I wrestled with along the way. Right now I run a company which sells education, so I've changed my tune in that free is not always doing better for humanity. Arguably I'm making even more of an impact now and also being paid for it...


Pushing companies like Facebook to implement data portability is a great thing, but these companies want to maintain copyright control and that is apparent by their actions.

Since it doesn't look like these companies will give up copyrights anytime soon, I chose to promote self-hosting with WordPress so heavily because it is one of the only proven and relatively easy methods I know that provides publishers with complete control over the content they produce. Millions and millions of articles have been kept in the rightful hands because of WordPress and similar open, self-hosted publishing tools.

I think more people will chose to self-host if they are aware of the consequences and it is easy for them to do, which WordPress is probably the best we have to promote for now.

Eventually I'd to promote a viable and open alternative to Facebook, but nothing like that exists yet.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: