|
In today's edition on how not to launch a product: http://nikcub.appspot.com/posts/yahoo-axis-chrome-extension-leaks-private-certificate-file
|
# ? May 24, 2012 08:02 |
|
|
# ? May 17, 2024 14:48 |
|
dis astranagant posted:Like whoever invented unify and surrender algorithms. What're these?
|
# ? May 24, 2012 17:39 |
|
Maybe it's this? http://c2.com/cgi/wiki?SlowSort
|
# ? May 24, 2012 17:42 |
|
floWenoL posted:In today's edition on how not to launch a product: Every single time I release something into the wild I'm biting my nails wondering if I made some horrific fuckup like this.
|
# ? May 24, 2012 17:44 |
|
code:
|
# ? May 24, 2012 23:34 |
|
w00tz0r posted:
idgi What does the fact that the Derived has a Base as a private member have to do with operator overloading?
|
# ? May 25, 2012 00:24 |
|
Open Access for the EDA industry is a family of C++ classes (I'd call it an API but that's way too generous) that has every class, big and small, overload all of its operators. And that's just one of its wonderful traits. Using it and getting really familiar with the documentation was actually an opportunity for me to study this fantastic psychological footprint of the minds of EE professionals as pressed into the world of software libraries. Despite the (laughably ambiguous) name, Open Access is about as closed source and black box-y as it gets outside of SaaS. I don't know if it comes from working in the IP Cold War universe of circuits and semiconductors, or just the hardware mindset that every conceivably possible use case must be rigidly defined, measured, and controlled right down to the last mosfet because you can't exactly make a git pull request to the mass designers after the fact. Either way it truly is OOP, and "Let's openly standardize X for this industry!", as understood by people who live and breathe in that world.
Bhaal fucked around with this message at 00:44 on May 25, 2012 |
# ? May 25, 2012 00:41 |
|
Zombywuf posted:idgi Agreedo.
|
# ? May 25, 2012 01:10 |
|
why choose between composition and inheritance when you can just do both
|
# ? May 25, 2012 01:41 |
|
Zombywuf posted:idgi Maybe I'm missing something, but: code:
|
# ? May 25, 2012 02:08 |
|
Not even Peter Norton can undo deletion this strong.code:
|
# ? May 25, 2012 08:50 |
|
Oh sweet Satan in hell, what have I done?Python code:
|
# ? May 25, 2012 15:50 |
|
Jonny 290 posted:Not even Peter Norton can undo deletion this strong. There is non-PHP syntax highlighting now. Perl code:
|
# ? May 25, 2012 17:00 |
|
More internal code from VDSI. All these guys are are copy/paste programmers. I love the three different platform detection mechanisms, and junk like this. Yes, the file name really is "functions.js". There are a total of twenty or thirty different JS files.
|
# ? May 25, 2012 21:15 |
|
Not a coding horror per se but I lost a debate with a colleague today of whether to either change our app's docroot dir from the default vendor-supplied name www to wwwroot, or to change the dir in httpd.conf. I lost. This is on 5-6 actual sites that run a lot of dynamic content, so this small change actually has a ripple affect that requires changing a LOT of config files and db settings. His argument was that he didn't want to trouble IT..after we'd already sat down together and had a meeting to decide this. So after I spent half a day redoing about six git repos and breaking each child-site into their own repos (stupid), and sent a note to IT with instructions. (setup httpd this way, do a git clone in this dir) made it pretty childproof all in all. He comes back to me and says "hay I already made this dirs for you my work is done." complely ignoring the prior meeting we'd had. So My colleague really pushed for this and used his weight to get his way and basically mandated we have to use wwwroot. I then managed to trick him into agreeing to do the work to change over the sites. That was this morning. He's been at it all day, made 11 pushes to 6 different repos and done all sorts of work on the development server to try and coax it into working. I'm sitting back and having a beer right now while he struggles to get it working on the Friday before Memorial Day. Oh and then a client that had fired me a while back called me this morning and needed me to rescue their domain because their new web agency let it expire and nobody noticed. It's been a solid, solid day.
|
# ? May 25, 2012 22:25 |
|
I would've been tempted to just symlink wwwroot to www.
|
# ? May 25, 2012 23:48 |
|
Optimus Prime Ribs posted:Maybe I'm missing something, but: That would be it, yep. I missed the operator Base& several times while trying to figure out why the program even compiled.
|
# ? May 26, 2012 00:56 |
|
http://jsonplus.com/ and the code why
|
# ? May 28, 2012 16:00 |
|
There's also https://github.com/aseemk/json5
|
# ? May 28, 2012 16:50 |
|
I think I found out why our servers are running so poorly intermittently:PHP code:
There is one of those for every day going back to January 10th, 2011. Who the hell thought this was a good idea?
|
# ? May 28, 2012 17:18 |
|
It's like some sort of ghetto analytics, only without anything to analyze.
|
# ? May 28, 2012 17:24 |
|
The log you pasted only has 2-4 hits every minute. If your server is having poor performance, it's not because of that piece of code.
|
# ? May 28, 2012 20:42 |
|
The log I linked to wasn't from one of our live events; pretty sure that was just us testing. Here's one that is from a live event: http://pastebin.com/MGGwdg0L The full/complete log file is 40,000 lines at 2.3MB of that. edit: For the record I'm sure there are a myriad of other problems that are causing our servers to run poorly.
|
# ? May 28, 2012 20:57 |
|
Internet Janitor posted:There's also https://github.com/aseemk/json5 Does http://publib.boulder.ibm.com/infocenter/wsdatap/v3r8m1/topic/xi50/convertingbetweenjsonandjsonx07.htm#wq18 count?
|
# ? May 28, 2012 21:42 |
|
Internet Janitor posted:There's also https://github.com/aseemk/json5 I want to edit that README so it's just a link to yaml.
|
# ? May 28, 2012 21:46 |
|
Internet Janitor posted:There's also https://github.com/aseemk/json5 give it time, someone will make json with schemas and namespaces
|
# ? May 28, 2012 22:23 |
|
To me, this feature request exemplifies everything that is wrong with JSON5:quote:Support octal and/or hex numbers? "Hey, I don't see any use for this feature but maybe we ought to put it in!"
|
# ? May 28, 2012 22:39 |
|
yaoi prophet posted:I want to edit that README so it's just a link to yaml. Yeah wow, that example is valid YAML if you change the comments to use #.
|
# ? May 28, 2012 23:08 |
|
I hope the comment system doesn't get abused to embed language-specific directives, like it did for YAML (and originally for JSON, which is why Crockford took it out)
|
# ? May 28, 2012 23:12 |
|
tef posted:give it time, someone will make json with schemas and namespaces This is my favorite thing: http://publib.boulder.ibm.com/infocenter/wsdatap/v3r8m1/index.jsp?topic=%2Fxi50%2Fconvertingbetweenjsonandjsonx05.htm
|
# ? May 29, 2012 02:26 |
|
JSONx makes a whole lot more sense when you remember that standard SQL has XML types and functions.
|
# ? May 29, 2012 03:05 |
|
tef posted:give it time, someone will make json with schemas and namespaces http://tools.ietf.org/html/draft-zyp-json-schema-03
|
# ? May 29, 2012 03:08 |
|
XML code:
|
# ? May 29, 2012 05:19 |
|
sorry to double-post, but have to vent: three times now, I've worked with another web developer who uses SASS or SCSS. Awesome, I think, and then I find that they eschew mixins (even the guy who uses Compass ), variables, functions, extend, imports, or any of the other awesome useful features of SASS just for one thing: so they can write style sheets that are hopelessly coupled to markup: CSS code:
|
# ? May 29, 2012 05:37 |
|
Deus Rex posted:
It looks like they just want their CSS to look like the PHP they write.
|
# ? May 29, 2012 05:51 |
|
Most horrors here are web related. Is that because the majority of the coding is for the web these days, or just the vast majority of the horror coders?
|
# ? May 29, 2012 09:27 |
|
Internet Janitor posted:To me, this feature request exemplifies everything that is wrong with JSON5:
|
# ? May 29, 2012 09:32 |
|
tef posted:give it time, someone will make json with schemas and namespaces And macros. XML code:
|
# ? May 29, 2012 12:19 |
|
(I know of these being added ) json is pretty much the "gently caress it, we'll do it live" of serialisation formats
|
# ? May 29, 2012 12:42 |
|
|
# ? May 17, 2024 14:48 |
|
Beef posted:Most horrors here are web related. Is that because the majority of the coding is for the web these days, or just the vast majority of the horror coders? I think it's two things. One, the barrier to entry for web coding is a lot lower, due to ubiquity and ease. A yokel might not need to code a word processing application, or have the ability to, but give him a PHP book and a few lines of code and suddenly he's got a marginally useful webpage full of SQL injections. Two, with Javascript, the code is exposed to us, so we can mock code written by others instead of just code we happen upon from coworkers. I'm an idiot, so what is bad about this? That he didn't know why he was adding it?
|
# ? May 29, 2012 14:32 |