HackerTrans
TopNewTrendsCommentsPastAskShowJobs

chriswwweb

no profile record

Submissions

Tutorial: Building a local RAG using JavaScript (beginner friendly)

chris.lu
1 points·by chriswwweb·anno scorso·0 comments

Chris.lu: How I Used Next.js and MDX to create a modern, static-first Blog

chris.lu
5 points·by chriswwweb·2 anni fa·1 comments

comments

chriswwweb
·2 anni fa·discuss
Hello Hacker News,

I recently rebuilt my blog https://chris.lu to be static first, easy to maintain, and provide a great developer experience. While doing so, I also wrote a tutorial that can be found in my https://chris.lu/web_development section. I covered all the steps from building a solid foundation using Next.js (14.x) and React (18.x) . Several chapters about adding MDX support (using @next/mdx) and several plugins to improve authoring tech articles, like a plugin for beautiful code blocks or another one to automatize the creation of a dynamic table of contents for each post. There are also chapters about improving linting so that ESLint does not just lint the code but also the MDX content, increasing security with CSP headers, optimizing loading times using @next/image and @next/fonts, and a few more.

As chris.lu is a side project, I've had the freedom to experiment with new technologies, such as WebGL, which I've used to build the header (click on 'PRESS START' to give it a try). I've also explored new CSS features, like the extended web color palette (display-p3), to create a neon 80s-style theme that fully utilizes the potential of modern screens. It's been exciting to see that for some UI elements, like a dialog or modal box, we no longer need to rely on jQuery plugins or React components. The native dialog HTML element now offers a viable solution, especially with good browser support if you can afford to not support IE 11. The source code for chris.lu is available on GitHub at https://github.com/chrisweb/chris.lu/.

Also, I'm currently for hire, serious offers are welcome. My areas of expertise are Javascript (Typescript) development, team building, and management. You can contact me on LinkedIn at https://www.linkedin.com/in/chrisdotlu/ or look at my projects on GitHub at https://github.com/chrisweb.
chriswwweb
·5 anni fa·discuss
good idea, thx, done
chriswwweb
·5 anni fa·discuss
I like it, worked well for the few tests I did, however the main form needs some small UX improvements, I chose a start airport and destination airport but then the search button was disabled, leaving me clueless about what field was not filled out correctly, I quickly noticed it must be the date field, but still to me disabling a submit button of a form seems like a bad idea because if disable it you also remove the display of potential error messages related to the form failing validation, which to me is a UX no go (take my opinion with a grain of salt, I'm not a UX guy). The second thing that bothers me is that none of the form fields actually tells you which ones are mandatory and which ones are not
chriswwweb
·5 anni fa·discuss
you: "Twitter is a tool of the US national security state", me: "stops reading"

you will not educate anyone or create a healthy discussion with anyone if you start your argumentation with sentences like this, which are without a doubt false affirmations, which is sad because your post might be full of good arguments that I would agree with if I would have read it all... the irony about this is that the article is about fighting misinformation and you try comment on that topic by doing exactly that, posting misleading and factually inaccurate information
chriswwweb
·5 anni fa·discuss
I had similar thoughts, you don't need a permit to buy a gun but your kids need one if they want to fly their small toy drone, well that makes totally sense :D