Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Not gonna lie. My interrupt routines were long (but not 300 lines long), but usually written in assembly. They certainly didn't wait on anything.
-
There are dongles for some microcontrollers you can debug with. I have one for PIC chips. Hopefully there is something out there for yours.
-
galena71722y@electrineer Nah, we have a lot of cabels around the office. It just ripped some, made a noose and just started hanging around!
-
JS-Guy1432yFuck, at that point you might be better off writing something from scratch. It never ceases to surprise me how good something can come out if it's completely written anew.
-
Was this project made by an intern as a proof of concept and PM was like, "that's now a 10M$ market, ship it!"?
Another project with legacy code got just dusted off at work. Shits fucked beyond recognition! We got:
- Rando variable names that mean nothing
- Timers running with a cycle time of 2.5ms if you start them with the multiplier 1.
- An Interrupt routine thats 300 lines long.
- Another interrupt thats starting an ADC conversion and waiting for it to complete before returning.
- For loops that start with one and subtract one from the iterator in the loop
- Every value that would normally be expressed as a regular number is written down in Hex. Eg: if(val==0x05)
- State machine built without writing down which state is which. Its just a number. (In hex obviously!)
- All running on a Microcontroller you cant debug on.
- Using a compiler no one has ever heard of before.
- Weird ass Port manipulations
- 15 different .hex and .elf files with no clue whats in them.
- No version control
- We tried explaining the code to a monkey and it hanged itself.
rant
shits fucked