Being a programmer myself I sometimes find that I get a kind of writer’s block that plagues my brain. No matter what I try I just can’t figure out what I’m trying to do, but there might be a new community that is able to help in situations like that.
RefactorMyCode has been created as a site for users to post their programming woes. The site is laid out very nicely, and right now they have categories for Ruby, Python, Perl, PHP, JavaScript, Java, C, C#, and Lisp.
When you post code it gets “refactored” by other users. That means that people try and come up with different solutions that may end up being better. Maybe you have a snippet of code that you have security concerns about? No problem, just post it and let the wisdom of several other people chime in!
To my surprise the community is already doing very well. Each posting normally gets several responses, and some have even had dozens. I’ve gone through dozens of the posts looking at the refactorings, and from them I’ve learned new syntax that I didn’t even know existed! This could become a goldmine for any of you programmers out there.

That is the ugliest site I have ever seen. It hurts my eyes to look at it.
:lol:
The LOL smile dosen’t look like it’s laughing… 8O
I’m the creator of RefactorMyCode, thanks a lot for talking about it. I’m also impressed by the community, it’s amazing!
CoryC, I’m sad you don’t like how the site looks, what don’t you like about it ?
The one thing I don’t like about that site is that it uses OpenID and I’m not a big fan of that. I think users should have a choice about having a regular login and an OpenID login if the site creator wants. But the site itself and the whole idea of it is a great tool for programmers. Another site I use frequently is a forum located at [forums.devshed.com]
First of all the code samples have a black background which makes it hard to read. I would have thought that the background would be white/off-white or even gray. Maybe it would match the most common development environment for the programming language. For example C# would look as it does in Visual Studio.
Next, the titles are in a large, bold font. Even the font-type is unusual for a web site.
I like the concept of the site. I even like the navigation. In my opinion it needs a face lift.
I didn’t really think that it looked that bad, but I agree that they could make reading the code a bit easier.
They should definitely have their own login service in addition to the OpenID. I think there are too many people who are still confused by OpenID, but I guess most of their target market will know what it is.
I personally find Visual Studio theme very ugly. I’m a TextMate user and I love black background for coding.
I doubt verdana is an unusual typefont for a website, it’s used on most websites, it’s even used on this site, come on!
I guess we just don’t have the same tastes as I think your site (myrssreader) looks like it was made by a 10 year old kid.
Also, I won’t put any other login method then OpenId, I beleive in that technology, and see it as a filter.
Hey, you asked me for my opinion. If you’re going to run a public site get used to criticism. As for my “made by a 10 year old kid” site, I didn’t ask for your opinion nor does it matter to me. The template was from a Microsoft started kit. Fact is, my site is nothing more than a test bed for to try new coding techniques.
If I was trying to build a community site, I would listed to the feedback from users. Think of RefactorMyCode as the communities site and not your site. If you do that then it will be around a lot longer.
If you’re going to solicit feedback then don’t get upset by what other have to say. The opinion I expressed were my own; I didn’t ask you for a rebuttal.
The fact is you’re site displays has A LOT of black. It looks like it was designed by a anti-social teenager that is upset with the world. Not exactly the look one expects from a “community” site.
I have to stand up for CoryC on this one macournoyer. You should be welcoming user feedback and be looking for ways to improve the site. If you’re not open for opinions people will be reluctant to return to the site.
And criticizing CoryC’s own personal site was a step over the line.
I’m sorry I sound like someone who doesn’t accept critisism. But “the ugliest site I have ever seen” is not the kind of feedback that helps making a website better.
I’m glad my reply can make ppl like this be reluctant to return to the site.
My site is driven by user feedback since day one, almost everything you see in there was a user suggestion. And I’ll do all I can to keep bad ppl off the site.
CoryC elaborated on what he meant by that comment, and to be honest if I was running the site I would take his ideas to heart. It really is a bit tough to read a lot of code on a black background. It’s not that difficult to give users another stylesheet to choose from that has a light colored background for the code, and then save their settings to a cookie.
Just a friendly suggestion macournoyer — when you get feedback such as “the ugliest site I have ever seen,” take what you can from it. Perhaps what Cory said was exagerated a bit because there has GOT to be an uglier site out there, but the point behind that comment is that the look of the site is keeping him from using it. Take that and then ask yourself, “what can I do to make this more visually appealing for more of my users.” I know how hard it is when someone has critisized your hard work, but try to realize that first impressions are important and that was Cory’s. Ultimately it’s your site and you can do what you want, but perhaps there are others out there who share Cory’s opinion and would be more inclined to return if it were a little easier on the eyes?
I teach at a middle school, and I regularly have my students read and evaluate work done by their peers. Most of the times, those evaluations take the form of written comments to the author of the work. I take grades on the ability of the evaluator to offer appropriate and constructive criticism. I would not allow a comment such as “that is the ugliest site I have ever seen” in my classroom. In fact, I make it very clear that a comment like that will receive a failing grade. A comment like that, even if it is explained later, is just asking for a response in kind.
Just my opinion.
Look, this is not the usual forum for proving feedback to a site owner; It’s more of a conversation with friends. I would never make such a statement in a formal setting. When macournoyer asked, “…what don’t you like about it?” I was polite and gave specific example of what I thought needed to be modified. I even pointed out a couple of things that I liked about the site. To say I’m “bad ppl” just because I offered my opinion is childish.
I won’t visit the site again nor will I tell my friends or co-workers about it (did I mention that I’m a professional application developers? Actually, I’m a Application Team Lead). If someone mentions the site to me I’ll reply that that site creator is a jerk.
I wash my hands of the whole situation.
Let there be peace among you guys. Sometimes it is just good to pretend you don’t have eyes and ears.
hey i was wondering im a sixth grader and im writing a paper about programing, can someone help me?
Your program must also contain at least the following four methods according to the following descriptions: (Note that your main method will consist primarily of calls to these four methods which will be imbedded in a loop.
Methods:
displayInstructions will tell the user what the program does, what to input, and what will be displayed as a result of running the program. It will not return any value nor will it need any formal parameters.
getYear has no formal parameters. It asks the user to input a year and then returns that year as an integer value.
isLeap has a formal integer parameter, year. It determines if a year is a leap year, and then returns a Boolean value (true or false) depending on whether the year is a leap year or not. How to determine if a year is a leap year? A year is a leap year if it is divisible by 4, but not divisible by 100, except when it is divisible by 400. (Hint: think about using the modulus operator here.)
displayResults has two formal parameters, the year and a boolean variable containing the value returned from method isLeap. This method will not need to return a value. It will simply display the year and display whether or not that year is a leap year.
Leap Year: Design a program that asks the user to enter a year and then determines if it is a leap year. Be sure to tell the user what the program does. You program should have a loop that continues to repeat the leap year calculation for various years depending on the user’s wishes. It asks the user to enter a ‘y’ or ‘n’ if s/he wants to process another year.
Your program must also contain at least the following four methods according to the following descriptions: (Note that your main method will consist primarily of calls to these four methods which will be imbedded in a loop.
Methods:
displayInstructions will tell the user what the program does, what to input, and what will be displayed as a result of running the program. It will not return any value nor will it need any formal parameters.
getYear has no formal parameters. It asks the user to input a year and then returns that year as an integer value.
isLeap has a formal integer parameter, year. It determines if a year is a leap year, and then returns a Boolean value (true or false) depending on whether the year is a leap year or not. How to determine if a year is a leap year? A year is a leap year if it is divisible by 4, but not divisible by 100, except when it is divisible by 400. (Hint: think about using the modulus operator here.)
displayResults has two formal parameters, the year and a boolean variable containing the value returned from method isLeap. This method will not need to return a value. It will simply display the year and display whether or not that year is a leap year.
can you help me solve my programming project ? here’s the problem.
write a flowchart and C program to calculate the parking fare for customers who park their cars in a parking lot when the following information is given:
a. a character showing the type of vehicle: C for car, B for bus, T for truck.
b. an integer between 0 and 24 showing the hour the vehicle entered the lot.
c. an integer between 0 and 60 showing the minute the vehicle entered the lot.
d. an integer between 0 to 24 showing the hour the vehicle left the lot.
e. an integer between 0 and 69 showing the minute the vehicle left the lot.
vehicle type first rate second rate
car 0.00/HR first 3 HR 25.50/HR after 3 hr
truck 15.00/HR first 2 HR 35.75/HR after 2 Hr
bus 25.00/HR first 1 HR 43.40/HR after 1st hour
final output
TYPE OF VEHICLE: CAR/BUS/TRUCK
TIME IN: XX:XX
TIME OUT: XX:XX
PARKING TIME: XX:XX
ROUNDED TOTAL: XX:XX
TOTAL CHARGE: XX:XX
No vehicle is allowed to stay in the parking lot later than midnight; it will be tawed away.
The input data consist of a character and a set of four integers representing the
type of vehicle and the entering and leaving hours and minutes. But these
pieces of data must be input into the computer in a user-friendly way. In other
words, the computer must prompt the user to enter each piece of data as show
below. (Note: Red colour indicates typical data)
Type of vehicle? C
Hour vehicle entered lot (0-24)? 14
Minute vehicle entered lot (0-60)? 23
Hour vehicle left lot (0-24)? 18
Minute vehicle left lot (0-60)? 8
The output format is shown below:
This program must first calculate the actual time spent in the parking lot for
each vehicle. You may use the following algorithm:
a) Compare the minute portion of the leaving and the entering time. If the first
one is smaller than the second,
- Add 60 to the minute portion of the leaving time
- Subtract 1 from the hour portion of the leaving time
B) Subtract the hour portions
c) Subtract the minute portions
d) Since there are no fractional hour charges, the program must also round the
parking time up to the next hour before calculating the charge. The program
should use switch statement to distinguish between the different types of
vehicles