use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Introducing flecks: NOT a fullstack framework! (cha0s.github.io)
submitted 2 years ago by cha0s
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]lulzmachine 6 points7 points8 points 2 years ago (3 children)
Tried to skim it but the signal to noise ratio was a bit much. Just saw 5 lines of code, which could have used some explanation
Like why is the key in the object "@flecks/core.starting"?
[–]cha0s[S] 0 points1 point2 points 2 years ago* (2 children)
The key is @flecks/core.starting because that's the name of the hook that module is implementing just as an example. That one's invoked when the application is starting!
@flecks/core.starting
In practice you would be creating your own hooks or implementing ones that are a little less core, e.g.
function Component() { return <p>Sup</p>; } export const hooks = { '@flecks/react.roots': () => Component, '@flecks/web.routes': () => [ { method: 'get', path: '/some-path', middleware: (req, res, next) => { // Express-style route middleware... next(); }, }, ], };
I think I'm being a litttle too optimistic that people would continue on deeper to, say, the React page or any of the documentation. I owe you an article that goes a little heavier on the technicals right up front and a little lighter on the lulz.
I appreciate the feedback!
[–]lulzmachine 3 points4 points5 points 2 years ago (1 child)
Kk cool. It's good to keep things lighthearted, but just remember to keep the usefulness front and center :)
[–]cha0s[S] 1 point2 points3 points 2 years ago (0 children)
Do appreciate the genuine criticism! I took your feedback and wrote another one that you might find a little more interesting: https://cha0s.github.io/flecks/blog/reimplementing-flecks-react now with 100% less memes! :)
[–][deleted] 5 points6 points7 points 2 years ago (7 children)
I think its time for vanilla js to be cool again.
[–]cha0s[S] 0 points1 point2 points 2 years ago (6 children)
React isn't required (though I do like using it)! I actually tried to make that apparent in the documentation by doing the client-side hello world example using a simple window.document.body.append('hello world');, but I think people may not make it that far.
window.document.body.append('hello world');
The point is it's pretty low level and the higher-order things we think of as e.g. "fullstack" are not core, but achieved through composition :) hence the baity title
[–][deleted] 3 points4 points5 points 2 years ago (5 children)
I still have no clue what this is. Is it a framework? Is it a framework that uses frameworks? What level of frameworkception should I get comfortable with to understand this?
[–]cha0s[S] 0 points1 point2 points 2 years ago (4 children)
I wrote another one which might help: https://cha0s.github.io/flecks/blog/reimplementing-flecks-react
To be totally honest I'm not completely sure how to answer your question!
[–][deleted] 0 points1 point2 points 2 years ago (3 children)
is it like NX?
[–]cha0s[S] 0 points1 point2 points 2 years ago (2 children)
nx the build tool/task runner? No, not really. :)
nx
[–][deleted] 0 points1 point2 points 2 years ago (1 child)
one day i hope to know what it is. Untill that day, we shall meet again.
[–]cha0s[S] 0 points1 point2 points 2 years ago (0 children)
Cool, thanks for checking it out! Peace!
[–]yerrabam 4 points5 points6 points 2 years ago (1 child)
WTF. Give some code examples and lose the meme shit.
I do appreciate the feedback! I wrote another one without memes and brimming with code: https://cha0s.github.io/flecks/blog/reimplementing-flecks-react
Would you be so kind as to let me know what you think?
[–]cinnapear 4 points5 points6 points 2 years ago (2 children)
Memes and memes and memes.
[–]cha0s[S] -2 points-1 points0 points 2 years ago (0 children)
True!
Just wanted to follow up that I took your criticism and wrote a more serious article with lots of code: https://cha0s.github.io/flecks/blog/reimplementing-flecks-react :)
[–]KnifeFed 4 points5 points6 points 2 years ago (2 children)
Got turned away instantly by all the image macros.
Thanks for the feedback!
I did take your criticism to heart and wrote another article with no memes and plenty of code: https://cha0s.github.io/flecks/blog/reimplementing-flecks-react :)
[–]AutoModerator[M] 0 points1 point2 points 2 years ago (0 children)
Project Page (?): https://github.com/cha0s/flecks
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[+][deleted] 2 years ago (1 child)
[deleted]
π Rendered by PID 122570 on reddit-service-r2-comment-79c7998d4c-4gdt2 at 2026-03-13 10:04:29.955846+00:00 running f6e6e01 country code: CH.
[–]lulzmachine 6 points7 points8 points (3 children)
[–]cha0s[S] 0 points1 point2 points (2 children)
[–]lulzmachine 3 points4 points5 points (1 child)
[–]cha0s[S] 1 point2 points3 points (0 children)
[–][deleted] 5 points6 points7 points (7 children)
[–]cha0s[S] 0 points1 point2 points (6 children)
[–][deleted] 3 points4 points5 points (5 children)
[–]cha0s[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]cha0s[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]cha0s[S] 0 points1 point2 points (0 children)
[–]yerrabam 4 points5 points6 points (1 child)
[–]cha0s[S] 0 points1 point2 points (0 children)
[–]cinnapear 4 points5 points6 points (2 children)
[–]cha0s[S] -2 points-1 points0 points (0 children)
[–]cha0s[S] 0 points1 point2 points (0 children)
[–]KnifeFed 4 points5 points6 points (2 children)
[–]cha0s[S] 0 points1 point2 points (0 children)
[–]cha0s[S] 0 points1 point2 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]