#dev 2026-09-29

2026-09-29 UTC
Solari, JefeDelTodos, jefedeltodos_, daemonspudguy, grufwub, [Leo]1, EikoCosmik, barnaby, ggarcia24, [KevinMarks], doesnm_, mossymaker9, Xlongdivision, JoshuaM, Saige_Leah and joshproehl joined the channel
#
GWG
I decided to give up and have unit tests written for me, because I hate writing them. Wondering if this is a bad idea
#
jak2k
You test your software? I mostly do manual testing. YOLO!
JefeDelTodos joined the channel
#
GWG
jak2k: I manually test it because it is a hobby but I feel I should do better
#
GWG
I learned that from snarfed
#
GWG
I remember one time I commented the unit tests were longer than the actual code and he was thrilled
#
jak2k
Tests are good, but you have to be careful not to test too much: https://procial.tchncs.de/notes/armcqgetjlos03ka
#
jak2k
Writing 500 lines of tests for a 50 lines feature doesn't really spark joy…
#
GWG
jak2k: for me no. But I can outsource that job and focus on making things
#
GWG
I just want some security and performance auditing and some unit tests and to not have to do that
#
jak2k
GWG: Outsource?
thatoddshade, JefeDelTodos and ax562 joined the channel
#
GWG
To automation
#
[Leo]
The secret is not to give a shit. In the rare occasions when I somewhat do, I will set up a few test examples, stub the rest, and tell the clanker to fill the blanks.
#
[Leo]
I use claude to set up unit tests.
#
[social]
I hand off the creation of the unit tests and I review them, but I run them locally.
#
[snarfed]
as with using AI for anything, the question is always, do you know that it did it right 😎
#
[snarfed]
reviewing is often faster than doing it yourself from scratch? but you usually still need to review
#
[snarfed]
(s/?/!/)
#
gRegor
Is anyone familiar with a Google tool to check link previews and caches? Running into a weird scenario where a link embedded in Google Docs shows the wrong document title when you click the link and see the preview before you can actually open the link. The two pages are definitely unique URLs, no query strings, so quite an odd one.
#
gRegor
no rel-canonical on the links either
#
gRegor
I'm thinking it's actually related to Google search index. The new link is not indexed, but the one appearing in the preview is indexed. Even when I add the new link with a unique query param, the preview doesn't appear immediately, but after a brief period it does and Google picks the other one. Quite odd.
#
GWG
[snarfed]: I intend to review it, but it's still better than me writing them
#
gRegor
Huh, yep, it appears Google selected the URL showing up as the canonical and won't index the other one. These profile pages are largely similar, with different title elements, name, and some other info, so I guess adding rel-canonical is the fix.
barnaby, JadedBlueEyes16, JefeDelTodos, lanodan, thatoddshade and [schmarty] joined the channel
#
JefeDelTodos
I use AI to write my tests for new code once I have it working correctly (manual testing) more just so I have a guardrail where I don't inadvertently break something that previously worked...
#
JefeDelTodos
Having said that, if it's a new language or a new framework, I'll hand code my tests until I have a mental model before handing that non prod code to ai
#
JefeDelTodos
My mantra is, "don't delegate my understanding!"
thatoddshade and JefeDelTodos joined the channel
#
GWG
The thing just wrote 353 tests for me in my initial tests. I hate writing 10. I intend to read and check anything I let it do, but I've never written full code coverage.
#
GWG
Initial tests of using it.
JefeDelTodos, vikanezrimaya, ax562 and barnaby joined the channel