Search found 835 matches

by Pesto
Wed Apr 14, 2010 6:06 am UTC
Forum: Coding
Topic: Agile: Flash in the pan or Future of development
Replies: 15
Views: 2613

Re: Agile: Flash in the pan or Future of development

Okay. I'd call that a Bad Thing TM . Like you say, if the long view does not exist, or is not well enough defined, how do you know whether the direction you've chosen ad hoc is correct or not? That's the thing though: the long view should exist - but it's not the only or primary thing driving your ...
by Pesto
Tue Apr 13, 2010 11:04 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1963
Views: 571515

Re: The "IT DOESN'T WORK!" thread

Yeah, I'd thought about that, but I don't feel strongly enough about it to expend the necessary energy. I've moved on to other things.
by Pesto
Tue Apr 13, 2010 9:19 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1963
Views: 571515

Re: The "IT DOESN'T WORK!" thread

Yeah, but he probably doesn't know what's expected and what isn't. There are two solutions: dig into the algorithm and try to grok it sufficiently, or (more practical) find another implementation and trace through that first. Good point: if it's an implementation bug, you can very often find it jus...
by Pesto
Tue Apr 13, 2010 8:56 pm UTC
Forum: General
Topic: How to: Safe Passwords (for the forgetful)
Replies: 72
Views: 6897

Re: How to: Safe Passwords (for the forgetful)

At the same time, with one sql injection, a cracker exposed 32 million accounts. Which do you think is more likely to expose your password? the brute force attacker who cracks six thousand accounts in an hour, or the sql injection atatcker who cracks more than thirty million with one well crafted s...
by Pesto
Tue Apr 13, 2010 8:28 pm UTC
Forum: Coding
Topic: Agile: Flash in the pan or Future of development
Replies: 15
Views: 2613

Re: Agile: Flash in the pan or Future of development

Okay. I'd call that a Bad ThingTM.

Like you say, if the long view does not exist, or is not well enough defined, how do you know whether the direction you've chosen ad hoc is correct or not?
by Pesto
Tue Apr 13, 2010 6:25 pm UTC
Forum: Coding
Topic: Agile: Flash in the pan or Future of development
Replies: 15
Views: 2613

Re: Agile: Flash in the pan or Future of development

Then how is that not ad hoc?
by Pesto
Tue Apr 13, 2010 4:48 pm UTC
Forum: Coding
Topic: Agile: Flash in the pan or Future of development
Replies: 15
Views: 2613

Re: Agile: Flash in the pan or Future of development

This is exactly what I meant when I said "test driven development means is that your requirements document is a set of executable test cases." You have a set of test cases that define the functionality (i.e. requirements) of what you're writing. See above. In its most extreme form, TDD sa...
by Pesto
Tue Apr 13, 2010 7:37 am UTC
Forum: General
Topic: Solving a crossword without the clues
Replies: 11
Views: 2641

Re: Solving a crossword without the clues

3. How often would a crossword with more than one solution appear? Quite. http://www.xwordinfo.com/ShowPuzzle.aspx?date=4/11/2008 http://www.xwordinfo.com/ShowPuzzle.aspx?date=8/12/2005 That's just one example, for which I knew where to look. When you remove the clues, you're no longer talking abou...
by Pesto
Tue Apr 13, 2010 7:23 am UTC
Forum: Coding
Topic: Agile: Flash in the pan or Future of development
Replies: 15
Views: 2613

Re: Agile: Flash in the pan or Future of development

All test driven development means is that your requirements document is a set of executable test cases. No, that would be "Tested development". Huh? As I see it, TDD is about killing two birds with one stone: up-front modeling to improve design (forced by having to create the model when w...
by Pesto
Tue Apr 13, 2010 4:14 am UTC
Forum: Coding
Topic: coworker rants
Replies: 92
Views: 14591

Re: coworker rants

We're going wonderfully off topic, so I started a new thread.

viewtopic.php?f=11&t=59062

Replies about agile can go there.
by Pesto
Tue Apr 13, 2010 4:13 am UTC
Forum: Coding
Topic: Agile: Flash in the pan or Future of development
Replies: 15
Views: 2613

Agile: Flash in the pan or Future of development

Started a new thread from here: http://forums.xkcd.com/viewtopic.php?f=11&t=57886 Indeed, the constructs that produce quality code is simply good programmers. Robust and maleable are two things Agile does promote a little though, and it's what I aim for when I code. I've always seen agile as mor...
by Pesto
Tue Apr 13, 2010 12:33 am UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1963
Views: 571515

Re: The "IT DOESN'T WORK!" thread

Exactly. The whole point of a hash algorithm is that it's hard to expect what the output will be. I'm was working from the original RFC, which has a few test cases, but I have no real way of knowing what the correct intermediate values are supposed to be. Oh, well. It was just a "let's see if I...
by Pesto
Tue Apr 13, 2010 12:27 am UTC
Forum: Coding
Topic: Nested Loops in C++
Replies: 8
Views: 2212

Re: Nested Loops in C++

You can put any type of loop you like inside any other loop. Use whatever you feel is the most appropriate.

Alas, I no longer have any math homework.

FYI, an if-else statement is not a loop.
by Pesto
Tue Apr 13, 2010 12:26 am UTC
Forum: General
Topic: How to: Safe Passwords (for the forgetful)
Replies: 72
Views: 6897

Re: How to: Safe Passwords (for the forgetful)

Thanks to this thread, and the security chapter in my OS textbook, I have a brand spanking new secure password on my main email account. It's 12345. No one will ever guess that.

Other accounts soon to follow.
by Pesto
Mon Apr 12, 2010 11:36 pm UTC
Forum: Religious Wars
Topic: Debian vs Ubuntu
Replies: 34
Views: 14694

Re: Debian vs Ubuntu

I use Ubuntu, because someone gave me an Ubuntu install CD. I've never used Debian.
by Pesto
Mon Apr 12, 2010 11:28 pm UTC
Forum: Coding
Topic: coworker rants
Replies: 92
Views: 14591

Re: coworker rants

I'm not saying it can't work. There are clear examples where it works quite well. I just think that the constructs of agile, and those constructs that produce quality code within an organization are orthogonal in general.
by Pesto
Mon Apr 12, 2010 8:43 pm UTC
Forum: Religious Wars
Topic: GNU versus BSD
Replies: 145
Views: 42200

Re: GNU versus BSD

Hmm. That sounds very nearly perfect. I don't really see a downside to that.
by Pesto
Mon Apr 12, 2010 8:12 pm UTC
Forum: Coding
Topic: coworker rants
Replies: 92
Views: 14591

Re: coworker rants

Notch wrote:Yes, agile is the way to go, both in terms of project management and coding style!

:x

I've yet to drink the agile cool-aid. Granted, I know it's being done wrong where I'm currently working, but I still think it's going to be a fad that will pass.
by Pesto
Sun Apr 11, 2010 8:19 pm UTC
Forum: Religious Wars
Topic: GNU versus BSD
Replies: 145
Views: 42200

Re: GNU versus BSD

Yeah, I'm familiar with the LGPL, but how would it work in practice if a stand-alone application were released under it?
by Pesto
Sun Apr 11, 2010 8:12 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1963
Views: 571515

Re: The "IT DOESN'T WORK!" thread

I'm trying to implement md5, but something somewhere is wrong.

How do you even start debugging something like this?
by Pesto
Sun Apr 11, 2010 7:48 am UTC
Forum: General
Topic: Logical fallacies/douchebaggery in commercials.
Replies: 4973
Views: 760455

Re: Logical fallacies/douchebaggery in commercials.

I just heard a radio commercial for some enhancement drug. I will try and remember the worst parts. Everything's paraphrased. For one thing, she starts off with "Does size matter? The answer is yes." and goes on, after talking a bit, to "All the ladies listening to this are either sm...
by Pesto
Sun Apr 11, 2010 4:44 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2031157

Re: Coding: Fleeting Thoughts

I think I don't like the idea of having to jump back to the beginning of the loop to check the condition, then jump back to the end when the condition isn't met. A constant conditional will be optimized out of existence by any compiler anyway. Edit: Gah. I just realized how stupid what I wrote is.
by Pesto
Sun Apr 11, 2010 3:20 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2031157

Re: Coding: Fleeting Thoughts

Is this a bad coding practice? Would this be too confusing for subsequent coders? I prefer turning those into: while((value = read) != EOF){ do_stuff_with_value; } Though, I know some people don't like this, because of the assignment in the while statement. Sometimes the duplicate code is more than...
by Pesto
Sun Apr 11, 2010 12:24 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2031157

Re: Coding: Fleeting Thoughts

Often times I find this type of pattern in my code. read_data_from_file; while(!end_of_file) { process_data; read_data_from_file; } More and more I've been wanting to rewrite these loops like this. do { read_data_from_file; if(end_of_file) break; process_data; } while(1); This is only a very simple ...
by Pesto
Fri Apr 09, 2010 9:02 pm UTC
Forum: General
Topic: Sun Worship/Appreciation Club looking for a acronym
Replies: 19
Views: 1997

Re: Sun Worship/Appreciation Club looking for a acronym

I like SWAC.
by Pesto
Fri Apr 09, 2010 9:18 am UTC
Forum: Coding
Topic: Self improving code
Replies: 24
Views: 6133

Re: Self improving code

For simplicity's sake I'd probably make all instructions one byte command, one byte parameter, and just add/remove/change in pairs of bytes, so that deleting an instruction doesn't cause its parameter to now become an instruction, as I imagine that would rarely be beneficial. Sounds like a frame sh...
by Pesto
Fri Apr 09, 2010 8:49 am UTC
Forum: Religious Wars
Topic: GNU versus BSD
Replies: 145
Views: 42200

Re: GNU versus BSD

And I agree, hiding the copying by changing the variable names is probably more blatant, but less likely to be caught. Without variable/function names, you would almost have to be able to read machine code to catch GPL violations in binary files. When I took the intro to programming course in under...
by Pesto
Fri Apr 09, 2010 8:40 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2031157

Re: Coding: Fleeting Thoughts

Fleeting thought, after reading about the year 2038 problem. What's the "correct" MySQL field type for timestamps? I've always used int(8) for some reason. Habit, I think. (This is why I need to get a book or something instead of toy with phpmyadmin...) Datetime should do the trick. It ha...
by Pesto
Fri Apr 09, 2010 12:16 am UTC
Forum: General
Topic: What is the easiest way to get rid of your sense of taste?
Replies: 39
Views: 6288

Re: What is the easiest way to get rid of your sense of tast

Stick your tongue out until it dries out completely. You won't be able to taste anything until it gets wet again.
by Pesto
Fri Apr 09, 2010 12:13 am UTC
Forum: Religious Wars
Topic: GNU versus BSD
Replies: 145
Views: 42200

Re: GNU versus BSD

You have to be careful though. If your use similar function names, data structures and variable names for a non-trivial piece of work; it can be argued that it is derivative. To be safe, you would probably have to look at the documentation only, and re-implement from there. The problem of course is...
by Pesto
Thu Apr 08, 2010 8:54 pm UTC
Forum: General
Topic: Logical fallacies/douchebaggery in commercials.
Replies: 4973
Views: 760455

Re: Logical fallacies/douchebaggery in commercials.

Yeah, I think it's rather well done.

It's kind of scary that I can still remember most of the lyrics to the original commercial.
by Pesto
Thu Apr 08, 2010 8:17 pm UTC
Forum: General
Topic: Conservapedia - Most Accurate Shite On The Web*
Replies: 342
Views: 55026

Re: Conservapedia - Most Accurate Site On The Web*

Just found this gem in the evolution article. The theory of evolution has had a negative effect on the field of medical science. According to Dr. Jerry Bergman the list of vestigial organs in humans has gone from 180 in 1890 to 0 in 1999.[162] I went to check what source 162 was... http://www.answe...
by Pesto
Thu Apr 08, 2010 5:45 pm UTC
Forum: Religious Wars
Topic: GNU versus BSD
Replies: 145
Views: 42200

Re: GNU versus BSD

Which is kind of my point. If you look at some GPL'd code, pull some ideas from it, then go implement those ideas yourself, I'd say you're not violating the GPL. But to be more clear, maybe my example should be this: "Oh, they use a hash table. That's a good idea." *uses hash table in a si...
by Pesto
Thu Apr 08, 2010 5:26 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2031157

Re: Coding: Fleeting Thoughts

Better having to read those brain-numbing documents than not having those documents at all.
by Pesto
Thu Apr 08, 2010 9:27 am UTC
Forum: Religious Wars
Topic: GNU versus BSD
Replies: 145
Views: 42200

Re: GNU versus BSD

As for the 'giving people choices' part, do you really steadfastly believe that using one call to a GPL library, and having that call take... less than a hundredth of a percent of the CPU time that the rest of the application does... is enough to call it a derivative work? I'd say it's fair use, bu...
by Pesto
Thu Apr 08, 2010 1:16 am UTC
Forum: General
Topic: Conservapedia - Most Accurate Shite On The Web*
Replies: 342
Views: 55026

Re: Conservapedia - Most Accurate Site On The Web*

Just found this gem in the evolution article. The theory of evolution has had a negative effect on the field of medical science. According to Dr. Jerry Bergman the list of vestigial organs in humans has gone from 180 in 1890 to 0 in 1999.[162] I went to check what source 162 was... http://www.answer...
by Pesto
Tue Apr 06, 2010 10:49 pm UTC
Forum: General
Topic: Logical fallacies/douchebaggery in commercials.
Replies: 4973
Views: 760455

Re: Logical fallacies/douchebaggery in commercials.

There's a cell phone ad that keeps appearing on hulu that kinda irks me. The ad features people doing interesting things (riding a horse on the beach, sitting around a camp fire with their family, having a sculpture be made of them), except instead of actually doing those things, the people are ign...
by Pesto
Tue Apr 06, 2010 8:20 pm UTC
Forum: General
Topic: Conservapedia - Most Accurate Shite On The Web*
Replies: 342
Views: 55026

Re: Conservapedia - Most Accurate Site On The Web*

I knew someone in college named T. Watters (no joke). I wonder what would happen if I were to create a username with her first initial and last name.
by Pesto
Tue Apr 06, 2010 5:15 pm UTC
Forum: Coding
Topic: Random numbers are not random in C++
Replies: 15
Views: 2793

Re: Random numbers are not random in C++

Interesting stuff from random.org.

http://www.random.org/analysis/#visual
by Pesto
Tue Apr 06, 2010 12:54 am UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1963
Views: 571515

Re: The "IT DOESN'T WORK!" thread

260. It explores all triplets (i, j, k) for 0 <= i <= j <= k <= 1000. I was planning on using memoization to speed up the execution time, and the simplest scheme was to simply use a giant rectangular array. Since this is not code that I have any expectation of reusing, I was optimizing for ...

Go to advanced search