|
Factor Mystic posted:The WOW64 hacks are actually on-topic
|
# ¿ Jul 31, 2009 18:48 |
|
|
# ¿ Mar 28, 2024 13:12 |
|
Incoherence posted:Clearly the third option is FileNotFound. I'm surprised it took this many posts to reach that.
|
# ¿ Oct 11, 2009 07:12 |
|
From some old LaTeX code I wrote:code:
|
# ¿ Mar 10, 2010 00:31 |
|
pseudorandom name posted:
Content: I'm in the process of rebuilding an ASP/Access website with a modern one built on ASP.NET MVC and SQL Server. This function more or less sums up the original programmer. Really great guy, I mean no offense to him by posting this here, but this is definitely babby's first CMS: code:
Also almost the entire website is shoehorned into one single database type. Not one table with hundreds of columns, but the "article" table was repurposed to do almost everything. Article summaries can be image URLs, article subtitles can be category names, article text can be a link destination. There's nothing really horrifying about this code, just some perplexing design decisions
|
# ¿ Apr 23, 2010 06:38 |
|
shrughes posted:and a reliance on compiler optimizations that change big-O properties of the code Wait, what?!
|
# ¿ Jun 2, 2010 04:01 |
|
Maybe someone specified "dark green" and the developer just picked the default implementation and left the separate declaration in case it needs to be changed?
|
# ¿ Aug 29, 2010 01:27 |
|
The real horror is that you KNOW that at some point it has the information in discrete enough components to emit well-formed XML. In fact, it may have done that at one point in its lifetime.
|
# ¿ Sep 13, 2010 23:48 |
|
Janin posted:"DSL" is what Ruby people call libraries If this is true then my god this is the biggest horror in the thread
|
# ¿ Oct 2, 2010 14:07 |
|
Monkeyseesaw posted:We need a language where the only data type is a string and when you do non-string operations like arithmetic it converts it to some internal representation, does the bit shuffling, and returns the result as a string. All functions are simply extending the string type. Extend INTERCAL to support Unicode
|
# ¿ Nov 13, 2010 07:40 |
|
code:
|
# ¿ Sep 11, 2011 23:47 |
|
w00tz0r posted:"Forward compatibility is easy, all Microsoft products are completely forward compatible. I can write a program on Windows Vista and have it run on Windows 95. The only thing that broke forwards compatibility is UAC."
|
# ¿ Oct 20, 2011 09:04 |
|
http://forums.silverlight.net/t/240580.aspx/1?126+000+lines+of+code+System+OutOfMemoryExceptionquote:Hi,
|
# ¿ Oct 27, 2011 16:46 |
|
This one threw me for a couple of days code:
|
# ¿ Dec 17, 2011 05:25 |
|
Yep the C# compiler accepted it just fine. Initially there was only one signature, the first, so I didn't catch the mistake brewing when I refactored it to add the second form.
|
# ¿ Dec 18, 2011 11:39 |
|
What's that quote again about informally-specified, bug-ridden LISPs?
|
# ¿ Jan 28, 2012 11:14 |
|
tef posted:also use WHILE .. ENDWHILE etc http://php.net/manual/en/control-structures.alternative-syntax.php PHP is designed for use as a templating language. Ergo, it is useful to cut down on the number of braces in views where possible, as they add unnecessary clutter. A Good Feature.
|
# ¿ Mar 6, 2012 12:49 |
|
bucketmouse posted:I found out today that Games' favorite cool OCD internet guy had published code. It's kind of terrifying and kind of Documenting magic numbers automatically makes him a better programmer than some I've worked with. code:
|
# ¿ Aug 11, 2012 00:25 |
|
Wheany posted:Don't loving start. If I get to define a strict coding style I will mandate the use of U+180E, MONGOLIAN VOWEL SEPARATOR, as the only valid indentation character.
|
# ¿ Aug 15, 2013 16:58 |
|
Internet Janitor posted:One of the strangest behaviors I have observed in lab courses is a behavior I call "soup programming", in which students read a problem description, add several loops, conditionals and variables to a procedure body and then proceed to spend half an hour rearranging those elements to try to get the result to compile, as if programming were a matter of selecting the correct ingredients and stirring. Usually when I help students who are doing this I tell them to step away from the keyboard and try to explain the problem and their approach to solving it verbally- if you can't explain something to a person you can't explain it to a computer. I found that students like that often would take that same approach to math and physics problems too. I turned down a couple of offers to become a CS tutor because I knew that kind of person would do nothing but frustrate me.
|
# ¿ Oct 28, 2013 18:06 |
|
Welp, I'm off to document a class with 181 public methods.
|
# ¿ Nov 1, 2013 16:03 |
|
Manslaughter posted:You guys are so lucky, you actually have things in your exception blocks At my last job we had: code:
code:
|
# ¿ Jan 22, 2014 01:25 |
|
Found this at the top of one of our core ETL scripts recently.Perl code:
|
# ¿ Nov 4, 2014 03:27 |
|
Fergus Mac Roich posted:I wonder if anyone does horrible things with the C Preprocessor while writing in languages that aren't C, as in running a non-C source code file through gcc -E as part of a compilation step. I once built a static HTML site using the preprocessor. I was crunched for time and didn't have time to learn something like Jekyll.
|
# ¿ Nov 30, 2016 06:22 |
|
http://www.audioasylum.com/forums/pcaudio/messages/11/119979.htmlquote:found that a function called memcpy was the culprit, most memory players use memcpy and this is one of the reasons why memory play sounds worse ie digital sounding. Fortunately there is an optimised version of memcpy from http://www.agner.org/optimize/, using this version removes the hard edge produced by memcpy. the other thing I did was to close the file after reading into the buffer.
|
# ¿ Apr 21, 2017 19:42 |
|
NihilCredo posted:EDIT: in totally unrelated news, is this attribute normal for Angular? My (admittedly outdated) recollection is that ng-init is an override for initializing values that for some reason can't be done inside a controller. Using it to provide configuration at the root of the application smells of a poor application architecture.
|
# ¿ Apr 27, 2017 20:59 |
|
|
# ¿ Mar 28, 2024 13:12 |
|
Who even needs a debugger? Just write your code correctly the first time.
|
# ¿ Feb 25, 2022 21:30 |