banner
mrmartincowen.bsky.social
@mrmartincowen.bsky.social
Velly interwesting. Line 23 is the critical bit, like a compound literal (struct s){.element1 = 1} but for a scalar, and lets you take address of it without having to create another var. This is for a generic type behaviour.
December 1, 2025 at 6:52 PM
HN types not beating tech bro accusations here
November 30, 2025 at 10:01 PM
Playing around with type polymorphism in C. I wanted one function which takes a type enum and a variable of that type without having to declare many functions all working with different types.
godbolt.org/z/M481To7P4
November 28, 2025 at 11:33 AM
Setting the treble on my NAD 302 amp near maximum brings the curve back near the ideal. So it's not just compensating for over 50 hearing loss, and would sound excessively bright for younger people. The measurement shows this is the right setting for this room & positioning.

9/11
November 26, 2025 at 6:25 PM
When I compared the sound with my Ear Fun Air Pro 4 before and after the Audio Science Review curve, I was convinced that you shouldn't worry about what your eq controls _look like_ - what matters is how close you can get to the ideal curve overall.

6/11
November 26, 2025 at 6:25 PM
Jaffa cakes, whilst being partly coated biscuits decorated with chocolate and would fall into the Standard rate for VAT, are zero rated because they are in fact cakes.
November 21, 2025 at 2:53 PM
Embedded debuggers often limit the number of breakpoints or make it slow to insert them. But if you've building on Windows, you can go wild like this

#embedded #firmware
November 20, 2025 at 5:55 PM
uncertain as to which one is correct at any given time
November 20, 2025 at 10:36 AM
Crashed Internally/Continuous Disintegration
November 18, 2025 at 9:40 PM
Cybersecurity professionals: Don't click on links in emails, especially to log in to banks.
This financial institution: click here in this email. Our Security people wanted a clearly understood URL, but Marketing overrode that because they need to track all engagements, obvs that's more important.
November 18, 2025 at 2:37 PM
YouTube has lost the plot, I assure you nothing in my search history would relate to this
November 15, 2025 at 4:13 PM
The funny thing about writing comments before coding in an interview: medium.com/@marciacripp...
is that I previously blogged about it
blog.martincowen.me.uk/comment-driv...

Why not adopt this practice every day?
November 12, 2025 at 9:01 PM
Hot take: speakers at conferences which will have a bigger video audience than in-person audiences should sit down. Even if most of the split screen is the slides, wandering around, kicking your feet and gesticulating is distracting and achieves nothing.
November 7, 2025 at 5:43 PM
Hmm...
November 6, 2025 at 5:25 PM
error handler function, back up one level.
November 6, 2025 at 12:41 PM
called function picks up file and line as variables and passes them on to a handler function via a pointer.

You can't avoid this by using __FILE__ etc in this function, or all calls will give the same values.
November 6, 2025 at 12:41 PM
Error handling with callbacks and line numbers in C.

If you put the __FILE__ and __LINE__ macros in the called functions, it will not show you the caller function location. Need to use a macro which wraps the function and passed params on, & adds these macros.
🧵
November 6, 2025 at 12:41 PM
If you want to find the shortcut for a command in VS Code, you can type the name of the command, but if you want to reverse look up the keys to see what the command is, you can click the keyboard icon on the right in the search bar and then type the shortcut keys.
Ctrl-K Ctrl-S brings this up.
November 6, 2025 at 11:16 AM
Still waiting for this guitar amp to be released commercially
November 6, 2025 at 8:40 AM
Z80 Assembly
October 31, 2025 at 2:30 PM
Addendum since finding WinLibs, seems better than TDM-GCC:
October 31, 2025 at 11:38 AM
C is simple language, they said. Then you get this comment in response to this talk www.youtube.com/watch?v=2KZg...
October 29, 2025 at 6:46 PM
Feels odd doing publicity photography, should be bottom of the priorities list, but then the results are worth it. Updated the blog header photo
from to
October 29, 2025 at 4:43 PM
C&K Button D6 model was badly offset and rotated in two axes
October 29, 2025 at 11:54 AM
and model has pins where it shouldn't - data sheet says 7, 8, 15 is no pin, and that's true of component.
October 29, 2025 at 11:45 AM