HNHacker News
TopNewBestAskShowJobs

amardeep

1,084 karma · joined November 18, 2008

submissionscomments
amardeep··on Vega – A declarative language for interactive visualization designs
For people who have used both vega and Apache echarts, how do they compare?
amardeep··on My MacBook Setup (the 2024 version)
Just a shout out to nix-darwin[1]. It is nix, so initial setup is a bit involved. But then it truly makes it easy to configure everything in one place including mac defaults, homebrew apps declaratively and mas apps etc.

There is a sample config in nix-darwin repo[2].

[1] https://github.com/LnL7/nix-darwin

[2] https://github.com/LnL7/nix-darwin/blob/master/modules/examp...

amardeep··on 20 years of Nix
For python, you could just install bare python with venv and/or poetry and manage your dev python dependencies outside nix. For eg. if you were using devenv.sh, there is an example here: https://github.com/cachix/devenv/tree/main/examples/python-p...
amardeep··on 20 years of Nix
Thanks Domen,

devenv.sh is quite nice, and have already started using it.

amardeep··on 20 years of Nix
I have been exploring nix for the past few months and my experience with nix has been both exhilarating and frustrating, simultaneously. On one hand, I find it hard to imagine not using nix now, but on the other hand, I hesitate to recommend it to other colleagues due to its steep learning curve, ux issues and potential for footguns.

I sincerely hope that nix community improves the UX to make it more accessible to new users. Though for those willing to invest time in learning it, nix is extremely useful and highly recommended.

amardeep··on React is holding me hostage
Standard ones I would like to try are Solid/Svelte/Vue

- Lit if I wanted to share components with other teams

- Marko if the site had lots of static content

- Qwik if speed was paramount

- Fresh too looks interesting

amardeep··on Nalanda University flourished for more than seven centuries
https://thewire.in/history/macaulays-speech-never-delivered
amardeep··on Nix-Powered Development with OCaml
> tomberek

1. Two independent use cases.

a) First was a personal use to carry my dotfiles/home config everywhere (office mac, home mac, virtual machines). Ended up configuring a flakes based home-manager setup.

b) Second is trying to get good devshell experience for the whole team. Especially in a monorepo setting with multiple languages and tools. Right now there is tons of setup required including installing right versions of java, python, nodejs, lots of instructions to get right python version, poetry install, setup aliases etc.

2. No, it is not. It didn't take much of research to conclude flakes are the way to go. Honestly, I am confused by so many responses about confusion between flakes and non-flakes as I don't think it take much effort to realize flakes are the way to go even if it is experimental.

Though, to be fair, it does hurt that two of the recommended resources - nix.dev and nix pills - do not cover flakes.

amardeep··on Rust is actually portable
I haven't used it yet but https://github.com/nadirizr/dazel might help. It runs bazel inside a docker container via a seamless proxy.
amardeep··on An ex-Googler's guide to dev tools (2020)
I also think it is partly as the tooling is not there yet - especially in the typical case when a project depends on lots of external dependencies.

I am looking forward to new set of bazel rules being worked on for eg. https://github.com/aspect-build/rules_js and https://github.com/jvolkman/rules_pycross which will makes it more idiomatic to work with existing language ecosystems.

amardeep··on BMW introduces new heated seat subscription in UK
It reminds me of inkjet printers and the issue with ink cartridges. Free market doesn't always result in an equilibrium which is not consumer hostile.
amardeep··on Software Engineering Insights from 10 Years at Google
Hi Addy,

It is sad to see that more often than not, the top comments on any article are overly negative or even vitriolic and any interesting discussion languishes deeper in the article.

I read your draft, and it is full of excellent advice. Some of it being which I also find very important, some which gives me food for thought and some which I am happy to be reminded of again. I look forward to your finished post.

amardeep··on Abletone Learning Synth
Isn't it really common though for people to advertise in related posts. For eg. I see one another self-promotion in this post too. I am just curious what makes this different.

I don't have a music background and so can't tell anything about ngrid.io, but usually people promoting related products (either self promotion or not) has been very helpful in the past.

amardeep··on Python Design Patterns (2018)
Reading top comments might make someone feel that this article is not worth reading, but I encourage people to actually read it. Personally I find it really interesting.

For eg. reading about prebound methods here: https://python-patterns.guide/python/prebound-methods/. Seasoned python programmers probably wouldn't find anything interesting there, but for me, it was quite useful including instances of where it is being done in python standard library and discussion around when and when shouldn't it be used.

amardeep··on Angular 13
Angular has been working really well for us except for large build times. Glad that this release improves upon it.
amardeep··on From Vim to Emacs in fourteen days (2015)
I have been using emacs like forever. Finally decided to learn vim 4 years back, as had to use Intellij Idea, and the default keybindings are crap for editing. Now, I use Doom Emacs with evil keybindings.

I am glad I took time to learn vim. The editing concepts around motion keys, text blocks etc. are just so much more powerful than emacs way.

I recommend all emacs users to learn vim atleast give evil mode a try.

amardeep··on Best practices can slow your application down
That kind of unit tests sounds great. I always reach for writing tests for eg. for library functions. Though I tend to skip when testing some app functionality which basically requires stubbing/mocking tons of services, and feeding them what output to expect on what input - in those cases, I don't find tests or TDD very helpful.

I find a lot of value in unit tests for isolated logic testing and in functional tests for end to end testing. Still that leaves a lot of code in a modern web application (like stackoverflow) where I find tests don't provide enough bang for buck.

amardeep··on Building a roam-like, networked, heavily-customized realtime editor, part 1
You might like https://logseq.com/. It works with either markdown or emacs org-mode syntax. It also syncs with github, so you could do local editing too.
amardeep··on Google announces Pixel 5, Pixel 4A 5G, and Pixel 4A
Wow, they are actually reducing models, and simplifying the range, but you make it sound as if they are increasing confusion by increasing the choices.

Having just a 128GB version is a good thing.

amardeep··on Strapi – Open-source Node.js Headless CMS
Another good open source cms is Directus - https://directus.io/
amardeep··on [dead]
https://class.stanford.edu/courses/Engineering/CVX101/Winter...
amardeep··on Google Person Finder: Chile Earthquake
This page has more information.

http://google-latlong.blogspot.com/2010/02/resources-for-chi...

amardeep··on Gmail: A Symbol Of Everything That Is Wrong With Google
No, it is not the same as gmail's conversations. The biggest difference is that gmail shows your replies in the same view.