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.

1

#LLM coding agents (particularly #ClaudeCode and #Cursor) are powerful. But they can leave a mess in their wake if you let them do too much all at once.

I'm spending the morning cleaning up generated code that looks like this:

<div class="compose-drawer">
    <i class="compose-drawer__pull"/>
    <button class="compose-drawer__btn compose-drawer__secondary"/>
    <some_other_set_of_elements/>
</div>


<style lang="scss">
compose-drawer {
    background: black;


    &__pull {
        background: white;
    }


    &__btn {
        some-style: something;
    }


    &__secondary {
        some-style: something-else;
    }
}
</style>

I don't use that __ syntax - maybe that's something that real front-end coders do, but it looks terrible to me. In tens of thousands of lines of code, I don't do that anywhere, but the LLM decided it should write a lot of it like that. What I generally write is more like this:

<div class="compose-drawer">
    <i class="pull"/>
    <button class="secondary"/>
    <some_other_set_of_elements/>
</div>


<style lang="scss">
compose-drawer {
    background: black;


    .pull {
        background: white;
    }


    button {
        some-style: something;


        &.secondary {
            some-style: something-else;
        }
    }
}
</style>

It may not look like that matters much, but with deeply nested HTML, those long a__b__c__d class names just piss me off.

It's probably the sort of stylistic choice I could enforce in an instructions file and I should look into that. But in general, the LLM doesn't seem to do a great job with CSS stylistic conformity. The code it generates works, but I hate looking at it and certainly wouldn't want to impose it on anyone else without adjustment.

0

The Dress™ arrived. It's right from the package, so it will need some ironing to get into shape.
But it fits pretty well!

The bow in the back is so large that it's nearly impossible to see the back neckline :blobcatgiggle:

Sasha wearing a short black dress with a low neckline and very puffy sleeves.The back of Sasha's dress showing a large rip ribbon bow.
0
0
0

RE: mastodon.online/@electrek/1157

What an odd (and bad, in my rather uninformed opinion) decision by the Delaware Supreme Court.

Please, people. Stop buying . This company is not only broken, it’s literally financing Elon’s evil deeds. The man has starved 600,000 people through DOGE’s destruction of USAID. He’s a white supremacist. He’s a Hitler sympathizer. He’s polluting the sky with junk satellites. He’s poisoning poor people with his data center emissions. What more does he have to do for you to stop sending him your money?

0

FYI: 20 U.S.C §20i(a) (law.cornell.edu/uscode/text/20): "The Board shall construct for the Smithsonian Institution, with funds raised by voluntary contributions, a building to be designated as the John F. Kennedy Center". In other words, the name is set by statute. And I reviewed all of the other relevant sections of the statute—none give the Board the power to change the name. In fact, there are other provisions that make sure that this stays as a memorial to Kennedy, e.g., §76j(b)(1): "no additional memorials or plaques in the nature of memorials shall be designated or installed in the public areas of the John F. Kennedy Center for the Performing Arts."

0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0

some of that is due to: 1. me learning things and getting better. i think i'm sequencing features better this time around 2. my design vision being a bit stronger. i have less layers of IRs. 3. models getting better. this is using all latest claude stuff 4. me getting better at agentic dev.

0
0

RE: mastodon.social/@pruef_hh/1157

t am 10.01. auch wieder

Ich habe immer 1-2 Großpackungen Süßzeug dabei und verteile; macht Menschen happy.
Wer mindestens drei Freunde / Bekannte mitbringt kriegt und mich findet kriegt extra Süssigkeiten. Deal?

0

우리 강의실에서 페미니즘 얘기하자 - 여성학 강의실을 들여다보다 ⇢ www.snujn.com/news/73453 도현 씨는 “이전에는 군가산점제 폐지에 부정적이었는데, 강의를 듣고 이것을 성별 문제가 아닌 군필자와 미필자 간 문제로 다시 보게 됐다”고 말했다. 남성이 손해를 보고 여성은 이득을 보는 단순한 구도를 넘어, 남성 사이에서도 병역 이행 여부에 따라 군가산점제에 대한 의견이 갈릴 수 있다는 점을 생각하게 된 것이다.

0
0
0
0
0
1
0
0
0
0
0
0
0
0
0

RE: mastodon.online/@electrek/1157

What an odd (and bad, in my rather uninformed opinion) decision by the Delaware Supreme Court.

Please, people. Stop buying . This company is not only broken, it’s literally financing Elon’s evil deeds. The man has starved 600,000 people through DOGE’s destruction of USAID. He’s a white supremacist. He’s a Hitler sympathizer. He’s polluting the sky with junk satellites. He’s poisoning poor people with his data center emissions. What more does he have to do for you to stop sending him your money?

0
1
0
0
1
0
0
0
0

I feel like I flubbed an interview because, while I was describing my work with xpaths, the interviewer caught me off guard by asking how I would implement a simple xpath engine. I was caught off guard and answered "I think that's a mistake. I've seen a lot of half-assed xpath implementations. I would rely on the engine optimized by very smart people, as if it were a compiler." Really the interviewer was asking "Do you know about trees and graphs?"

0

I feel like I flubbed an interview because, while I was describing my work with xpaths, the interviewer caught me off guard by asking how I would implement a simple xpath engine. I was caught off guard and answered "I think that's a mistake. I've seen a lot of half-assed xpath implementations. I would rely on the engine optimized by very smart people, as if it were a compiler." Really the interviewer was asking "Do you know about trees and graphs?"

0
0
0
0
0
0
0

I've tried a few times in the past to build Python bindings for a C library and always gave up pretty quickly. This time I was looking to make Python bindings for github.com/fastserial/lite3.

Antigravity + Gemini has gotten everything working over the past hour or so. It's been 20 years since I've done any C, so not sure I'd call any of this production-level code, but it's been fun to play around with it at least.

0