frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Why doesn't V8 fit on my microcontroller? (2021)

https://medium.com/the-toit-take/why-doesnt-v8-fit-on-my-microcontroller-71dc6e2d8f5c
1•tosh•1m ago•0 comments

Is there an MD5 Fixed Point where MD5(x) == x?

https://stackoverflow.com/questions/235785/is-there-an-md5-fixed-point-where-md5x-x
1•plaguna•2m ago•0 comments

GPT-4 leaks its own API internals through training data exposure

1•safteylayer•3m ago•0 comments

Andrew Tate Doesn't Get the Point of Books

https://www.theatlantic.com/ideas/2026/03/slow-reading-books-benefits/686266/
1•paulpauper•4m ago•0 comments

The Met Opera's Desperate Hunt for Money

https://www.nytimes.com/2026/03/08/arts/met-opera-peter-gelb-finances.html
1•paulpauper•5m ago•0 comments

Bubbles, Booms and Crashes in the US Stock Market 1792-2024

https://www.nber.org/papers/w34903
1•paulpauper•5m ago•0 comments

Ask HN: How are you reviewing code at work these days?

1•curiousgal•7m ago•1 comments

Professors scramble to save critical thinking in an age of AI

https://www.theguardian.com/technology/ng-interactive/2026/mar/10/ai-impact-professors-students-l...
1•fallinditch•8m ago•0 comments

Senate Moves Toward Passing Housing Bill, but Challenges Lie Ahead

https://www.nytimes.com/2026/03/10/us/politics/senate-housing-bill.html
1•JumpCrisscross•10m ago•0 comments

Show HN: Zehrava Gate – an control plane that sits between AI agents and prod

1•cgallic•13m ago•0 comments

Single-dose treatment approved for sleeping sickness

https://www.nature.com/articles/d44148-026-00051-w
3•bookofjoe•14m ago•0 comments

Show HN: AlphaEvolve inspired evolution harness for Pokemon

https://github.com/papercomputeco/pokemon
2•brianllamar•14m ago•0 comments

Ex-Google PM Builds God's Eye to Monitor Iran in 4D

https://www.youtube.com/watch?v=0p8o7AeHDzg
2•doener•15m ago•1 comments

The Only Code That Defies Entropy

https://ta.fo/the-only-code-that-defies-entropy/
1•freediver•16m ago•0 comments

Python: The Optimization Ladder

https://cemrehancavdar.com/2026/03/10/optimization-ladder/
1•Twirrim•16m ago•0 comments

The Public Suffix List

https://publicsuffix.org/list/public_suffix_list.dat
1•barishnamazov•18m ago•1 comments

V32 (Number Station)

https://priyom.org/number-stations/other/v32
1•NoboruWataya•18m ago•1 comments

I Built an AI Agent That Writes Its Own Rules from Its Mistakes

https://www.roryteehan.com/writing/i-built-an-ai-agent-that-writes-its-own-rules
2•freediver•19m ago•0 comments

Nasal spray protects mice from respiratory viruses, bacteria and allergens

https://medicalxpress.com/news/2026-02-universal-vaccine-nasal-spray-mice.html
3•PaulHoule•19m ago•0 comments

Toit

https://docs.toit.io/language/
1•tosh•20m ago•0 comments

OopsDB – A TCP proxy to stop AI agents from dropping your DB

https://github.com/pintayo/oopsdb
2•pintayo•21m ago•1 comments

Neon is a human-readable structured data format

https://doc.nette.org/en/neon/format
2•ifh-hn•21m ago•0 comments

New HyperCard discovery: Neuromancer / Count Zero / Mona Lisa Overdrive

https://macintoshgarden.org/apps/neuromancer-count-zero-mona-lisa-overdrive
3•naves•21m ago•0 comments

Tell HN: It's official, I'm done with Claude

2•ra0x3•22m ago•1 comments

Harrison Chase: How Coding Agents Are Reshaping Engineering, Product and Design

https://twitter.com/hwchase17/status/2031051115169808685
1•JnBrymn•22m ago•0 comments

Regxa – query NPM, PyPI, crates.io, RubyGems, Packagist from one TypeScript call

https://github.com/oritwoen/regxa
1•oritwoen•23m ago•1 comments

How Pokémon Go is giving delivery robots an inch-perfect view of the world

https://www.technologyreview.com/2026/03/10/1134099/how-pokemon-go-is-helping-robots-deliver-pizz...
1•rbanffy•24m ago•0 comments

AI's hidden bias: Chatbots can influence opinions without trying

https://news.yale.edu/2026/03/03/ais-hidden-bias-chatbots-can-influence-opinions-without-trying
1•geox•25m ago•0 comments

Ghostty 1.3

https://twitter.com/mitchellh/status/2031042095822340417
1•tosh•25m ago•0 comments

Google to Discontinue Widevine Cloud License Service in April 2027

https://castlabs.com/blog/widevine-retiring-cloud-license-service/
15•dabinat•27m ago•1 comments
Open in hackernews

Git Commands That Cover 90% of a Developer's Daily Workflow

https://jsdev.space/15-git-commands/
29•javatuts•10mo ago

Comments

epmatsw•10mo ago
restore and maybe switch are the two missing ones I think. Rebase for me, but that’s preference. Cherry-pick too.
rentonl•10mo ago
my co-workers used to think I was an expert in git. In reality, they memorized 7 commands while I memorized 15
hbogert•10mo ago
i memorized that a commit tree is a ordered set of patches. Everything goes from there.
Areibman•10mo ago
In similar fashion, this site has saved me countless hours fixing common git issues https://ohshitgit.com
the__alchemist•10mo ago
I need to alias:

  git add .
  git commit -am "descriptive name"
  git push

to:

  git sync "descriptive name"
horsawlarway•10mo ago
personally - skip the 'git add .'

It's a pretty terrible habit to get into, and will (not can - will) cause all sorts of headaches. From minor ones like personal editor configs getting dumped into the projects, all the way up to major ones like secrets ending up in your git history.

If you want something close, but much better, do something like:

    if [[ -n $(git ls-files --others --exclude-standard) ]]; then
        echo "There are untracked files.  Please add, remove, or ignore them."
    else
        git commit -am "descriptive name"
        git push
    fi
the__alchemist•10mo ago
I see your point, but find it worth it for convenience. Ultimately git is a tool I use to get the job done, and I want it out of the way. 99% of the time, I just want to sync my project, which doesn't only mean edits to existing files.
open-paren•10mo ago
How about `git add --patch -all` to make it interactive? I have that aliased to `gap` and it is probably my most used git command.
cholantesh•10mo ago
That sounds better but I like the granularity I get from scrutinizing specific files or the patch takes too long to review.
speff•10mo ago
I'd like to suggest also mentioning `git add -p` (--prompt). It's very helpful for just adding changes relevant to the commit
nickcw•10mo ago
No `git rebase`?

Here are my stats for my last 300 or so git commands from my history

    $ history | grep git | awk '{print $3}' | sort | uniq -c | sort -rn

     71 log
     44 show
     34 diff
     26 co # alias for checkout
     24 cherry-pick
     23 status
     18 brs # alias for branch -v --sort=-committerdate
     13 rebase
     11 commit
     11 add
      8 push
      4 archive
      3 reset
      2 pull
      1 grep
      1 checkout
      1 br
Been doing lots of tricky merges recently hence all the cherry-picks! Not normally such a large part of my workflow.
mercer•10mo ago
For me, I generally don't go far beyond the commands in the article, but I /do/ make a lot of use of git rebase -i in my branches.
karmakaze•10mo ago
Maybe not essential, but reflog is invaluable.

I also like to separate fetch from pull (fetch + merge).

foobarkey•10mo ago
Remove merge and add rebase and we agree :)

Oh and maybe cherry-pick

seba_dos1•10mo ago
Both are essential.
realaleris149•10mo ago
There are other commands?
incomplete•10mo ago
also gonna echo the same sentiment: where's rebase? :)

two other git log commands i find to be insanely useful are:

alias hlog='git log --date-order --graph --date=short --format="%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ad%Creset %C(red bold)%d%Creset%s"'

and:

alias alog='git log --date-order --all --graph --date=short --format="%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ad%Creset %C(red bold)%d%Creset%s"'

this is great when working in a repo w/a main "prod" branch that you don't commit to directly, but instead commit to "staging" or "dev". alog shows you the entire repo's history for all branches, and hlog is just the graph of the non-pushable branches (plus all feature branches).

hbogert•10mo ago
i can't take this seriously if there's no mention of the '--amend' option and 'rebase' command
OutOfHere•10mo ago
It missed "git switch" and "git restore".