What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

0
0
0
1
0
0
0
3
9
0
1
0
0
1
1
0
1
9
0
3

洪 民憙 (Hong Minhee) shared the below article:

VitePress localSearchPlugin 버그 디버깅하기

Lee Dogeon @moreal@hackers.pub

이 글은 Zenn 트렌드 봇 제작 중 VitePress 로컬 검색 기능의 버그를 발견하고 수정하는 과정을 담고 있습니다. Fedify 문서에서 검색 기능이 제대로 작동하지 않는 것을 확인한 후, 코드 블록 내의 특정 마크다운 문법(`markdown-it-jsr-ref` 플러그인)이 문제임을 밝혀냈습니다. VitePress의 `localSearchPlugin.ts` 파일을 분석하여, 헤딩 내의 `<a>` 태그를 처리하는 정규식의 non-greedy한 특성이 버그의 원인임을 알아내고, 정규식에서 `?` 기호를 제거하여 문제를 해결했습니다. PR을 통해 수정 사항을 제안하고 빠르게 머지된 경험을 공유하며, 디버깅 과정과 PR 준비에 대한 회고와 함께 개선점을 제시합니다. 이 글은 문제 해결 과정과 디버깅 경험을 통해 독자들에게 인사이트를 제공합니다.

Read more →
3
0
0
4
0
0
0
0
0
4
0
0
4
0
6
1
0
0
6
0
1
0
0
0
1
0
0
0
0

twitter

"One of the great things about Twitter, which has been in decline for years, was having so many unique experts and accomplished people all across different fields who, even if they had incredibly dumb shit political opinions, would still at least sometimes share unique insights about the crafts they happened to be total fucking geniuses in. It's been genuinely sad seeing that aspect of Twitter continue to wither away."

RE: twitter.com/Evolving_Moloch/st

From William Buckner ( @Evolving_Moloch@twitter.com ):

 "One of the great things about Twitter, which has been in decline for years, was having so many unique experts and accomplished people all across different fields who, even if they had incredibly dumb shit political opinions, would still at least sometimes share unique insights about the crafts they happened to be total fucking geniuses in. It's been genuinely sad seeing that aspect of Twitter continue to wither away."
0
0
0
0
0