by codingdave · 8y ago · 0 comments
Everyone needs to take a step back and ask why they are building a web site in the first place. My local hair salon really just needs a brochure, and maybe a scheduling widget. A doctors office would need to add on a payment system. Both of which can be achieved by pulling in a script to use a 3rd party solution, while the core web site can remain plain, static HTML... done in Notepad, if you want to get really simple.
When you step up to needing some actual functionality, there still is a line in the sand where a few PHP scripts will do the job, and can just be pushed up to a shared web host.
When you cross that line, THEN you need modern tools. And many sites will need to go there. But a boutique design firm should be able to go a long way without, and probably could just hire some devs if they do land a project large and complex enough to need that level of code.
Just because you can go complex doesn't mean you should.
His essay isn't really about documents vs apps.
It's about documents vs documents. Or more accurately, he's lamenting about docs_simplesyntax vs docs_complicatedsyntax.
He shows an example of easy HTML syntax[1] that harkens back to "simpler times" in the olden days:
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
My First Web Page
</body>
</html>
The problem with that is people want to author documents (not apps) that are more complicated (prettier, aesthetically pleasing column layouts, gradient backgrounds, drop caps, dynamic resizing of frames, and so on) that require more knowledge than his "hello world" type of simple HTML.Even a web "document" like the wikipedia page on The Beatles[2] requires quite a bit of complexity and advanced HTML knowledge. I've been writing HTML on and off for 20 years and I'd have to do quite a bit of googling and stackoverflow research to replicate that wikipedia page.
[1] https://frankchimero.com/writing/everything-easy-is-hard-aga...
[2] https://en.wikipedia.org/wiki/The_Beatles#Controversy,_final...
However, for the sake of convenience (mostly), people have accepted the use of 15 different toolkits as the normal prerequisite to creating websites. Why add a one liner JS script in the head when you can npm install it, etc...
Writing html and css like the old days is just as possible today as it was back then, and you now even have better tools to do so (Html 5, CSS 3). It's just a matter of actively choosing to do so.
For the Web pages for my startup, I just started with what I wanted the pages to look like. Then I calculated where everything should be. I looked at this as a special case of layout in word processing, e.g., D. Knuth's TeX.
Then I turned to HTML and saw tables. Okay, the HTML table constructs are nice, sorry D., nicer than in TeX. So, I decided to use tables.
I heard about CSS, but I saw only a little need for that. Eventually I wrote a few lines of CSS. So, sure, I discovered that I could have separate CSS files, but that seemed like a way to slow the upload to the users. So, I just copied the CSS into the HTML code of the relevant Web pages.
For the rest, I saw how to use the Microsoft .NET ASP.NET to create and send the pages with the appropriate dynamic content, e.g., the results for the user.
I heard about JavaScript but saw no big need for it and so far have written not even a single line of it. Eventually I discovered that somehow ASP.NET writes a little JavaScript for me, maybe having something to do with cursor positioning -- maybe convenient and nice but not really necessary.
For the page designs, they are simple -- high contrast, large fonts, simple parts and pieces easy to understand right away, each page exactly 800 pixels wide, no icons, pull-downs, pop-ups, roll-overs, or overlays. There are some links, but each one is just a word in English.
The pages all have both horizontal and vertical scroll bars and should still be usable in a window only 300 pixels wide. So, the pages, without change, should look good on everything from a smartphone to a high end desktop. The user just needs a Web browser up to date as of maybe 10 years ago -- so, there should be no compatiblity problems. And, there are no user IDs, passwords, logins, or use of cookies! JavaScript is optional!
There really are some really simple, really successful Web pages on the Internet. So, sometimes simple can be good enough!!!
I wasn't implying that nor endorsing the use of toolkits to complicate process of creation. Yes, the vast majority of other comments in this thread have focused on overuse of "tools" and "frameworks" but my point was about his first frustration mentioned... the syntax itself becomes more complex to achieve richer (non app) web documents. Yes, the author mentioned "npm" and "react" but his first paragraphs were the exasperation of syntax TABLE "<TD><TR>" to CSS float.
Staying with that theme, his subsequent paragraph emphasized the increase complexity of syntactic foundations before accounting for any toolkits and HTML generators:
>My point is that the foundations are now sufficiently complicated enough on their own that it seems foolish to go add more optional complexity on top of it. I’ve kept my examples to the most basic of web implementations, and I haven’t touched on Javascript, animation, libraries, frameworks, pre-processors, package managers, automation, testing, or deployment. Whew.
My point (which is based on the universal phenomenon of increasing complexity in other document layouts languages such LaTeX, Postscript language, etc,) is that the small and simple HTML example he cited isn't full-featured enough for modern web documents. I learned to code "plain HTML" by hand in 1990s but my beginner's knowledge of a few HTML tags in my brain isn't enough to replicate a Wikipedia page. If I decided to do it, it wouldn't matter if I used Dreamweaver, or used a Javascript static site generator, or typed HTML5+CSS3 by hand in Notepad ... the end result would still be a more complicated set of illegible syntax that continues the exasperation of <TABLE> to CSS flex float.
For example, one desirable feature of a modern document (not app) layout would by dynamic resizing of page components depending on big desktop vs tiny smartphone screen. Every example out there to accomplish that (whether multi CSS files, or single CSS file dynamically changed by Javascript) will look more complicated than his "hello world" HTML. For any new feature "X", there's a minimum Kolmogorov complexity to accomplish it which makes the syntax grow in complexity.
Both on the server side and on the client side. Its really, REALLY easy to build complex software; but that never scales or evolves well over time. You end up saving on initial development only to be constantly plagued with problems in the future.
Simplicity is the ultimate sophistication.
IMO, it's also ultimately difficult to pull off.
This is true, but the fundamental argument Frank makes in this article is just as applicable to web applications, if not more so.
We are now building significant software that happens to be written in JavaScript and to run in a browser. We call the results web applications, but it’s still just software. The basic principles of building software well are still the same: using modular design to decompose a large system into more manageable parts, separation of concerns, choosing the right data structures and algorithms, being systematic about covering different cases... These are all as relevant to developing front-end web applications as any other non-trivial software.
None of those things implies a need for overcomplicated tooling. None of those things implies a need for dependency trees with an unmanageable level of complexity. None of these things requires a combination of trial-and-error coding and rapid deployment. You can build large, complex, robust, useful web applications perfectly well without those things.
Usually, good tools are simple and do one job well. The tools that have stood the test of time in my web programming toolbox — things like jQuery, Lodash, SASS, Babel, Browserify, Mocha and React — almost invariably fall into that category. I find much less benefit in tools that require more than a few seconds to set up, depend on anything not obviously related, introduce any non-trivial boilerplate that I’m not almost always going to need, or introduce any sort of non-standard changes to source files that aren’t all but guaranteed to work in the long term.
Of course there are no absolute rules here, but it has been my experience that heavyweight frameworks, scaffolding generators, build process and the like often trade off short-term convenience against stability and longevity (and often, worse, understanding what is really happening). Like the current emphasis on continuous/rapid everything, that isn’t necessarily a good trade to make if you’re interested in building larger, more complicated, longer-lived software, as we increasingly are in front-end web development.
1) A brochure.
2) Scheduling.
3) A messaging system (sending email with health info is not HIPAA-compliant, obviously).
4) A way to look up lab results and whatnot.
5) On the back end, a way for the doctor to _enter_ the lab results.
6) Ideally a way to automatically generate and print out kids' vaccination information forms for schools.
and probably other things I'm not thinking of. 1-5 are common; I haven't run into #6 yet, but I keep hoping. Now you're correct that the right answer is to outsource all this, not least because of the HIPAA compliance problems.
8) Some kind of permission system to add additional people who can track patients data (could be relatives, other medical specialists, etc).
9) Connection to social groups (or even communities). This exists for rare deceases and deceases that aren't strictly medical.
And the default solution is Wordpress!! A full blown PHP application to just do a brochure.
You need to make an admin panel for your client. WordPress has all of that.
They want a contact form? Just add a plugin. No coding needed.
And WordPress is easy as heck to deploy anywhere.
I would say that, given that the hairdresser’s and doctor’s sites do what they were designed to do, they also have actual functionality. Perhaps “fairly complex” would be more descriptive?