• 1 Post
  • 121 Comments
Joined 2 years ago
cake
Cake day: October 18th, 2023

help-circle
  • I generally don’t do GUIs for C. But I’m also an embedded C person.

    When I have I’ll generate DLLs for the C portion then just pull them into a python based interface or something with easier to deal with gui implementations.

    Programming languages are tools. Would you use a wrench to drive a nail? You could. But it would be painful, you’re gonna miss and whack your hand at least once.

    If it’s a learning exercise, go for the C implementation, why not? I’ve written an XML parser in LabVIEW. (I never stopped to ask whether I should…) Is that the right tool for the job? Fuck no.

    If this is an exercise in software engineering be an engineer and use the 99% already built and verified system to do the job it’s meant to.

    Or you can write an entire theme park simulator in assembly because you like pain or something.







  • Also, working physical interfaces for everything where possible.

    Lights that come on auto-magically are great, low light after bed time, that shuts itself off after you stumble back to bed, etc.

    But you also need to allow overrides, like someone double taps the lights on you override the automations for an hour or two to handle corner cases like when your 6 year old pukes all over the hall and bathroom and you need cleaning light not stumbling light.

    Also, light switches and lamps should work like light switches and lamps for guests, because these interfaces aren’t bad, they work, well even.