News for hackers. Stuff that matters.

rajeev-k

Re:Alternative lightweight UI library to modern day frameworks on Saturday January 16, 2021 @02:07PM (#25804510)
By "metal" I meant the browser, so avoiding heavy libs.
Re:Alternative lightweight UI library to modern day frameworks on Saturday January 16, 2021 @01:42PM (#25804277)
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.
Re:An ex-Googler’s guide to dev tools on Thursday November 26, 2020 @10:20AM (#25220722)
> 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.

Re:If Not SPAs, What? on Wednesday October 28, 2020 @09:30PM (#24926132)
> 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/

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

Re:How to manage HTML DOM with vanilla JavaScript only? on Thursday April 02, 2020 @10:31AM (#22759380)
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.
Re:How to manage HTML DOM with vanilla JavaScript only? on Thursday April 02, 2020 @10:22AM (#22759280)
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
Re:How to manage HTML DOM with vanilla JavaScript only? on Thursday April 02, 2020 @10:16AM (#22759193)
Here's an example of a vanilla JS app with good architecture: https://github.com/Rajeev-K/eureka
Re:Compiling PHP's Eval() to .NET on Monday February 17, 2020 @11:16AM (#22348686)
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...
Re:Compiling PHP's Eval() to .NET on Sunday February 16, 2020 @12:31PM (#22342638)
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
Re:Build Your Own React on Thursday November 14, 2019 @01:30PM (#21537945)
> 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.

Re:.NET Core 3.0 on Monday September 23, 2019 @03:02PM (#21052329)
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