Sponsored by Dragon Age: Origins
Can't get enough Dragon Age: Origins? Play the flash game. view!
DragonAgeJourneys.com - Play the free companion flash game to Dragon Age: Origins.
116 Comments
- Xanadude, on 10/15/2007, -1/+79SO many people misuse the term "refactoring." If your algorithm doesn't work, it still won't work after you refactor it.
- verifex, on 10/16/2007, -2/+40Awesome, now I can outsource my coding skills for free to the community. Thanks internet!
- xJudahx, on 10/12/2007, -0/+30This is digg. we just pretend to be computer scientists
- WolverineBlue, on 10/10/2007, -3/+27Yet another similarity between the hooker in my closet and this web app.
- ypSami, on 10/10/2007, -1/+23They ought to submit their own site for refactoring based on the performance.
- antdude, on 10/16/2007, -0/+17Maybe someone should refactor Digg's comment system. ;)
- smackjer, on 10/24/2007, -0/+13No, refactoring is not for optimization. Refactoring is improving the design of code without changing its behavior.
Tuning for performance can be done as a refactoring, but refactoring is usually done for reasons other than performance. For example, to break a large method up into smaller methods (which will probably negatively affect performance a tiny bit), or to break a class that does 2 distinct things into 2 separate, cohesive classes. - QuickeningYak, on 10/16/2007, -3/+15Because real C++ programmers solve their own ***** problems.
- nitsuj, on 10/10/2007, -0/+11Yes, because OO was just a fad and didn't catch on...
- inactive, on 10/10/2007, -0/+9refactormycode.com was started by a gentleman needing help coding his website. From then on, people kept signing up and submitting their equally bad code. Unfortunately, refactormycode.com never got their code fixed.
So sad. - gtdawg, on 10/10/2007, -2/+10so much for good code.
- Subterfug, on 10/10/2007, -2/+10It was dead when I got here.
- baalzebub, on 10/10/2007, -1/+9coding is as much an art as it is a science/technology, sometimes when i hit a wall i just take a step back & go drink a cup of coffee or shot glass of whiskey (depending on the time of day), then i can look at it from a different perspective, or let it go for the day. and the next day a solution most of the time is found, never rush code when you can not find a clean & elegant solution or it will end up being a kludge, "never rush code can not be said enough times"...
- Desimat0r, on 10/10/2007, -1/+8Based on the amount of Ruby code on the site, I'm willing to wager that it's running on Ruby on Rails.
- merwin, on 10/10/2007, -2/+9Refactoring code doesn't necessarily make it any better or more stable
- adolfojp, on 10/10/2007, -2/+9Your comment doesn't make any sense whatsoever.
- khmer42, on 10/16/2007, -0/+6Isn't that the Perl "Hello World" tutorial?
Sorry, just couldn't help myself. - tdous, on 10/10/2007, -2/+7Hehe. Was the "pseudo intellectualism" crack an attempt at irony, given that the original post wasn't such and your reply definitely was?
- PoVRAZOR, on 10/10/2007, -4/+9And the solution to broken code/algorithms: Delete the contents. Infinite optimization. O(n) time.
- inactive, on 10/10/2007, -1/+6refactormyserver
- tdous, on 10/10/2007, -0/+5Me. And lots of people. And the Twitter developers.
- tdous, on 10/10/2007, -0/+4It's good that you left her there though. It's what she would have wanted.
- Dested, on 10/10/2007, -2/+6=/ You have some kinda twitch?
- PoVRAZOR, on 10/10/2007, -3/+7oops... meant to put O(1), but meh... the joke's lame anyways.
- shawnz, on 10/10/2007, -1/+5yeah, but it's more fun being a prick about it.
- dbr_onix, on 10/10/2007, -0/+4Wonder if anyone could refactor the following code for me:
http://guessthecode.pastecode.com/36997
I wrote it almost a year ago, and no one has worked out what it does yet.. - dbr_onix, on 10/10/2007, -0/+4I'll avoid, erm, mocking the statement "As someone who works with web 2.0s every day" and agree with you:
Ruby, like every other language, can let you create sites that go down as soon as they see any amount of traffic. But, Ruby on Rails basically adds lots of extra code to the site - if you were to do the same thing in PHP (no framework) it would be more efficient simply because there is less code to execute per-page-load.
Of course you can write Ruby on Rails code that caches static content nicely, and will be as effecient as the same code in PHP/etc, but not everybody does. - rebotfc, on 10/10/2007, -0/+4The twitter developers' criticism of rails was the limit in a default install to one read-write database sever. This is was fixed within 24hrs of the complaint by DrNic's Magic-Multi-Connections.
- saifatlast, on 10/10/2007, -0/+4We're talking about being better organized. No one was saying it would be more stable.
- vulcanius, on 10/10/2007, -0/+3I prefer my Bicycle Repair Man.
- macournoyer, on 10/10/2007, -0/+3Seems like it's back up with more caching then ever! I'm really sorry it went down. But like all my side projects it's hosted on my DreamHost shared hosting account. This is not a company, team project, it's a 1 person side project I'm doing for fun. I never, in my wildest dreams (not the ones about Scarlett Johansson), expect it to be that popular.
Thanks for all the good comments, I'm glad lots of you share my view on how the site should be used. It's not for solving the problem on your behalf, it's for improving the inner structure and beauty of a function or small program (huh that's almost the definition of refactoring).
We all know how to solve every problem with code, but sometime someone else can help you improve your code in a way you never though about.
Thank you all, that was an amazing ride! - Smills, on 10/10/2007, -0/+3I play the rich guy at parties.
- DerekJ212, on 10/10/2007, -0/+3And to follow your train of thought, if you were to do the same thing in Ruby (no framework) it would be more efficient simply because there is less code to execute per-page-load.
- geniusj, on 10/10/2007, -0/+3As someone who works with web 2.0s every day, I can say that it does scale along with every other web framework out there. The key to scaling is really being able to do it on your database tier, the web/app tiers are easy. If you begin your app with the foresight to make your data easy to segment, and to use caching where possible, you're most of the way there. Statically generating pages when possible can help take that load off of your app as well. Penny-arcade, for example, is nearly all static, and it's Rails.
- capiCrimm, on 10/10/2007, -0/+3The hookers are temporary, read the note on the fridge.
- petdance, on 10/16/2007, -0/+2You've always been able to do that. Mailing lists, Usenet, online communities have all been around for decades.
- wentwj, on 10/10/2007, -1/+390% think in java
5% call them functions, are pricks, and think "method" is exclusive to java
5% don't really care what they are called in digg comments.
You do know that 'method' is used in languages beyond java as the terminology? Such as Ruby - tnoy, on 10/10/2007, -0/+2" Sorry my poor site went down due to the very very heavy traffic!
For now, I'm keeping this static page to show you what it look like, none of the links will work.
Make sure you bookmark the site and come back later when I change hosting provider.
Sorry for the inconvenient.
- Marc-Andre "
Burried you for your failure to read. - spectre_25gt, on 10/10/2007, -0/+2No, but, done correctly, it makes it more maintainable, which usually leads to it being better and more stable down the road.
- 0gleth0rpe, on 10/10/2007, -0/+2Hey, people are giving away login/pw to all kinds of ***** for facebook, why not this one? ;)
- tobias1482, on 10/10/2007, -0/+2you're very trusting then of the quality of the result...
- macournoyer, on 10/10/2007, -6/+8Hey all, I'm the stupid guy who created that site!
thanks for the comments!
Did it went down? It's up now ?! Sorry for that!
I used the term refactoring because I'd like it to be for refactoring indeed, not solve-my-problem-for-me.
Let me know if you got any problem with the site! Hope you like it and find it useful in some way - spectre_25gt, on 10/10/2007, -0/+2Well, I applaud you for achieving perfection. For those of us still here in the real world, however, refactoring is a necessary part of coding.
- Pritchard, on 10/10/2007, -0/+2Methods tend to come with automatic overloading, an implicit this, and follow the class encapsulation rules. You might as well start saying that Operators aren't Operators, just Functions, so stop being so (insert every language) like!
- xGrill, on 10/10/2007, -1/+3microsoft should do this.
- nakani, on 10/10/2007, -0/+2It's nigh-impossible to find the sign up link. At least it was when I checked out it a few months ago
- elhaf, on 10/10/2007, -0/+1Because parsing C++ requires a real parser.
- ellisgl, on 10/10/2007, -0/+1I would prove how sloppy coding can make for slowing debugging - but we can not use the pre tags.
- Napoleone, on 10/10/2007, -0/+1Have you got a method that you're dying to simplify? A class that's growing out of control? Or an algorithm that you just can't get working? Submit it to the new, awesome web app Refactor My Code, and have it refactored.
- nakani, on 10/10/2007, -1/+2Isn't a method just a function that belongs to a class? It's OO terminology
-
Show 51 - 100 of 116 discussions



What is Digg?
Browsing Digg on your phone just got easier with our enhancements to the