Chris Chua's Avatar

Chris Chua

@sirh.cc.bsky.social

Software engineer in Singapore Remote, Staff+, Platform Engineering, Developer Experience, full-stack, Python, bazel Previously: In San Francisco, Data Visualization, web, graphics sirh.cc

216 Followers  |  1,286 Following  |  61 Posts  |  Joined: 15.05.2023  |  2.2137

Latest posts by sirh.cc on Bluesky

Preview
Bear Bear is a beautiful, powerfully simple Markdown note taking app to capture, write, and organize your life.

Bear.app

21.07.2025 11:17 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Lol I thought I was so original with sirh.cc ๐Ÿ˜†

18.07.2025 14:37 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Like this pattern for networking ๐Ÿ“Œ

26.05.2025 04:05 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Anyone has been using @getgrist.bsky.social ? How do you like it?
It looks like what I've been looking for with Coda.

04.05.2025 05:11 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Anyone use zero-instrumentation profiling tools for Python? Howโ€™s your experience with them?

E.g. perforator.tech

20.03.2025 06:29 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Add excludeLangs for syntax highlighting ยท withastro roadmap ยท Discussion #1124 Body Summary Add an option to exclude certain languages from syntax highlighting. Background & Motivation Syntax highlighting adds markup to code blocks. The default Mermaids integration fails and ...

Created an RFC: github.com/withastro/ro...

25.02.2025 01:48 โ€” ๐Ÿ‘ 1    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Dug into the source, looks like exclusions are managed here github.com/withastro/as...

Will contribute an excludeLangs option when I get a chance.

24.02.2025 14:17 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
Diagrams Use fenced code blocks and Markdown render hooks to include diagrams in your content.

Ah glad to know that the defaults on Hugo support it. I see gohugo.io/content-mana...

24.02.2025 14:14 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Ran into this issue.
Syntax highlighting breaks the default way of rendering it via code blocks.
I havenโ€™t found a way to turn off syntax highlighting only for mermaid while leaving it on for other languages.

This is frustrating given Iโ€™d think this is a common use case since they support GFM.

24.02.2025 13:15 โ€” ๐Ÿ‘ 1    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

What is the best solution for using mermaid diagrams in Astro? I've failed a couple of times at implementing it now.

27.11.2024 04:43 โ€” ๐Ÿ‘ 4    ๐Ÿ” 1    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

@webpro.nl @ssp.sh @cassidoo.co in case youโ€™ve taken a stab at mermaid rendering on your blog, curious what youโ€™ve came up with.

I havenโ€™t dug into the syntax highlighting internals but perhaps I should.

24.02.2025 13:22 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

โ€ฆand GFM (GitHub Flavored Markdown) supports mermaid rendering.

24.02.2025 13:15 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Ran into this issue.
Syntax highlighting breaks the default way of rendering it via code blocks.
I havenโ€™t found a way to turn off syntax highlighting only for mermaid while leaving it on for other languages.

This is frustrating given Iโ€™d think this is a common use case since they support GFM.

24.02.2025 13:15 โ€” ๐Ÿ‘ 1    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Was wondering who else heard thatโ€ฆ

05.02.2025 16:57 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Future LinkedIn skill:
* Able to persuade diverse set of LLM models.

25.01.2025 11:11 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Debugging an error coming from an AI agent:
`Expecting value: line 1 column 1 (char 0)`

As I step through the code, I see why.

The LLM (llama3.2:1b) is refusing to provide a response, as it thinks it could be used maliciously.

Guess the next step is to persuade this model that I'm ๐Ÿ˜‡...

25.01.2025 11:11 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Interesting:

Meta created React Native. Itโ€™s used (with components at least) in their flagship apps: Facebook (iOS, Android), Instagram (Meta Quest), Messenger (desktop).

Google created Flutter. And yet none of their flagship apps use it (Gmail, YouTube, Maps, Calendar).

15.01.2025 12:43 โ€” ๐Ÿ‘ 278    ๐Ÿ” 28    ๐Ÿ’ฌ 24    ๐Ÿ“Œ 4

I meant that typically two modes (mocks, real endpoints) are kept available in the test code.
If the test strictly requires mocks and will never run without mocks (i.e. a mode that records new mocks such as when API endpoints have updated) then I typically regard it less of an integration test.

15.01.2025 05:52 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Itโ€™s okay to do so but thereโ€™s still a way to run it without the mocked APIs to hit real endpoints.
Itโ€™s not that they must rely on mocks being available.

15.01.2025 05:27 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Book that comes to mind is: Non-violent communication.

Not exactly about empathy directly but a tool to help with it.

12.01.2025 12:17 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
30.12.2024 22:59 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Using a Precompiled gRPC Compiler in Bazel for Python How to use a precompiled gRPC compiler for Python in Bazel

Wrote on how to use a precompiled gRPC Compiler in Bazel for Python.

30.12.2024 22:24 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 1

Used ChatGPT as an editor, and published it. Done is better than perfect, heh.

30.12.2024 22:21 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Ah, just saw this. You beat me to it.

30.12.2024 11:43 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
const DATE_FORMAT = new Intl.DateTimeFormat('en-US', {
  weekday: 'long',
});
export function newYearsDay(year: number): string {
  const date = Date.UTC(year, 0, 1);
  return DATE_FORMAT.format(date);
}

const DATE_FORMAT = new Intl.DateTimeFormat('en-US', { weekday: 'long', }); export function newYearsDay(year: number): string { const date = Date.UTC(year, 0, 1); return DATE_FORMAT.format(date); }

github.com/chrisirhc/ca...

30.12.2024 11:41 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Fleshed it out, added some detail and code snippets to it.

15.12.2024 20:44 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
New blog Welcome to my new blog

Working on a new blog.
Here goes, the first post, so I can test comments.

blog.sirh.cc/post/new-blog/

13.12.2024 20:02 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
The 70% problem - hard truths about AI-Assisted Coding

The 70% problem - hard truths about AI-Assisted Coding

โœ๏ธ "Hard truths about AI-assisted coding" tips & tricks in my latest article: bit.ly/ai-assisted

While AI-Assisted coding can get you 70% of the way there (great for prototypes or MVPs), the final 30% requires significant human intervention for quality and maintainability.

05.12.2024 00:07 โ€” ๐Ÿ‘ 243    ๐Ÿ” 56    ๐Ÿ’ฌ 9    ๐Ÿ“Œ 20
Preview
WIP Pre-compiled gRPC plugin article by chrisirhc ยท Pull Request #3 ยท chrisirhc/blog.sirh.cc See Files Changed to review: https://github.com/chrisirhc/blog.sirh.cc/pull/3/files

Iโ€™m working on a blog post on some recent work I did with a monorepo.

github.com/chrisirhc/bl...

Anyone has comments on the outline or tools to recommend for improving the post?

02.12.2024 10:08 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
Rough notes on learning Wardley Mapping. In my ongoing efforts to draft a book on engineering strategy, Iโ€™ve finally reached the point where I need to transition โ€œWardley Mappingโ€ from a topic to consider including into a topic that I either...

Finally took some time over past month to learn Wardley mapping. Still a technique Iโ€™ve rarely seen โ€œin real lifeโ€, but glad that @mipsytipsy.bsky.social mentioned it a few times online in ~2018 and Iโ€™ve finally caught up ๐Ÿ˜‚

lethain.com/learning-war...

01.12.2024 16:57 โ€” ๐Ÿ‘ 76    ๐Ÿ” 12    ๐Ÿ’ฌ 7    ๐Ÿ“Œ 4

@sirh.cc is following 20 prominent accounts