HNHacker News
TopNewBestAskShowJobs

metaloha

160 karma · joined August 19, 2016

submissionscomments
metaloha··on Step-by-step tutorial to build a modern JavaScript stack from scratch
Lately I've been seeing this as part of the problem in web dev. When you start a new project - let's say something like an employee management system that tracks schedules, locations, reviews, etc. - one of the early things you do is probably grab a framework for the back-end; maybe Laravel or Symfony or Zend - or maybe you roll your own (router, controllers, models, views, whatever). You mentally conceptualize and visualize the entire project in terms of delivering "views" to the browser (something not helped by the inaccurate terminology used in most back-end "MVC" frameworks).

Why don't we see the front-end in the exact same way? I have a list of requirements that the interface needs to accomplish - why don't I use a front-end framework (which can actually be a real MVC framework)? Why do we consider all these things for the back-end, but then write just one or two Javascript files for the front-end and add a few libraries like jQuery and/or Modernizr? Where's the consistency? Why do we just throw all our JS code into a single file? Our contemporaries would ridicule us if we did that with our PHP files.

Up until, like, Thursday, I thought this way as well.

I guarantee my next big project (after a few small practice projects) will place the "views" and "controllers" where they belong, completely within the browser. This is where the user interaction happens, and there's no need for a server round-trip every time something gets clicked. The "model" is the data store (i.e. the back-end server) - all the client needs is an interface to it. The back-end will be nothing more than the "model" layer, though it will necessarily have it's own routing and controllers (after all, business logic still belongs on the server where the user can't mess with it). Access is through a REST API, and it delivers nothing but data and URLs for static/generated assets.

Is this more difficult? Definitely. Requires more tooling on both ends? Absolutely. Lets me properly architect and visualize the entire project from front to back without any inconsistencies in perception? Yes. This is not MVC, this is VC/MC.

metaloha··on Music Theory: An Education from First Principles
That's kind of like saying a bathroom isn't a room :)

But they're also not major chords, they're fifths - E5, A5, etc, although I personally often add the octave to make it 3 notes.

metaloha··on Parsing JSON is a Minefield
Am I wrong in seeing that PHP seems to fail the least weirdly in the full results?
metaloha··on Microsoft Stream
Oh man this hurts. I worked with a company several years ago to bring an "enterprise youtube" to market, but it was only ever marketed to pyramid-style corporations as a sales training tool. I believe it's still in use by a few hundred thousand employees, but as far as I know it's still just being artificially restricted to those types of businesses :(
← PreviousPage 8 of 8