|
please stop posting at&t syntax asm. there's a switch in the options to make it emit intel syntax, as designed by the people who invented the instruction set, rather than the hideous spawn of richard stallman's unix fanfic
|
# ? Mar 9, 2018 21:59 |
|
|
# ? May 25, 2024 13:16 |
|
Soricidus posted:please stop posting at&t syntax asm. there's a switch in the options to make it emit intel syntax, as designed by the people who invented the instruction set, rather than the hideous spawn of richard stallman's unix fanfic Sure thing, Intel is more familiar to me anyway, was just hitting the obvious Do It buttons before.
|
# ? Mar 9, 2018 22:07 |
|
AT&T syntax is a coding horror so it belongs in this thread taqueso posted:Thanks! I just noticed the compiler understands the heap, it's completely eliding the heap allocated vector in the first two functions and just doing everything on the stack instead. That's seriously cool. Apparently neither Clang or GCC know that trick: https://godbolt.org/g/v5h9Pc repiv fucked around with this message at 23:05 on Mar 9, 2018 |
# ? Mar 9, 2018 22:57 |
|
repiv posted:AT&T syntax is a coding horror so it belongs in this thread I suspect that C++ requires that the vector must actually be allocated because mumble mumble OOM errors or something.
|
# ? Mar 9, 2018 23:37 |
|
repiv posted:AT&T syntax is a coding horror so it belongs in this thread The ability to replace operator new is required, and replacements are allowed to have side effects, so it has to emit the calls.
|
# ? Mar 9, 2018 23:41 |
|
b0lt posted:The ability to replace operator new is required, and replacements are allowed to have side effects, so it has to emit the calls. But Clang does optimize operator new away in this simpler case 🤔 https://godbolt.org/g/B2DaNN edit: Turns out Clang does elide vectors if you build against LLVMs own stdlib implementation, that optimization just doesn't work with the default GNU stdlib for some reason. https://godbolt.org/g/rvCgG5 repiv fucked around with this message at 00:59 on Mar 10, 2018 |
# ? Mar 9, 2018 23:49 |
Yeah I was a little surprised that clang couldn't make a similar optimization when I played around with it, because both clang and rustc use LLVM as their backend. Needing to account for overriding operator new would make sense, though.
|
|
# ? Mar 10, 2018 00:32 |
Ooh, check it out: I wrote the equivalent in C, and both clang and gcc successfully turn it into a simple comparison. Compilers are so ludicrously cool.
|
|
# ? Mar 10, 2018 01:07 |
|
It's like if a clown could literally barf out Visio diagrams
|
# ? Mar 10, 2018 01:53 |
|
Looks like someone's not an enabler
|
# ? Mar 10, 2018 02:32 |
|
Can't board the Agile Release Train™ with that attitude.
|
# ? Mar 10, 2018 02:42 |
|
I was trying to refactor some code in the embedded project I work on. It was a messy affair; massive, over-generalized functions that basically represent actions to perform in response to messages coming over the ethernet connection to the outside. What was giving me the most trouble was keeping the error reporting all in place without having ridiculously long function signatures. It reports various errors based on whether the number of arguments passed with the command are correct or in the correct amount. After I finally settled on some compromises I went to give it a test run. All the errors were caught correctly but... none of the error messages were right. Well, that's not entirely accurate. They correctly stated what was wrong but they weren't the error messages I was expecting. What's that? The parsing step before this step actually catches all of these errors in the first place, so none of this error code runs, or has probably ever run? Just as a bonus: The architecture of the main program involves over a dozen singletons that all expose a bunch of public data members, which are all instances of the same template class, which is basically a jumbled mess of optional callbacks and subscriptions wrapping a single value. No, we don't have unit tests, why do you ask?
|
# ? Mar 10, 2018 18:32 |
|
Klades posted:embedded project Klades posted:No, we don't have unit tests, why do you ask? sounds about right
|
# ? Mar 10, 2018 20:25 |
|
Bruegels Fuckbooks posted:isn't that present tense? i mean, facebook did move from "Move fast and break things" to "Move Fast With Stable Infra," and google has progressed to actually supporting products for longer than a year before the programmers get bored, but job postings are still slobbering all over the agile bullshit, and the visionaries at my company decided to take the SAFe agile poo poo seriously so within the past two weeks, my inbox has been clogged with diagrams that look like: It's probably an acceptable diagram, except it's targetted to managers 2+ levels above the regular code-writing developers.
|
# ? Mar 10, 2018 22:20 |
|
pigdog posted:It's probably an acceptable diagram, except it's targetted to managers 2+ levels above the regular code-writing developers. its an acceptable diagram to explain to terry davis the schizophrenic os guy what agile is
|
# ? Mar 11, 2018 00:05 |
|
bob dobbs is dead posted:its an acceptable diagram to explain to terry davis the schizophrenic os guy what agile is It's larger than 640x480, so no
|
# ? Mar 11, 2018 10:47 |
|
a hot gujju bhabhi posted:Anyway, I finally have a coding horror to share. The place I work at unfortunately had a team of very incompetent developers who would do all kinds of crazy poo poo, and I've been meaning to find a tidy snippet without too much business specific stuff in it so I could post it here: If the AutoMapper guy ends up in hell when he dies it will just be an endless stream of poo poo like this that people have done with it.
|
# ? Mar 11, 2018 16:49 |
|
pigdog posted:It's probably an acceptable diagram, except it's targetted to managers 2+ levels above the regular code-writing developers. Can you explain why/how the diagram is acceptable? It looks like complete nonsense to me
|
# ? Mar 11, 2018 21:41 |
|
We do a safe-ish PI process. It's fine. We get to actually plan out the architecture of a new service before we start writing it but without all the overhead of waterfall.
|
# ? Mar 11, 2018 21:45 |
|
QuarkJets posted:Can you explain why/how the diagram is acceptable? It looks like complete nonsense to me managers like complicated-looking diagrams and aren't going to actually read the words or check if the arrows mean anything
|
# ? Mar 11, 2018 21:49 |
|
QuarkJets posted:Can you explain why/how the diagram is acceptable? It looks like complete nonsense to me I was confused as well but then I read "implementing 1 2 3" at the bottom, and was like oh it all makes sense now.
|
# ? Mar 11, 2018 21:51 |
|
I'm the scrum master, dressed up as a referee for Halloween Which one of you is the RTE dressed up as a train conductor? Can we go trick-or-treating together?
|
# ? Mar 11, 2018 21:58 |
|
Oh whew I was worried that there might not be any quality in this process but there it is, in the bottom right. Glad to know that the quality is built-in, wouldn't want to accidentally make the product lovely!
|
# ? Mar 11, 2018 22:00 |
|
QuarkJets posted:Oh whew I was worried that there might not be any quality in this process but there it is, in the bottom right. Glad to know that the quality is built-in, wouldn't want to accidentally make the product lovely! You seem to have built-in quality but do you have any core-values? It looks like this: I almost forgot it in my last project.
|
# ? Mar 11, 2018 22:20 |
|
QuarkJets posted:Can you explain why/how the diagram is acceptable? It looks like complete nonsense to me It looks like the managerial equivalent of writing obfuscated code for job security.
|
# ? Mar 11, 2018 22:54 |
|
I like the implication that the diagram took 10 years to make
|
# ? Mar 12, 2018 01:14 |
|
Steve French posted:I like the implication that the diagram took 10 years to make Give them another 10 and they'll be ready to start the first sprint.
|
# ? Mar 12, 2018 01:24 |
|
Waterfall is a boogeyman made up by the snakeoil salesmen peddling agile to give a reason to companies why they didn't need to hire better managers/leads/developers, and instead just needed to hire me to teach you agile What is wrong with creating requirements for your thing, designing it, building it, testing it, and maintaining it? It's not even a good strawman but they still made it seem worse than Hitler.
|
# ? Mar 12, 2018 02:07 |
|
It's a simple idea: you want to minimize the amount of time that elapses between making a mistake and discovering that mistake, so that it's cheaper to fix. Mistakes can happen during requirements gathering, design, and implementation. There are efficient ways to verify that an implementation conforms to requirements, but the only way to verify that requirements conform to user need is by putting it in front of a user, unless of course you're that rare and lucky developer whose users are capable of fully and accurately specifying their own needs. My head hurts if I look at that chart too much, but it seems to be more about corporate governance than about actually doing work.
|
# ? Mar 12, 2018 02:25 |
|
Captain Cappy posted:Waterfall is a boogeyman made up by the snakeoil salesmen peddling agile to give a reason to companies why they didn't need to hire better managers/leads/developers, and instead just needed to hire me to teach you agile Nothing as long as those requirements never change, designers and developers understand those requirements perfectly, and testers actually remember those requirements when they’re testing.
|
# ? Mar 12, 2018 02:38 |
|
Captain Cappy posted:Waterfall is a boogeyman made up by the snakeoil salesmen peddling agile to give a reason to companies why they didn't need to hire better managers/leads/developers, and instead just needed to hire me to teach you agile Unironic agilefall
|
# ? Mar 12, 2018 02:41 |
|
Ochowie posted:Nothing as long as those requirements never change, designers and developers understand those requirements perfectly, and testers actually remember those requirements when they’re testing. You forgot to assume that the requirements were accurate in the first place.
|
# ? Mar 12, 2018 02:46 |
|
Agile is Prototyping for Dummies with a bunch of unnecessary rules tacked on to justify hiring a consultant, Change My Mind
|
# ? Mar 12, 2018 03:01 |
|
Captain Cappy posted:Agile is Prototyping for Dummies with a bunch of unnecessary rules tacked on to justify hiring a consultant, Change My Mind Agile is just do things iteratively, you're describing scrum. And yeah when it gets dogmatic about constant rapid user-facing feature delivery to the exclusion of all else that's a fair criticism of it
|
# ? Mar 12, 2018 03:13 |
|
speng31b posted:Agile is just do things iteratively, you're describing scrum. And yeah when it gets dogmatic about constant rapid user-facing feature delivery to the exclusion of all else that's a fair criticism of it Agile is just [Thing I Like About Agile, Not Other Things I Do Not Like About It].
|
# ? Mar 12, 2018 03:20 |
|
https://twitter.com/PHP_CEO/status/664237197365796864
|
# ? Mar 12, 2018 03:20 |
|
Captain Cappy posted:Agile is just [Thing I Like About Agile, Not Other Things I Do Not Like About It]. Yeah, things don't have real meanings you can verify with a little quick googling.
|
# ? Mar 12, 2018 03:25 |
|
speng31b posted:Yeah, things don't have real meanings you can verify with a little quick googling. https://en.wikipedia.org/wiki/Agile_software_development This is a long rear end wiki page for "just do things iteratively".
|
# ? Mar 12, 2018 03:26 |
|
DaTroof posted:It looks like the managerial equivalent of writing obfuscated code for job security. I take it you've never watched an organization pay Oracle to deploy Peoplesoft for them? Two years and a million dollars in they were still "requirements gathering." Captain Cappy posted:Agile is Prototyping for Dummies with a bunch of unnecessary rules tacked on to justify hiring a consultant, Change My Mind That's why you should do agile and not Agile. Find a lightweight process that works for your organization. It should involve shipping imperfect solutions and iterating from there -- no consultants needed. If you're writing real-time software for aircraft flight control or pacemaker firmware, your process may have to be different, but your web-app doesn't fall into that category. The only thing most businesses need 100% right the first time (and even then, not really) is accounting and for that you should have just bought Quickbooks Pro.
|
# ? Mar 12, 2018 03:26 |
|
|
# ? May 25, 2024 13:16 |
|
TooMuchAbstraction posted:You forgot to assume that the requirements were accurate in the first place. How about that. Better get the change orders ready.
|
# ? Mar 12, 2018 04:27 |