nano
phpStageManager
Our great sponsors
nano | phpStageManager | |
---|---|---|
5 | 1 | |
1,411 | 2 | |
1.3% | - | |
5.6 | 10.0 | |
about 2 months ago | over 8 years ago | |
TypeScript | PHP | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nano
- Nano JSX – 1kb JSX library with SSR
- Web Components Eliminate JavaScript Framework Lock-In
-
That people produce HTML with string templates is telling us something
for sure not suggesting using E4X as it is, JSX has evolved a lot from E4X. For example, as small implementation such as https://nanojsx.io would be a good start.
- VanJS (Vanilla JavaScript): smallest reactive UI framework
- NanoJSX – SSR first, lightweight 1kB JSX library
phpStageManager
-
That people produce HTML with string templates is telling us something
"Nobody ever generates JSON using string interpolation." Oh boy, you just took me back to my first ever PHP project. Feast your eyes: https://github.com/oxguy3/phpStageManager/blob/master/events...
This file generates a feed of events (rehearsals for my high school play) to be rendered by the FullCalendar JS plugin. FullCalendar required a particular data schema that didn't match the format of my MySQL table, which meant I couldn't just json_encode() the MySQL results. I guess I just didn't conceptualize that I could create a new object that matched the FullCalendar format, and then call json_encode(). So, I generated JSON with strings.
Honestly it's a toss-up whether the JSON generation is the worst thing about this file. It looks like I also made a separate database query for every single row to get the username, because I apparently didn't know how to do joins. Could probably spend an hour listing some of the other little nuggets of awful in there. But hey, it got the job done! :)
What are some alternatives?
van - 🍦 VanJS: World's smallest reactive UI framework. Incredibly Powerful, Insanely Small - Everyone can build a useful UI app in an hour.
vtpl - Vtpl is a php template engine that ensures proper separations of concerns, the frontend logic is separated from presentation. The goal is to keep the html unchanged for better maintainability for both backend and frontend developers
vanilla - An OpenResty Lua MVC Web Framework
literal-html - Simple and unsafe HTML/XML templates for TypeScript, using tagged template literals
tinyjs
jsonnet - Jsonnet - The data templating language
htmlgo - A library for writing type-safe HTML in Golang
flog - Pre-Markdown static site generator based on UNIX tools and XSL
imperative - Structured UI Programming with ES6 Generators
gron - Make JSON greppable!
hn-search - Hacker News Search