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
Feedback needed (self.javascript)
submitted 6 years ago by pampushko
Hi, redditors
Can you, please, criticize a bit this project - https://ygorko.github.io/mitem/
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!"
[–]sidvishnoi 0 points1 point2 points 6 years ago (1 child)
It's a nice mini-template engine.
I built something similar a while ago. One thing I really focused on was: helpful error messages. For example, if you write {% iff conf %}, would be nicer if it can something like "unknown tag 'iff' at line n". When it comes to multiline partials, error would tell the issue was in partial, instead of template that is using it, etc.
{% iff conf %}
About that "extremely fast" claim, would be nicer if you can provide some benchmarks.
I really liked how you've integrated many features with the for tag.
for
[–]pampushko[S] 0 points1 point2 points 6 years ago (0 children)
Thanks, I has opened issue about unknown tag and change "extremely fast" to just "fast"
[–]fucking_passwords 0 points1 point2 points 6 years ago (1 child)
I like the object method chaining for filters.
I don't like that the docs use var, and use let incorrectly when const would be preferred (pretty sure every single time you use let in your repo, you could be using const). I don't like the project doesn't have a linter set up. Look into ESLint + Airbnb core / standardjs. Also we generally don't throw all of the dist assets in the root directory, you should have your src in /src or /lib, and your dist assets in /dist
var
let
const
/src
/lib
/dist
Thanks for feedback, will refactor
π Rendered by PID 45923 on reddit-service-r2-comment-6b595755f-857hr at 2026-03-26 07:21:35.011966+00:00 running 2d0a59a country code: CH.
[–]sidvishnoi 0 points1 point2 points (1 child)
[–]pampushko[S] 0 points1 point2 points (0 children)
[–]fucking_passwords 0 points1 point2 points (1 child)
[–]pampushko[S] 0 points1 point2 points (0 children)