Search found 835 matches

by Pesto
Tue Mar 01, 2011 3:35 am UTC
Forum: Coding
Topic: Extremely exceptional code; or abuse of exceptions in PHP
Replies: 12
Views: 2726

Re: Extremely exceptional code

I don't know that the exceptions are "used" for anything. I was modifying some code, which caused an exception to be thrown in some deep dark corner of the system. One of the existing tests failed and told me precisely from which file and on which line the exception was thrown. The only pr...
by Pesto
Tue Mar 01, 2011 2:11 am UTC
Forum: Coding
Topic: Extremely exceptional code; or abuse of exceptions in PHP
Replies: 12
Views: 2726

Extremely exceptional code; or abuse of exceptions in PHP

I'm working on a severely over-engineered system, where everything is broken into way too many classes, which interact with each other by changing the values of each others' public variables :x In the course of trying to track down an error, I ran across this pattern. try { // lots of code } catch(E...
by Pesto
Thu Feb 17, 2011 12:30 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0861: "Wisdom Teeth"
Replies: 116
Views: 28384

Re: 0861: "Wisdom Teeth"

Am I the only person ever NOT to have had major discomfort and/or loopiness after having my wisdom teeth removed? I just got a local anesthetic, no laughing gas, the dentist yanked and pulled for while, then I went home with some painkillers I never needed - and hydrocodone just doesn't seem to get...
by Pesto
Thu Jan 06, 2011 8:03 am UTC
Forum: General
Topic: The "How Have I Never Noticed That Before?" thread
Replies: 1141
Views: 200184

Re: The "How Have I Never Noticed That Before?" thread?

Anyone else ever noticed the luchador mask below thee MGM lion?

Spoiler:
Image
by Pesto
Sat Oct 09, 2010 7:46 pm UTC
Forum: Coding
Topic: RESTful APIs and non-CRUD operations
Replies: 12
Views: 11880

Re: RESTful APIs and non-CRUD operations

I'd make that GET instead of POST, because the request isn't about modifying a resource. Its results might indicate that a resource is in different state now than earlier, but it isn't causing the change. Except it is about modifying the resource. dnsStatus is a value stored in the database. Postin...
by Pesto
Fri Oct 08, 2010 9:08 pm UTC
Forum: Coding
Topic: RESTful APIs and non-CRUD operations
Replies: 12
Views: 11880

Re: RESTful APIs and non-CRUD operations

What resource would http://example.com/domainkeys/1234/verify represent? Edit: If the representation of a domain key looks like this... RSA: blah blah... Domain: foo.domainkey.example.com DNS status: No DNS record found Perhaps we could do it with a POST against http://example.com/domainkeys/1234/dn...
by Pesto
Fri Oct 08, 2010 4:57 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0803: "Airfoil"
Replies: 243
Views: 102455

Re: 0803: "Airfoil"

The explanation is wrong because the streamlines don't meet up after the trailing edge of the airfoil: http://www.youtube.com/watch?v=6UlsArvbTeo&t=0m17s Huzzah! Vindicated! The explanation that the two air streams would meet up at back of the wing never made sense to me, although I never openl...
by Pesto
Fri Oct 08, 2010 2:56 pm UTC
Forum: Coding
Topic: RESTful APIs and non-CRUD operations
Replies: 12
Views: 11880

Re: RESTful APIs and non-CRUD operations

If I were to be entirely anal about this, I'd probably have to use POST in some form, because I'm not sure the verify call would be idempotent. The verify call checks the validity of some outside resource, so there's no guarantee that multiple calls will result in the same resource state. For exampl...
by Pesto
Fri Oct 08, 2010 7:57 am UTC
Forum: Coding
Topic: RESTful APIs and non-CRUD operations
Replies: 12
Views: 11880

RESTful APIs and non-CRUD operations

A crude and inaccurate understanding of REST is that the various HTTP methods map to CRUD operations. I realize that REST != CRUD, but I'm still having trouble figuring out how to get non-CRUD operations into a RESTful API. Here's what I'm trying to do specifically. We're implementing an API to mana...
by Pesto
Fri Sep 10, 2010 9:11 pm UTC
Forum: Coding
Topic: coworker rants
Replies: 92
Views: 14624

Re: coworker rants

More source control fun. We've been developing in our own subversion branch for a couple months and are merging our code back. Now, subversion merges are painful enough as it is, but we have the added fun of there being a botched repository migration right in the middle of our project. None of the h...
by Pesto
Wed Sep 08, 2010 10:27 pm UTC
Forum: Coding
Topic: coworker rants
Replies: 92
Views: 14624

Re: coworker rants

Exactly. Not being able to access the system becomes very very fast.
by Pesto
Wed Sep 08, 2010 9:29 pm UTC
Forum: General
Topic: The "How Have I Never Noticed That Before?" thread
Replies: 1141
Views: 200184

Re: The "How Have I Never Noticed That Before?" thread?

My keyboard is completely lopsided. The main part of the keyboard is all the way to the left. Over on the right side is where all the arrow keys and the number pad are. I've been sitting with my keyboard centered in front of me, meaning my hands have constantly been squished over the left side of my...
by Pesto
Wed Sep 08, 2010 12:13 am UTC
Forum: Coding
Topic: coworker rants
Replies: 92
Views: 14624

Re: coworker rants

Grr. People on my team are screwing around in the repository again.

Someone deleted some files, and didn't know how to roll back a commit. Instead of asking for help, she added files back one by one, making commits without commit messages.
by Pesto
Fri Aug 27, 2010 10:01 pm UTC
Forum: Coding
Topic: The C Killer
Replies: 62
Views: 10151

Re: The C Killer

Xeio wrote:Var, why is it there? What does it do other than needlessly add a keyword? I can only assume something about making writing the compiler easier?

It stops people from naming variables "var" :D
by Pesto
Thu Aug 26, 2010 4:20 am UTC
Forum: Coding
Topic: The C Killer
Replies: 62
Views: 10151

Re: The C Killer

I see C as more of an OS language, not a language implementation language.

Edit: It would be nice to have a multi-level break and continue. That would work well as an extension to C.
by Pesto
Wed Aug 25, 2010 9:03 pm UTC
Forum: Coding
Topic: The C Killer
Replies: 62
Views: 10151

Re: The C Killer

You can write a string library that uses any format you want. Now use it in your programs. As far as you can tell, the string format is no longer part of the language. Ta-dah! That is just retrofitting a broken system. I'm looking for language constructs to make low level string handling easier and...
by Pesto
Wed Aug 25, 2010 8:27 pm UTC
Forum: Coding
Topic: The C Killer
Replies: 62
Views: 10151

Re: The C Killer

A whole new language certainly isn't needed. Maybe, maybe not. After doing some reading, I'm not a huge fan of having the string format be part of the language. I don't know how you'd change that without a new language. There are other low-level alternatives to C strings. If you're writing code at ...
by Pesto
Wed Aug 25, 2010 8:06 pm UTC
Forum: Coding
Topic: The C Killer
Replies: 62
Views: 10151

Re: The C Killer

But we're discussing what could kill C Just to be clear, I made the thread title provocative to generate discussion. Nothing will actually kill C. Just like all that COBOL that's grinding away somewhere, C is going to be around for ever. I'm just trying to brainstorm about the next evolution of sys...
by Pesto
Wed Aug 25, 2010 7:56 pm UTC
Forum: Coding
Topic: The C Killer
Replies: 62
Views: 10151

Re: The C Killer

There is a replacement for C -- the C1x draft standard. C is a beautiful language, and it isn't going away any time soon; I expect C to outlive any hip "modern" language out there. Keep your fads, I'll use what works. I love C, but I love it like an the dog you've had for twenty years who...
by Pesto
Wed Aug 25, 2010 1:13 am UTC
Forum: Coding
Topic: The C Killer
Replies: 62
Views: 10151

The C Killer

Okay, it's time. Time for the old guard to retire and for us all to step into the 21st century. It's time to replace C. If we were to design a new language from the ground up to fill the same niche as C, how would you like it to look? What would you want it to be able to do? What kinds of features c...
by Pesto
Mon Aug 23, 2010 10:16 pm UTC
Forum: Science
Topic: Young Earth Arguments
Replies: 26
Views: 4549

Re: Young Earth Arguments

Also, "Yet the nearby parts of our galaxy..."

What portion of our galaxy makes up "nearby"? What about all the supernovae in distant parts of the galaxy that we're unaware of, or were simply not included in those figures?
by Pesto
Sat Aug 21, 2010 5:16 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2036418

Re: Coding: Fleeting Thoughts

The different size integer fields are just integers with different numbers of bits. This page should have all the info you need.

http://dev.mysql.com/doc/refman/4.1/en/ ... types.html
by Pesto
Fri Aug 20, 2010 9:50 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2036418

Re: Coding: Fleeting Thoughts

FT: Would another name for a subversion repository be a sub'pository?
by Pesto
Fri Aug 20, 2010 8:08 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0782: "Desecration"
Replies: 101
Views: 25599

Re: "Desecration" discussion (#782)

Wait - Rob? Someone in-panel being addressed by name!? Is this a first for non-celebrities on xkcd? I swear to god, you people get more retarded with every comic... http://xkcd.com/746/ http://xkcd.com/672/ http://xkcd.com/631/ Okay, now I have to wonder. Who is Megan and why is Randall making so m...
by Pesto
Fri Aug 13, 2010 11:10 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2036418

Re: Coding: Fleeting Thoughts

Dammit, I need an IDE. Until now I've been developing in PuTTY windows using vim, and it has worked well enough. I have three windows open. One to write unit tests, one to write code, and one to run unit tests. That has been no problem. I had to open a fourth window for something I was doing and my ...
by Pesto
Fri Aug 13, 2010 10:02 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2036418

Re: Coding: Fleeting Thoughts

Oh me yarm, I love git. In svn when you "move" a file, svn does this by deleting the old file, then creating the new file. Git has an actual "move" command so it knows that "foo.src" became "bar.src". Well, I moved a file without using the git mv command, so i...
by Pesto
Tue Aug 10, 2010 4:58 pm UTC
Forum: Coding
Topic: coworker rants
Replies: 92
Views: 14624

Re: coworker rants

That seems DailyWTF worthy.
by Pesto
Fri Aug 06, 2010 6:32 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2036418

Re: Coding: Fleeting Thoughts

FT: What happens when you try to inline a recursive function?
by Pesto
Thu Aug 05, 2010 7:57 am UTC
Forum: Coding
Topic: coworker rants
Replies: 92
Views: 14624

Re: coworker rants

It's kind of disturbing how poorly some developers know how to use the tools of the trade. I made two commits today that resulted in a nasty performance problem. Of course, the obvious course of action would be to step backwards through the revision history to figure out which of the two commits cau...
by Pesto
Sat Jul 31, 2010 2:28 am UTC
Forum: General
Topic: Logical fallacies/douchebaggery in commercials.
Replies: 4973
Views: 762465

Re: Logical fallacies/douchebaggery in commercials.

I just tried watching The Daily Show with Jon Stewart online on their site. On both of my computers, no matter which browser I use, the two ads play flawlessly before giving me an empty black screen. How the hell can you play the advertisements just fine, but glitch out when the actual content come...
by Pesto
Fri Jul 30, 2010 5:55 pm UTC
Forum: Coding
Topic: Phone screening for programmers
Replies: 18
Views: 2629

Re: Phone screening for programmers

Cosmologicon wrote:Why do you think you can't use seemikecode.com?

Just a logistics issue. The phone screen wasn't set up with the expectation of him being at a computer. I'm going to push for that on the next one.
by Pesto
Fri Jul 30, 2010 12:11 am UTC
Forum: Coding
Topic: Phone screening for programmers
Replies: 18
Views: 2629

Re: Phone screening for programmers

I like questions about the sort of media they're consuming related to their work. What have they been reading, what conferences/seminars they've attended, what forums they frequent or what courses they've taken recently. I tend to see people like computers - GIGO. This is another thought I had, but...
by Pesto
Thu Jul 29, 2010 1:50 pm UTC
Forum: Coding
Topic: Phone screening for programmers
Replies: 18
Views: 2629

Re: Phone screening for programmers

If you get a really good rapport going on with someone then maybe you could ask him to reverse a string or linked list Ideally, I'd like to get this type of thing out of the way immediately. Get on the phone, get the candidate comfortable, then see if they can code something trivially simple (see t...
by Pesto
Wed Jul 28, 2010 6:11 am UTC
Forum: Coding
Topic: Phone screening for programmers
Replies: 18
Views: 2629

Phone screening for programmers

We're looking for more programmers, and I have to do some phone screens. I've never done it before, and I don't really feel like I know what I'm doing. I realize the point of phone screens is to weed out those 99 out of 100 people that aren't worth bringing in. I read a good post on Coding Horror ab...
by Pesto
Tue Jul 27, 2010 8:11 pm UTC
Forum: Religious Wars
Topic: Tabs vs Spaces
Replies: 209
Views: 152544

Re: Tabs vs Spaces

I'm coming in on the side of tabs. The current code base I work on is standardized to use four spaces, and our editors are set to expand tabs to spaces. I hate when I hit the tab key one too many times and I have to hit the backspace key four times to undo it.
by Pesto
Wed Jul 21, 2010 5:33 pm UTC
Forum: Coding
Topic: The eternal XML argument: attribute vs. element
Replies: 13
Views: 2884

Re: The eternal XML argument: attribute vs. element

I just thought of something. <foo> <bar><complexdata/></bar> </foo> <foo> <bax><complexdata/></bax> </foo> <foo> <snarge><complexdata/></snarge> </foo> <foo> <bax><complexdata/></bax> </foo> In this case, there are many foo elements, and each will only contain one element with more elements inside. ...
by Pesto
Wed Jul 21, 2010 8:11 am UTC
Forum: Coding
Topic: coworker rants
Replies: 92
Views: 14624

Re: coworker rants

The app I work on is PHP and Flex. We used divide teams so that there were PHP teams and Flex teams. We've rearranged people so that we have both on each team. I was a PHP developer, and have just started to learn Flex from the Flex guy. This morning I worked on a bit of Flex stuff. In the afternoon...
by Pesto
Mon Jul 19, 2010 5:03 am UTC
Forum: Coding
Topic: The eternal XML argument: attribute vs. element
Replies: 13
Views: 2884

Re: The eternal XML argument: attribute vs. element

Yeah, from the sound of it, there are a lot of better alternatives to XML. Unfortunately, our system uses XML, so I have to live with that for the time being. From the sound of it, this thread confirms my previous thoughts on the subject, that there are no good rules to determine when to use an attr...
by Pesto
Sun Jul 18, 2010 7:11 pm UTC
Forum: General
Topic: Logical fallacies/douchebaggery in commercials.
Replies: 4973
Views: 762465

Re: Logical fallacies/douchebaggery in commercials.

Those stupid "Trick your friends into thinking you have an x-ray phone!!!1!!" commercials.. the product is just a video of an x-ray image of someone's hand that moves around. That was all fine and good (the stupidity was expected), but the latest one is a full body one and it shows the he...
by Pesto
Sun Jul 18, 2010 8:37 am UTC
Forum: Coding
Topic: What is good code?
Replies: 38
Views: 7101

Re: What is good code?

If you want a sort, you code a bubble sort, for example. When the code is run, it is dynamically complied with one of the best known equivalents of the bubble sort, depending on the situation. I don't know that this is really feasible. This would require that the computer be able to determine the i...

Go to advanced search