Live data from Hacker News

I’m a web developer and can't make anymore the simplest web app

medium.com

31–40 of 43 posts

Re: I’m a web developer and can't make anymore the simplest web app

#31

> I’ve already laid out my models, but React.js likes to mix models and states and properties, so I had to rethink it => Redux > this Gulp configuration file... => Webpack This might be opinionated but for a personal SPA pet project without any legacy a good up to date stack has ES6/Babel, React, Redux, Webpack included. Curious what others prefer.

You just described his exact problem. He's confused by react so you tell him to use redux. He's intimidated by gulp so you tell him to use webpack. It doesn't matter what he uses, he just wants to write code and everyone telling him to use some other marginally different tool is just contributing to the paralysis.

> It doesn't matter what he uses, he just wants to write code

Good, then he can stop reaching for new libraries and frameworks every time he gets "confused" or "intimidated". Invest the effort to learn one of them in-depth and the knowledge will still be applicable to new tools that come along. After all, they're just "marginally" different.

Re: I’m a web developer and can't make anymore the simplest web app

#32
post #7

If the issue is really making the simplest web app, the principal of YAGNI should be applied liberally. Complex dependencies that add up-front development burden should be added only if, and only when, there is an expected benefit justifying the cost.

Amen! I wrote a handful of offline-cacheable HTML5 apps made simply with CSS, vanilla JS, and HTML. Nothing more! Don't write a single line or character you don't need in the final result. I have 'app update fatigue' and often after I update an app I end up preferring previous versions I can no longer install or use again once they're 'updated away' and no longer current. My wants for what my phone or tablet can do a…

I share your motivation -- a while back I wrote a web app for myself that gave me my daily checklist. It was a great experience. Your apps have renewed my interest in this idea and given me some inspiration. Thanks!

Re: I’m a web developer and can't make anymore the simplest web app

#33
Two way binding is hard in react? I never noticed. My only react app so far is basically a giant form (I split it into 5 tabs based on categories so there wasn't too much on the page at a time), and I had zero problem doing so.

Granted the analysis paralysis wasn't so bad as react was much newer when I started, so I didn't even look at redux (though looking at it now, I'm still not sure what problem I was supposed to have that it solves).

As far as packing everything into a single file, I used make which would pipe cat through a minifier (or not minified with "make debug").

So ironically, I suppose all these new tools have made it harder to get started on React, which is perhaps the point of the article.

Re: I’m a web developer and can't make anymore the simplest web app

#34
post #26
post #15

Earlier quoted context omitted.

is there a reason you decided to list all of these apps unsolicited? nobody is going to read these

Yeah! A couple of years ago I thought JavaScript was hard, and I couldn't figure out how to do what I wanted. Somebody posted a teeny tiny code editor here on Hacker News and seeing the source code sparked something, and now I'm writing and releasing my own HTML apps and tools that help me and others. I listed these here (with the source) to show how small and how LITTLE code you need. Each of these files are single-…

I looked at them and bookmarked your comment listing them. Thanks for posting them.

Re: I’m a web developer and can't make anymore the simplest web app

#35
The solution is to use a boilerplate/generator. I've used one for every JS project I've started in the past two years.

The main benefit is that you get something that already has the whole development/test/build workflow set up, with your framework of choice. Then you can tweak things as necessary.

Since all of the processes should be able to be run through a small set of CLI commands, there isn't much mental overhead switching between projects.

Re: I’m a web developer and can't make anymore the simplest web app

#36
post #7

If the issue is really making the simplest web app, the principal of YAGNI should be applied liberally. Complex dependencies that add up-front development burden should be added only if, and only when, there is an expected benefit justifying the cost.

Amen! I wrote a handful of offline-cacheable HTML5 apps made simply with CSS, vanilla JS, and HTML. Nothing more! Don't write a single line or character you don't need in the final result. I have 'app update fatigue' and often after I update an app I end up preferring previous versions I can no longer install or use again once they're 'updated away' and no longer current. My wants for what my phone or tablet can do a…

What's up with decoding the JS and using eval?

Re: I’m a web developer and can't make anymore the simplest web app

#37
post #36
post #7

Earlier quoted context omitted.

Amen! I wrote a handful of offline-cacheable HTML5 apps made simply with CSS, vanilla JS, and HTML. Nothing more! Don't write a single line or character you don't need in the final result. I have 'app update fatigue' and often after I update an app I end up preferring previous versions I can no longer install or use again once they're 'updated away' and no longer current. My wants for what my phone or tablet can do a…

What's up with decoding the JS and using eval?

any time you see 'encoded' JS it's just the canvas-based icons (like this: http://codepen.io/tomhodgins/pen/VvjNKq ) being minified and encoded just to keep it out the way.

If I made the icons as PNG's I'd have embedded them as `base64` encoded blobs of data, but in this case the icons are JS that gets decoded and run to draw the icon, then attach it to the page as favicon and apple-touch-icon.

I wrote a short post about how I put together these teeny tiny HTML5 apps if you're interested: http://codepen.io/tomhodgins/post/building-an-html5-app-for-...

Re: I’m a web developer and can't make anymore the simplest web app

#38

The title is misleading. Should be changed to "I'm a web developer and I realized that chasing after every new tech under the sun can be counterproductive". I do agree that with the semi-recent "resurgence" of Javascript there's an abundance of frameworks and tools out there both for the client and server side making the selection of the "ecosystem" that would fit your needs challenging. My take on this is stick to t…

The content of the article is read rather like "I've been stuck with the simplest app for 10 days because I didn't really want to create one". If you want to create an app, you go and create one. If you want to play with a bunch of fancy frameworks, just don't call it "create an app", as apparently it isn't...

Re: I’m a web developer and can't make anymore the simplest web app

#39
> I envisioned the opportunity to try out a few new things I’ve been reading about online, refresh my web-dev tools and have some fun.

> The core of the problem is choice and the overwhelming abundance of tools to choose from.

Excuse me, did you want to try out a few new things, refresh web-dev tools, have some fun or start coding immediately?

Because, it looks like: I am chief-cooker and i can't cook simple meal. There are so much vegetables, juices, it looks like a game.

> I want a bread for my meal.

Leavened, Rye, Flatbread?

Uhhh, ohhh, it's too haaard, i wanted to try new things, but I'm seeking for best, standard choice.

Re: I’m a web developer and can't make anymore the simplest web app

#40
post #39

> I envisioned the opportunity to try out a few new things I’ve been reading about online, refresh my web-dev tools and have some fun. > The core of the problem is choice and the overwhelming abundance of tools to choose from. Excuse me, did you want to try out a few new things , refresh web-dev tools , have some fun or start coding immediately? Because, it looks like: I am chief-cooker and i can't cook simple meal.…

> Excuse me, did you want to try out a few new things, refresh web-dev tools, have some fun or start coding immediately?

These two things don't have to be mutually exclusive. In any other area of programming that I've tried recently, they're not — except for JS-based web development.

Post reply on HN