For the best experience on desktop, install the Chrome extension to track your reading on news.ycombinator.com
Hacker Newsnew | past | comments | ask | show | jobs | submit | history | shraddhaag's commentsregister

Wrote a short blog about solving Advent of Code day 2 in Golang. Although the problem itself was trivial, it came with a sweet reminder about slice internals. I have made this mistake way too many times, hopefully now that I've written this blog, it won't happen again


Wrote a blog about this year's advent of code day 1. While solving the problem I was once again struck with the missing function for calculating absolute value for integers and decided to dig a lil deeper. You'll also find a small recap of how the abs() function for floats evolved over time in the standard library.

Please do give it a read and let me know your thoughts!


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search:

HN For You