HNHacker News
TopNewBestAskShowJobs

rajeev-k

11 karma · joined June 4, 2015

submissionscomments
rajeev-k··on Alternative lightweight UI library to modern day frameworks
By "metal" I meant the browser, so avoiding heavy libs.
rajeev-k··on Alternative lightweight UI library to modern day frameworks
I have noticed newer generations of developers believe they need heavy frameworks like React to develop web applications. Most apps don't need such heavy frameworks. Here's a 500-line "framework" (if you can call it that) https://github.com/Rajeev-K/mvc-router and here's an example app built using it: https://github.com/Rajeev-K/eureka For templates I used https://github.com/wisercoder/uibuilder which is a 200-line lib. This is about as "close to the metal" as you can get, and still be productive.
rajeev-k··on An ex-Googler’s guide to dev tools
> Both github and gitlab have it

If you want to search code sitting on your local hard disk try this tool (built on top of Lucene):

https://github.com/Rajeev-K/eureka

I made it when I was frustrated by existing tools such as sourcegraph and opengrok.

rajeev-k··on If Not SPAs, What?
> SPA pattern has failed to simplify web development

The SPA pattern is fine, it is React Router and Redux that has overcomplicated things.

Here's an example of an app written using the MVC pattern that is way simpler than the React stack: https://github.com/Rajeev-K/eureka

It uses two very simple libs:

A 500-line router: https://github.com/Rajeev-K/mvc-router/

A 200-line templating library that uses JSX syntax: https://github.com/wisercoder/uibuilder/

rajeev-k··on Crank.js – Write JSX-driven components with functions, promises and generators
I would like to demo a simpler alternative to Vue and React: manipulate DOM directly. I do it in this application:

https://github.com/Rajeev-K/eureka

I find myself more productive coding directly against DOM APIs, using these tiny libs:

MVC router (500 lines): https://github.com/Rajeev-K/mvc-router/

JSX templating (200 lines): https://github.com/wisercoder/uibuilder

rajeev-k··on How to manage HTML DOM with vanilla JavaScript only?
If there is anything I am trying to prove it is that you don't need complicated frameworks like Angular or React. Those frameworks have gotten too complex for what they do.
rajeev-k··on How to manage HTML DOM with vanilla JavaScript only?
Yes, and the MVC framework is all of 500 lines of code and can be used with React too: https://github.com/Rajeev-K/mvc-router
rajeev-k··on How to manage HTML DOM with vanilla JavaScript only?
Here's an example of a vanilla JS app with good architecture: https://github.com/Rajeev-K/eureka
rajeev-k··on Compiling PHP's Eval() to .NET
Any valid Visual Basic.NET expression is supported. Here are some examples:

  (latestquote - previousquote) / previousquote
  iif(isonlineorder, "Online", "Retail")
  FirstName & " " & LastName
  iif(IsNothing(Amount), "Amount missing",  Format(Amount, "c2"))
  "Q" & ((OrderDate.Month - 1) \ 3 + 1)
  MonthName(DatePart(DateInterval.Month, Today), false)
  DateAdd(DateInterval.Day, 1, Today)
See this file for example of usage: https://github.com/Rajeev-K/formula-parser/blob/master/src/R...
rajeev-k··on Compiling PHP's Eval() to .NET
I needed the ability to safely execute formulas in my .NET app. My solution was to write a parser and interpreter. Here it is: https://github.com/Rajeev-K/formula-parser
rajeev-k··on Build Your Own React
> webcomponent based router

Routers can be (and should be, IMO) written to be independent of UI component libraries such as React and webcomponents. See an example here: https://github.com/Rajeev-K/mvc-router You can use it with React---and in some ways it works better than react-router.

rajeev-k··on .NET Core 3.0
Docker is a better way to distribute apps than Electron, in my opinion. From a developer point of view you just build a regular web app, so better than Electron. From the user's point of view, Docker is better because of isolation, and because there is nothing to install. You run just one command to download and run the image. If you want the app to have its own window then use Chrome's "Create shortcut" command. This is indistinguishable from an Electron app, but better. See an app written in this fashion here: https://hub.docker.com/r/eurekasearch/eurekasearch