← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 45
  1. A while back I wrote about working with stacked PRs using git-branchless, git-autofixup, and git-pr.

  2. I have recently read a book called “Game Theory in Everyday Life” by Len Fisher.

  3. Hôm nay tôi xem kỹ hơn một video về group theory của tác giả 3b1b.

  4. I’m using dark mode everywhere.

  5. Have you ever get bored with the same old commit messages, all starting with “update”, “fix” or “feat”?

  6. A new day at work Suppose that you, a good software engineer, just got hired by an e-commerce business.

  7. The FConvey function is a standout feature of ezpkg.io/conveyz, designed to simplify focused testing in Go.

  8. Have you ever needed to modify unstructured JSON data in Go?

  9. Handling errors in Go is simple and flexible – yet no structure!

  10. Welcome to my blog!

    Hi!

  11. As a start-up company, we started with a simple architecture: All data were stored in a single centralized Postgres instance, shared by a few services.

  12. “How to Live on 24 Hours a Day” is a classic self-help book written by Arnold Bennett, first published in 1910.

  13. In JavaScript/Node world, we usually store scripts in package.json and run them using npm.

  14. Today, I encountered this code in my company codebase (the code and comments are rewritten for demo purpose and do not include any proprietary code): type GoroutineTracker struct { wg sync.WaitGroup // ... some other fields } // Go starts a new gorout…

  15. As I work on various Go projects, I often find myself creating utility functions, extending existing packages, or developing packages to solve specific problems.

  16. I usually push a lot of PRs in form of stacked PRs to GitHub.

  17. We’ll declare a Phantom Type: type StringN<N> = string & { length: N; readonly X: unique symbol; } const isStringN = <N extends number>(length: N, s: string): s is StringN<N> => s.length == length; export const stringN = <N extends number>(length:…

  18. TIL: console.log with color

    We can use this pattern to output log with color in browser by adding CSS: const logger = (name) => ({ info: console.info.bind(console, `%c${name}: %s`, 'color: #56d74b'), verbose: console.debug.bind(console, `%c${name}: %s`, 'color: #70818e'), })

  19. At work, I’m working on the flow compiler, which compile from flow documents into ETA flow descriptors.

  20. While working with Go and JavaScript, we have tools available for auto reloading the server when the code changes.

  21. I wrote a simple script to download the HackerNews data from HackerNews API.

  22. At work, I’m working on the flow compiler, which compile from flow documents into ETA flow descriptors.

  23. I usually work with stacked PRs.

  24. When using sapling, it can access my github with my credentials by asking me to gh auto login.

  25. At work, we use gomega for testing.

  26. In the last post, I shared my experience with Sapling, Meta’s new Git client.

  27. Sapling is a new source control system developed by Meta.

  28. We know that our blood contains white blood cells.

  29. gluon Recently, I found gluon.

  30. JavaScript is changing fast with a lot of new and exciting features to help us - developers write code better and better.

  31. TIL: File descriptor 3

    Linux There are three standard file descriptions, STDIN, STDOUT, and STDERR.

  32. TIL: git am

    TIL: Git How to apply a patch from github into the current repository gh pr diff --patch 4 | git am git am Apply a series of patches from a mailbox.

  33. According to neuroscientists, music can reduce anxiety and stress.

  34. Given the string It should have length Browse the source files: init.html box1.html go/main.go

  35. Number of UUIDs: Enter 1-10 in the above box.

  36. Ultralearning is a book from Scott Young.

  37. Shortcode are simple snippets inside your content files calling built-in or custom templates.

  38. TIL: Better Memory

    Memory tips by BigThink.com Chronic stress is really bad for our memory.

  39. WHERE conditions required At work, we are using gorm for dealing with database.

  40. Compare and swap in Redis

    Compare and swap Compare and swap is a familiar concept of atomic operation, for dealing with race condition.

  41. How to validate that a Protobuf message does not contain enum fields with zero value?

  42. What is it?

  43. You can’t connect the dots looking forward; you can only connect them looking backwards.

  44. Once upon a time, we could simply put an HTML and a script file into an FTP server, quickly have a working website and call it a day.

  45. µjson is a minimal JSON parser and transformer that works on unstructured (and trusted) JSON.