News for hackers. Stuff that matters.
Re:Create React apps using Kotlin by specialist on Saturday November 04, 2017 @05:18PM (#15626943)
Being a grumpy old man: it's not programming if I can't set a breakpoint.
Re:Create React apps using Kotlin by stevenwoo on Saturday November 04, 2017 @05:25PM (#15626975)
I can remember having to debug some prototype hardware with LED's attached to address pins, you kids are spoiled these days! :)
Re:Create React apps using Kotlin by bitL on Saturday November 04, 2017 @05:25PM (#15626979)
Talk to functional programming folks... :D
Re:Create React apps using Kotlin by yawaramin on Saturday November 04, 2017 @07:30PM (#15627384)
Or not, we do printf debugging ... :-)
Re:Create React apps using Kotlin by droidist2 on Sunday November 05, 2017 @12:31AM (#15628171)
That's one reason I love Clojure, really nice tooling through IntelliJ + Cursive.
Re:Create React apps using Kotlin by askvictor on Saturday November 04, 2017 @07:02PM (#15627302)
You've obviously never done embedded systems programming. Try debugging timing issues with a breakpoint.
Re:Create React apps using Kotlin by bitL on Saturday November 04, 2017 @10:31PM (#15627892)
Actually, how do you debug those? If you put in a breakpoint, use DTrace & co or do logger output, you won't likely hit the issue. I did this with super low-level distributed systems and they were mostly resolved by hard thinking and modeling execution path in my head...
Re:Create React apps using Kotlin by askvictor on Sunday November 05, 2017 @05:29PM (#15632106)
With great difficulty and annoyance.

Once when developing with the 8051 family (using a development board that included a debugger), the program worked perfectly on the dev board, but when I burned it onto EEPROM, a subtle timing issue with a peripheral caused the program to fail. Much frustration ensued; had to develop that section with a long winded code->compile->burn->test cycle. Then we found out the particular 8051 variant we were using had been discontinued :(

Re:Create React apps using Kotlin by tonyarkles on Sunday November 05, 2017 @03:54PM (#15631507)
You've got the process figured out :)

Reason through the code. Sometimes, reason through the output assembler (in case the C code is making invalid assumptions). Stare at oscilloscope traces. Think really hard about what's happening, come up with a hypothesis, and test that hypothesis.

The hypothesis testing part is key. I've worked with embedded developers who "fix" a bug by making a code change, but can't at all explain why the change is likely to fix the bug. In many cases, the reason it seems to fix the bug is that it changes the timing just enough so that the bug happens less frequently, but without having a really solid causal explanation, it likely just means that it's going to be even harder to find the bug when it pops back up again.

Re:Create React apps using Kotlin by specialist on Sunday November 05, 2017 @09:42AM (#15629593)
Does Apple ][ 6502 assembler count?