|
A consultant sent his source code to me recently, and I had the pleasure of rewriting it. I don't think this guy knows about the standard library.code:
code:
code:
code:
I'd caution you against using any of this code in your own programs, as it's under copyright.
|
# ¿ Dec 7, 2009 07:47 |
|
|
# ¿ Apr 27, 2024 16:40 |
|
Vanadium posted:!coherent
|
# ¿ Jan 25, 2010 00:54 |
|
just use a code reformatter and then who cares, it always looks good.
|
# ¿ Mar 27, 2010 18:11 |
|
I'm always getting asked in emails why I made a change to a certain file in SVN. I think I'm the only one who uses comments.
|
# ¿ Jun 9, 2011 17:27 |
|
Quick one:code:
|
# ¿ Jul 11, 2013 18:02 |
|
needs more orange
|
# ¿ Aug 20, 2014 21:53 |
|
Is the error that this took more than a single, non-branching line of code?
|
# ¿ Oct 3, 2014 17:01 |
|
Tell me there's more to that patch and this was some incidental thing where they had to insert a case for the new enum value to pass code review. edit: lol code review on that
|
# ¿ Jan 7, 2015 19:28 |
|
Ugh, I'm in a similar situation. No one believes me when I say a component is browning out or otherwise resetting itself, so I have been tasked with days of driver rewrites to eliminate good interrupt driven design and move back to a polling loop "like we used to do back when we launched first_product". Why doesn't anyone believe me? Because first_product works fine on a completely different hardware platform, with a different model of component and years of bug fixes. Often I have to bring people up to speed on how we're actually doing things in code so they can revise their far-fetched ideas why it doesn't work. It was suggested that I was overwhelming the resetting component with commands, despite using hardware flow control and only issuing the next command after getting and validating the response to the previous one. Result? Now I have work issue to test the interface with a dummy command before every real command. I'm about to double the number of commands hitting this supposedly overloaded command interface!
|
# ¿ Mar 29, 2015 04:47 |
|
Jumpingmanjim posted:We also have a burn down chart that seems to keep burning up and stand up meetings that go on for too long. I wonder if there's enough material for a bad Agile thread. Hey Geoff, didn't know you were on the forums.
|
# ¿ Sep 25, 2015 05:56 |
|
GCC (as of 5.x https://gcc.gnu.org/gcc-5/changes.html) and clang (http://clang.llvm.org/docs/LanguageExtensions.html#checked-arithmetic-builtins) both have checked overflow builtin functions. I assume that any inefficient code generated from these on your platform would be a bug that should eventually get optimized.
|
# ¿ Nov 3, 2015 18:14 |
|
Munkeymon posted:Definitely not Google
|
# ¿ May 25, 2016 19:25 |
|
redleader posted:I'd be interested to hear your problems with Python 3, compared to those of Zed "I learned Python to write a book on it" Shaw. Yes, please elaborate. It was annoying to have to have to remember to encode and decode strings until I got used to it, but it's not like they jettisoned half the standard library. I've heard the "python is a garbage plang" argument as well as the "not worth breaking compatibility" argument, but this is new to me. What makes Python 2 so superior to Python 3?
|
# ¿ Nov 24, 2016 06:07 |
|
"programmers" means "libertarian men"
|
# ¿ Feb 13, 2018 17:54 |
|
Jabor posted:Personally, I don't give a poo poo about when solar noon is, but I'd rather not walk to work in the dark. Tell your boss you'll be in when it's light out and work 8 hours from whenever that is.
|
# ¿ Apr 16, 2018 17:22 |
|
Only delay needs to be volatile to implement a timeout, right?
|
# ¿ Oct 4, 2018 19:50 |
|
New Yorp New Yorp posted:This is what happens when you don't do mandatory code review and let people work on their own. I've seen a NMEA sentence parser that did that for every field, separator, etc. The one line else clauses were hundreds of lines away. Thank god we don't have multiple return statements though!
|
# ¿ Oct 5, 2018 17:01 |
|
Embedded isn’t dead and C is by far the most popular language. Multiple kilobytes would be a very generous stack allocation for some systems I’ve worked on. Do compilers have tuning options for when to turn off this optimization that substitutes heap for stack?
|
# ¿ Jul 13, 2020 01:20 |
|
|
# ¿ Apr 27, 2024 16:40 |
|
Hammerite posted:love to see a library in which every property accessor has a documentation string that says either "gets the value of the Foo property" or "sets the value of the Foo property" as though that were helpful to anyone, clearly solely because there is some policy saying that every method and property accessor is required to have a documentation string so they can claim they reach some documentation target sometimes it’s easier to tell your IDE to autogenerate a doc block instead of arguing in a pull request about how confusing a member function called “encodeToBuffer” that takes one parameter called “buffer” really is.
|
# ¿ Dec 30, 2022 21:19 |