|
Aleksei Vasiliev posted:Alternatively, consider using the WCF Integration Pack for Enterprise Library. It contains classes that you can use directly to enable storage of and access to the container in WCF applications, and it can be used to automatically populate dependencies in your classes. Coding horrors: Proggit/HackerNews reposts
|
# ¿ Jan 15, 2011 00:45 |
|
|
# ¿ May 17, 2024 16:15 |
|
This is more of an API/OS/hardware horror than a coding horror, but I stumbled across this set of APIs today, and it amazed me how easy it was to call the functions and make awesome applications even more awesome: http://msdn.microsoft.com/en-us/library/dd692964(v=VS.85).aspx I'd like to write a WinAmp plugin and feed the music to this API
|
# ¿ Jan 27, 2011 01:31 |
|
zootm posted:As much as it should, I would be impressed if the chapter mentions the x87 weirdness that causes this particular issue. Whoever thought it would be a good idea that your value can change when it moves from a register to memory ought to be shot. I don't think that the Java problem is the same x87 weirdness as PHP. Their algorithm is different (approximating toward the target from the other direction), and also it seems to work (not work) on 32-bit and 64-bit hardware.
|
# ¿ Feb 1, 2011 19:25 |
|
Lysandus posted:http://docs.blackberry.com/en/developers/deliverables/5716/Using_static_vars_for_strings_447038_11.jsp Oh god, this is a Blackberry JVM implementation only thing, right?
|
# ¿ Feb 15, 2011 21:19 |
|
zootm posted:I don't disagree with that in general but due to Java's general suckiness, passing in a dynamic value like this as a parameter is non-trivial. Unless you want to pass in an implementation of some obscene interface called BlockDispersalCalculator or something, you're stuck. It is a language limitation though, what you suggest is generally sensible. Correct me if I'm wrong, but by passing in a dynamic value you don't mean passing in an enum value do you?
|
# ¿ Feb 17, 2011 15:47 |
|
ryanmfw posted:http://sourcesale.com/projects/2357-Encryption-Static-Library Hah, that's awesome. Here's a preview of the code from that page code:
|
# ¿ Feb 21, 2011 18:49 |
|
gibbed posted:Well yes, but this self-implemented junk is terrible. It's like, yeah I kinda know how hash functions work, but I sure as poo poo won't try to write one myself!
|
# ¿ Feb 23, 2011 16:46 |
|
MrMoo posted:Thankfully inline assembler is no longer supported with Win64. Wait what?!
|
# ¿ Mar 25, 2011 18:35 |
|
pseudorandom name posted:We should all take note that CCP replaced YAF's stock user authentication mechanism with their own proprietary system, and thus they were the source of the problem, not YAF. I thought that it was YAF's fault that you could put Javascript/HTML/whatever in your signature, no?
|
# ¿ Apr 12, 2011 00:20 |
|
OddObserver posted:And if you do navigator.appName, you'll get 'Netscape'. Haha, that's like the cherry on top
|
# ¿ May 19, 2011 02:22 |
|
Zhentar posted:But there's also ConcurrentDictionary, which is a thread-safe dictionary for reading and writing. And reading from a ConcurrentDictionary is also lockless, which is pretty rad.
|
# ¿ May 24, 2011 20:24 |
|
Thel posted:Anything short of prepared statements is probably vulnerable to some form of SQL injection, it's just how much effort you want to put in to get past the validation. The real horror is the useless scope-creation/indenting code:
|
# ¿ May 25, 2011 23:34 |
|
From the IronPython mailing lists:quote:I have a large RE (223613 chars) that works fine in CPython 2.6, but
|
# ¿ Jun 2, 2011 00:25 |
|
yaoi prophet posted:So wait, he's assuming that every person is going to have a name in his corpus? That seems like a really bad assumption. He has replied, and I don't know if it excuses him: quote:I'm used to working with a full-featured
|
# ¿ Jun 2, 2011 00:46 |
|
Wheany posted:commented out code (checked in version control), I can't loving stand this when I see it.
|
# ¿ Jun 7, 2011 18:41 |
|
Scaramouche posted:Which part bugs you the most? For me it's the unexplained lines of code cluttering up the project when you already have a revision control system in place. The rare times I do it I put a date stamp and a one line explanation of why at least. No, this is fine, and I do it when it is like this: code:
|
# ¿ Jun 8, 2011 20:09 |
|
1337JiveTurkey posted:My last SVN commit was number 524193. My last changelist number committed was 685093
|
# ¿ Jun 10, 2011 01:33 |
|
Janin posted:21759446 Holy poo poo
|
# ¿ Jun 10, 2011 16:54 |
|
Janin posted:Well it's not like I'm by myself; plus, we use Perforce, not subversion. I think the current change rate is 20 commits per minute. Yeah, I cheated too, since we're on Perforce as well.
|
# ¿ Jun 13, 2011 20:22 |
|
Frozen-Solid posted:A huge number of our databases have horrible names that weren't changed from the original names on the mainframe. BOOKMASTER being one of them (or more accurately BOOKMST), which is what houses all of our MARC records for books we sell. The app that edits those records was also called the Bookmaster. So when making the new fancy 2.0 version I google image searched for bookmaster and found the Kingdom Hearts 2 character art. Now you've got splash screen material (seriously)!
|
# ¿ Jul 20, 2011 01:44 |
|
Dessert Rose posted:The best part is doing this to work around garbage source control standards. Even if you're being forced to use p4 or something, just put git on top of that. Hell, use git branches instead of pending changelists! Shut your mouth Perforce is awesome.
|
# ¿ Aug 30, 2011 23:29 |
|
Zombywuf posted:*implements threaded queue with a threaded queue* FYI, there is a ConcurrentQueue in .NET 4.0 for those of you who don't know: http://msdn.microsoft.com/en-us/library/dd267265.aspx
|
# ¿ Nov 14, 2011 19:25 |
|
|
# ¿ May 17, 2024 16:15 |
|
I came here to check out the latest in PHPLOLZ not to listen to a bunch of nerds spergin' out over terrible programming paradigms endlessly.
|
# ¿ Apr 23, 2013 04:54 |