Better HN
topnewbestaskshowjobs
Log inSign up

difflens

73 karma · joined Feb 27, 2022 (4y ago) · 54 submissions

https://github.com/marketplace/difflens

Working on improving diff tools for developers!

Submissions

comment 2y ago · link · parent

It's interesting that this piece mentions "to get really rich" as one of the primary motivators. Especially to high school students. I wonder if that's good advice or if society is better served by motivating students to start companies that make the world better.

comment 2y ago · link · parent

Hmm maybe I don't understand fully, but can't you do this in VSCode by doing a `Find And Replace All`? (Cmd + Shift + F on Mac)

comment 3y ago · link · parent

Congratulations! I identify with this post a lot. Good luck! Your actions are certainly an inspiration

comment 3y ago · link · parent

I built DiffLens (https://www.difflens.com/) initially just for myself. It's a diff tool that uses abstract syntax trees to make the diff more review-able. It's free for anyone to use too. I use it every day to review my diffs. If anyone works on Typescript, Javascript, HTML and/or CSS, do check it out!

comment 3y ago · link · parent

I'm the author of DiffLens (https://www.difflens.com/). I initially built it for myself too (and use it everyday) and it's currently free for anyone to try. It's an attempt to use abstract syntax trees to make diffs more readable. Happy to see another diff project here!

comment 3y ago · link · parent

The worry is understandable. As someone who's been in a similar situation before, the worry with a work visa and housing tends to go away one way or another. Either you get out of a work visa at some point, or you accept that you will never receive a green card in your productive years and you jump into the property market with that risk anyway.

comment 3y ago · link · parent

Either you're being reductionist on purpose, or the reply above just flew over your head.

comment 3y ago · link · parent

Just wanted to chime in and say that this was a good read. Reminded me of reading editorials when I was younger. I agree with most of these points, and especially appreciate the fact that you present a nuanced view. Too often, western views are translated directly to other places and result can be inaccurate assessments.

comment 3y ago · link · parent

I wonder if you can pick your favorite language/framework and write a daemon that serves as the "backend". Then, write a UI in whatever you like, and send calls to the backend to modify state. It's the same concept as MVC, but implemented in different processes

comment 3y ago · link · parent

My recommendation would be to apply to as many positions as you can, but steel yourself to the fact that you may not hear back from any of them. I'd also recommend exploring if you can push graduation back by a year (assuming funding would cover it and you have legit research to do), or if you can pick up part time lecturer, post doc etc type of positions for the next year. IMO, job prospects for software engineers will likely start improving in the last quarter of 2023 and be much better in 2024. So I'd plan to tough it out till then.

I do empathize with your position and wish you luck :) I'm ever grateful to the first manager who hired me. He changed my life forever and that of my family.

comment 4y ago · link · parent

> as I see it is that it provides a uniform api for traversing a parse tree, which makes it relatively straightforward to onboard a new language to a tool with tree-sitter support. The problem though is that the tree-sitter grammar is nearly always going to be an approximation to the actual language grammar, unless the language compiler/interpreter uses tree-sitter for parsing.

Author of DiffLens (https://marketplace.visualstudio.com/items?itemName=DiffLens...) here. A uniform API for traversing a parse tree for all languages would be amazing for DiffLens! However, I fear languages are different enough that this ideal may never be reached :) Or maybe there would be a core set of APIs and extensions for the idiosyncrasies of each language. For DiffLens though, we try to use the language's official parser/compiler if it exposes an AST

12.

Show HN: We built a tool for syntax aware JSON diffs(marketplace.visualstudio.com ↗)

1 points · by difflens · 4y ago · discuss

comment 4y ago · link · parent

Haha, I found this quite funny :) I'm sure there's an element of truth to it considering how complicated the code base must be for the various services

comment 4y ago · link · parent

This is a great post! I have very similar thoughts! I haven't escaped the corporate job yet, but the pandemic and subsequent layoff scares have convinced me that bootstrapping a business is a good way to take back some economic control.

I'm working on DiffLens to improve how developers see diffs of their code changes. DiffLens uses abstract syntax trees to make diffs more focused and understandable. It's free at the moment while we iterate on it and get the word out. I think it's the best way to view source code changes. If someone is interested in checking it out, see https://marketplace.visualstudio.com/items?itemName=DiffLens... . It works within VS Code and supports JS, TS, CSS and text diffs. JSON support is coming soon!

comment 4y ago · link · parent

Interesting execution. I'm not totally sold that Sapling is somehow forcing smaller/(more understandable) commits. Running Sapling restack with the manual step of an `amend` doesn't sound too different than running `git rebase -i` and moving the commits around. ReviewStack is interesting, but nothing new. It seems like it's removing the need to click through the commits page in GH by exposing it in a dropdown. IMO, the real improvement to our workflows will come from using better diff tools to make reviews more intuitive. I am biased of course :) (full disclosure: I work on DiffLens https://marketplace.visualstudio.com/items?itemName=DiffLens... )

comment 4y ago · link · parent

Nice article! I agree with all your points, they closely mirror my experience too!

17.

Show HN: Group by for Jira Backlog Pages(chrome.google.com ↗)

1 points · by difflens · 4y ago · discuss

comment 4y ago · link · parent

JIRA GroupBy is free and was made to solve personal pain points with backlog pages. We're around if anyone has questions!

19.

Show HN: Group by for Jira Backlog Pages(chrome.google.com ↗)

1 points · by difflens · 4y ago · 1 comment

comment 4y ago · link · parent

Not related to this article per se, but I wonder if there is a tool (or a market) for "validating" pdfs. Specifically I'm thinking of a tool that validates that different fields in a pdf have been filled. Sort of like "required" fields in a document that need to be filled for back office processing. I'm thinking about a recent experience where I had to send a pdf back and forth via email a couple times because some fields were missed each time. Perhaps an automated system would've caught this and saved everyone some time.

Might even make for a nice weekend project

comment 4y ago · link · parent

Great write up! I don't have much practical experience with Paxos/Raft other than coursework. I'm curious, if I wanted to insert a row into a table, what is the overhead of all these extra nodes in the insert operation now compared to a single table?

I realize the answer depends on how big the cluster is, what state it is in at any given moment etc, but I'm happy to accept back of the envelope calculations/estimations!

comment 4y ago · link · parent

I've been wondering over the past few months if we can build a "public" cloud. I have some old machines gathering dust, I'm sure others do too. Is it feasible to build an ad-hoc network of such computers where the compute power is rented out. For ex: I can connect my old lenovo i5 laptop to this network for 6hrs a day and charge 1.2x my electricy cost. Sort of like on demand EC2 instances, but backed by torrent like tech. It'd make computers pay for themselves over time

comment 4y ago · link · parent

Maybe I'm just being cynical here, but did leaving Meta facilitate the creation of Starburst enterprise based on open source Trino?

comment 4y ago · link · parent

Interesting, will give sqlglot a look when we get to adding SQL support in DiffLens [https://github.com/marketplace/difflens]. Or perhaps DiffLens can just use sqlglot :) Either way we're very happy to see another semantic diff tool.

P.S: We work on DiffLens. It currently supports TS, JS, CSS and text diffs. We're working on making a VS Code extension currently

comment 4y ago · link · parent

Well if those were the only days that that person dressed nicely, surely the boss would notice :) I jest though, your point got a chuckle out of me!

comment 4y ago · link · parent

Great idea! I did something similar for a weekend project that folks can checkout at (PauseTheVideo)[https://pausethevideo.vercel.app] if they're interested. We're big fans of Agadmator at DiffLens and made that site as a tribute to his videos! I haven't had time to update it with the latest videos, but there are about 10 games currently from the candidates tournament. The idea is to find the best move in the position to win the game!

The website is not complete yet but the games are definitely play-able.

comment 4y ago · link · parent

In my experience, code reviews are currently viewed as time sinks because of the cognitive load they put on the reviewer. I agree with the other comments here about a team culture that values code reviews as an important process. IMO, the tools surrounding code reviews can be improved. In particular, any time spent trying to make changes smaller and easier to follow is a big win. We use and develop DiffLens (https://github.com/marketplace/difflens) for this. As a team, it's made reviewing our changes easier and lets us probe deeper into the changeset. If your code base is mostly TS, JS and/or CSS, feel free to try out DiffLens! We're around to answer any questions or take feedback :)
12