HNHacker News
TopNewBestAskShowJobs

guseyn

88 karma · joined March 11, 2019

submissionscomments
guseyn··on Why Vanilla JavaScript
All custom attributes must start with data, read the convention
guseyn··on I've been building an HTML-first tool – sharing it in case it helps someone
Sure: https://e-html.org
guseyn··on Ehtml
You serve your static files and that's it. You just create multipage app. And you can cache almost entire page by e-wrapper template.
guseyn··on Ehtml
EHTML — Extended HTML for Real Apps
guseyn··on Node.js Procedural Back End Framework with Cluster API Based on HTTP/2
Why do we need another framework for Node.js? This is my wish list:

I want to build my web application on a framework with zero dependencies.

I want to utilize native Node.js APIs without any additional layers of abstractions.

I want to hack my framework when I need to, e.i. I want to have quick access to my framework's folder and make quick changes.

I want to have zero downtime when I update my appliction's logic just by sending a signal.

I want to use Cluster in Node.js. It will allow me to scale my application with very little price. I also don't want to anything else for orchestration and other fancy things that Node.js provdes itlself.

I want to have HTTP/2 as a default.

I want to handle 500 User error properly.

I want to configure my application out of box in my primary and worker processes.

I want to have very simple secrets reader.

I want to be able to log into an output log file.

I want to have composable API provided by my framework and not use middlewares that reduces the code clarity. I want to be able to copy/paste logic to achieve clarity.

I want to have access to params and queries in each request URL.

I want to have control when I read body of my requests.

I want to have quick access to my external dependecies like db clients and other integrations without attaching them to request object. I want to have dependecy injection without any huge frameworks.

I want to easily configure my index.html, not-found.html files.

I want to focus on building my products quicky and make money.

Hopefully it can be interesting for somebody who want something similar from a framework.

guseyn··on MIDI Editor
This is one is also good: unisonofficial.com
guseyn··on EHTML Docs
thank you!
guseyn··on EHTML Docs
Yes, you're right, thank you for such explanation.
guseyn··on EHTML Docs
It's not just static content. It's Markdowns loaded right into HTML.
guseyn··on EHTML Docs
I believe Turbo/Stimulus rely more on server rendering + their Turbo Drive is quite powerful, will try to catchup on turbolinks. I had implemented them previously, but it's quite difficult to make them smooth.
guseyn··on EHTML Docs
Yeah, because I am using highligher for code fragments in markdowns, will try to optimize it.
guseyn··on HTML, the Programming Language
could you please give a reference?
guseyn··on HTML, the Programming Language
I think the biggest difference is that EHTML works more with JSON API rather than with HTML Server Rendering integration.
guseyn··on HTML, the Programming Language
https://e-html.org/html/documentation.html
guseyn··on EHTML: Front-end development can and should be simple
It's based on JS, of course, but the goal is to get rid of JS as much as possible for the developers who want to build frontend for their apps
guseyn··on EHTML: Front-end development can and should be simple
loading pages with some information from endpoints and mapping it to html template, sending and validating forms, making navigations with turbolinks, making authorization via google and getting url parameters by specified pattern. And you don't need JS for such simple things
guseyn··on EHTML: Front-end development can and should be simple
Complex HTML is always better than complex JS, because HTML is declarative language, it's much easier to maintain and modify
guseyn··on EHTML: Front-end development can and should be simple
https://github.com/Guseyn/EHTML#answers-for-potential-testim...
guseyn··on EHTML: Front-end development can and should be simple
This lib allows you not to write js, it's just based on it.
guseyn··on EHTML: Front-end development can and should be simple
it evals, but only some part of it, so it prevents XSS attacks
guseyn··on EHTML: Front-end development can and should be simple
#box is just a selector, it means element with id box, and you can see errors like "element is not found" anyway
guseyn··on Why I Don't Use Promises and Async/Await Abstractions in Node
I am not sure that it hides it, it just declaratively represents it.