|
Jethro posted:
I've seen that a lot in hardware, it makes a lot of sense in that domain. But I really hope that nobody's moving from HDL's to PHP, I can't imagine the horribly broken code that would come from that background.
|
# ¿ Mar 29, 2008 05:11 |
|
|
# ¿ Apr 28, 2024 05:48 |
|
such a nice boy posted:Is that a lesbian porn button under the YouTube button? And why is there a Shakespeare button? Is that to solve the "million monkeys at a million typewriters" problem? Scaevolus posted:This is sarcasm, right? please?
|
# ¿ Mar 31, 2008 23:41 |
|
Flobbster posted:Objective-C has had this so-called "monkeypatching"/extension methods for about 100 years now in the form of categories, and it's about time other languages like C# have decided that it's a feature worth having. I thought the whole deal with "monkeypatching" was overriding existing methods. So for example, if I want to change String.length() to always return 42 or rand() or something I can do it and make it a horrible mess to debug whenever that library is included. I work in a language with the constructs "is also" and "is only". So if you've declared a structure and I want to add to it, it's as easy as saying "your_struct is also {...};" If I want to blow it out entirely and replace it, it's "your_struct is only {...};" Same with functions, objects, anything. I can just attach another file and go change everything. The runtime debugger builds up all the code and figures out the also's/only's, it's one of the only ways to see what the hell is actually included and running. edit: I forgot "is first". "is also" adds to the end of whatever was there before, "is first" adds to the top. JawnV6 fucked around with this message at 12:55 on Aug 31, 2008 |
# ¿ Aug 31, 2008 12:45 |
|
Gazpacho posted:Problem: A procedure is too long. Naw I'm totally sure he'll remember the supply fee discount on small orders in the re-write since's it is adequately documented outside of the code.
|
# ¿ Jan 16, 2013 22:25 |
|
ninjeff posted:Randomly displaying "poo poo!!!" to the user because of a database error is a pretty big (and hilarious) horror. Cocoa Crispies posted:nobody wants a web framework that is also an IRC bot framework, especially when the plumbing for IRC imposes non-sensible constraints on the web parts.
|
# ¿ Jan 24, 2013 00:46 |
|
Otto Skorzeny posted:As satisfying as it may be, 1/3 of them will be aligned, so you'll take a huge alignment and luck hit to do this. Gems should be plentiful, why would luck matter? And if alignment is an issue, polymorphism should be applied liberally.
|
# ¿ Jan 24, 2013 17:31 |
|
1337JiveTurkey posted:This thread keeps things anonymous for the most part. I think that makes it significantly different from posting something that identifies the author in a public manner. Even if she does improve her coding style the comments will still be there which is unfair to her if potential employers google her in the future. The response blog seems much more brand-damaging than the square peg haters.
|
# ¿ Jan 25, 2013 20:11 |
|
1337JiveTurkey posted:She can at least delete that herself. But it's infused with... pride? It just seems like there's hordes of employers who wouldn't bat an eye at winding up a javascript engine just to bat some text around, while documentation of shattering at anonymous, unfounded internet criticisms might be more problematic.
|
# ¿ Jan 25, 2013 23:40 |
|
I didn't think we had any further depths to sink to after roll-your-own crypto.
|
# ¿ Mar 18, 2013 21:29 |
|
What didn't you know you needed?
|
# ¿ Apr 16, 2013 07:26 |
|
hobbesmaster posted:Its xchg eax, eax of course! The best is when you pass xor swap two pointers to the same location which will silently zero it out.
|
# ¿ May 7, 2013 16:44 |
|
zergstain posted:our xmalloc function which calls malloc in an infinite loop until malloc succeeds. hey I found a horror
|
# ¿ May 9, 2013 18:04 |
|
hobbesmaster posted:What a good idea, why lets just make every library function that can't malloc something just abort() the program! Absolutely nothing could possibly go wrong with this approach! zergstain posted:I guess I should ask why this is done this way.
|
# ¿ May 9, 2013 19:52 |
|
Novo posted:I hear this all the time, and yet vim purists act like it's everyone else who can't adapt to unfamiliar things. My current IDE literally does not have options to move around in the code like vim provides by default. It's not a matter of I can't get used to it, it's that the IDE offers no support for the thing I wanted to do and I have to go without. As a trivial example, in vim * will search for the current word in the same file. Shift-F12 does something similar and comes up with every instance of that variable across the project, a half step up even. But vim also has %, which finds the matching brace for the one under the cursor, and VS simply doesn't have an equivalent.
|
# ¿ Jun 4, 2013 18:39 |
|
pseudorandom name posted:Ctrl+] Shinku ABOOKEN posted:Also: Windows style navigation and selection (Arrow keys+Modifiers+Home+End+PgUp+PgDn) > Your bespoke navigation system every single time (same for Emacs and whatever else is there). Shinku ABOOKEN posted:It's OK to love vim just don't claim it's superior. Zhentar posted:Ctrl+F
|
# ¿ Jun 4, 2013 18:59 |
|
Ithaqua posted:But VS automatically highlights the matching brace, so there's no need. Which is entirely unhelpful when that matching brace is offscreen, or I want to use a regex to replace text in this function alone, or... e: it also only highlights when the cursor is 'outside' the brace
|
# ¿ Jun 5, 2013 01:15 |
|
ASSERT()
|
# ¿ Jun 5, 2013 23:51 |
|
And today I learned that c++ lets you overload the array operator.
|
# ¿ Jun 18, 2013 18:02 |
|
Look the obvious solution is to chuck out these untrusted mechanized "compilers" and go back to humans reading HLL's and writing equivalent assembly.
|
# ¿ Jun 20, 2013 22:11 |
|
Zaphod42 posted:Wow. Every part of that is solid loving gold. I really love their hack solution too, and when it gets to garbling the data to avoid null terminators in the EULA string, that's just the best coding horror I've ever read. Slammer had to do the same thing. Didn't fix it up after, but it's pretty common to craft a payload to avoid a null byte.
|
# ¿ Jun 25, 2013 23:31 |
|
Your IDE doesn't manage whitespace for you? What a primitive environment.
|
# ¿ Jul 8, 2013 22:07 |
|
fascinating
|
# ¿ Jul 9, 2013 15:42 |
|
i'm tracking milliliters in my camelCase code, should it be targetML, targetmL, targetMl, or targetml???
|
# ¿ Jul 10, 2013 00:37 |
|
nah just Class educated
|
# ¿ Jul 25, 2013 21:02 |
|
So don't do that.
|
# ¿ Aug 14, 2013 19:24 |
|
Huh, I could use a library, glue poo poo together, and be done today. Oooooor I could rewrite all the functionality myself and be entertained all week!!
|
# ¿ Aug 15, 2013 18:10 |
|
How accessible were those tools in 1990? That's when the super NES came out, and most of those games were still hand-rolled asm.
|
# ¿ Sep 4, 2013 17:52 |
|
You can go too far off that end as well, you know the type of programmer who went from perl to php to ruby to rails to django to flask to python to never learning how to do one thing well, just how to tweak the language/framework du jour. I can see how a constrained environment that had already been burned on tooling once would eschew it. All it takes is another debug that root-causes to an error in the mnemonics that takes a day or two to sour on the whole proposition.
|
# ¿ Sep 4, 2013 22:03 |
|
Plorkyeran posted:When trying to find out why a blob of code is doing some non-obvious thing, how often do you find the source control history to be of use? teach you not want don't provide
|
# ¿ Sep 9, 2013 18:36 |
|
Pilsner posted:Again, I don't see a problem with doing checkins the strict way, I just don't think it's worth the effort for me, nor do any of my colleagues ever miss it. I'm all for reacting to smells and annoyances, but there just aren't really any in our company with regards to source control, in spite of the old fashioned way we do things. It's really weird to see this all phrased in terms of "effort" because jfc you typed out 20 commit's worth of messages defending doing it the lovely way, which you weren't presumably paid to do. Nobody's sitting there at the machine limit of efficiency. We're all somewhere at the 5-10% mark in terms of how much code could actually be wrung out of us. Typing two sentences about your state of mind once a feature is zero effort amortized across a project. If you're just using version control to make safe checkpoints once a day, no poo poo you never look back at them. You don't have a reason to since they're worthless apart from giant fuckoff failures. You're also not, as Desert Rose pointed out, doing small one-off experimental builds with the confidence that you can back it all out quickly.
|
# ¿ Sep 9, 2013 23:55 |
|
law.l
|
# ¿ Sep 24, 2013 19:39 |
|
Uh, considering they're both Korean?
|
# ¿ Sep 24, 2013 20:00 |
|
No Safe Word posted:Clearly they aren't willing their companies to success, PASS If someone's on year 9 of every company failing within a year we're not dinging them for lack of supernatural ability. It's their selection process.
|
# ¿ Sep 29, 2013 15:11 |
|
Yeah, cramming a bunch of boilerplate in your face is still totally necessary in 2013. Those simple languages? The ones built for learning? Pfah, they lack xml RPC mechanisms and will leave you high and dry.
|
# ¿ Oct 1, 2013 22:22 |
|
ManoliIsFat posted:That's true. That Assert failing may be indicative of larger problems, like up being down, day being night, 2nd coming of Jesus kinda stuff. Well in 10 days we'll be cursing the bank software authors that pushed these halfassed assumptions into production.
|
# ¿ Oct 7, 2013 23:32 |
|
Yeah the C preprocessor is trivial to extend.
|
# ¿ Oct 12, 2013 00:40 |
|
Enclassulate
|
# ¿ Oct 18, 2013 19:33 |
|
https://github.com/YaroslavGaponov/node-jvm Yes. We needed this.
|
# ¿ Oct 30, 2013 19:59 |
|
Thank god for the little bumps in the lines. Can't imagine how you'd trace them if they just went point to point.
|
# ¿ Nov 6, 2013 17:06 |
|
|
# ¿ Apr 28, 2024 05:48 |
|
I'm pretty sure working with PA would have downsides not included in "bad pay/terrible hours"
|
# ¿ Nov 26, 2013 21:09 |