Better HN
topnewbestaskshowjobs
Log inSign up

rajeev-k

11 karma · joined Jun 4, 2015 (11y ago) · 23 submissions

Submissions

1.

A C compiler in TypeScript, Written by Claude(github.com ↗)

1 points · by rajeev-k · 9mo ago · discuss

comment 5y ago · link · parent

By "metal" I meant the browser, so avoiding heavy libs.

comment 5y ago · link · parent

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.

comment 6y ago · link · parent

> 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.

comment 6y ago · link · parent

> 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/

comment 6y ago · link · parent

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

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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

comment 6y ago · link · parent

Here's an example of a vanilla JS app with good architecture: https://github.com/Rajeev-K/eureka

comment 6y ago · link · parent

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...

comment 6y ago · link · parent

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

comment 7y ago · link · parent

> 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.

comment 7y ago · link · parent

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

14.

Show HN: Index and search your source code using this Lucene-based app(github.com ↗)

3 points · by rajeev-k · 7y ago · discuss

15.

JSXtyper – integrate React.js into TypeScript projects(github.com ↗)

2 points · by rajeev-k · 11y ago · discuss