- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Uh, best advice is to get out of Computer Science and/or IT while you still can.
(Captcha: himmelfreundpointer)
Admin
Outstanding advice, Mot! I second it.
Admin
Create a resume citing your past projects as references. Submit to dice.com. You'll get 20 calls in the next week.
Admin
shadowman was much more constructive by providing:
This is nearly identical to the solution I would have offered and is much more suited to solving the original problem than noting that there is another less wrong, but still wrong, way to do something.Admin
People that write code like this should take a break for a few months. I'm 16, self-taught, and even I write better code than this.
Admin
I see a real design problem from the UI perspective as well. Why is this not in a <select> Tag? Considering that the options follow a pattern (increasing scale) and are closely related, having a dropdown makes more sense, and makes it easier to tell which is selected. You should never have more than a few radio buttons or the UI structure gets too tall.
Admin
Hmm, I had never heard of dice.com before, looks like a good site to know about. I had tried looking on Monster, but all it got me were spam emails that I was qualified for stuff like a job in New York requiring a B.S. degree, when I'm a current college student in Orlando :-p. I'll give it a try though!
Admin
Find an existing open source project that you like and do some work on that (DO NOT START YOUR OWN PROJECT!!!). This will give you real world experience.
I was in much the same situation, though i made the mistake of freelancing (did crap) then getting a crap office job which made no use of my skills for 2 years, stupidly did my own open source projects which was basically a waste of time, literally nobody adopted etc (though did self learn alot). Then got lucky and lost my stupid job, scored job at a place doing research assistant work, turned out there was a lot of demand there for my skills and now fulltime web developer, mostly writing code that ends up on dailywtf.com ;).
But you can't rely on luck like i did, best bet is get any old job for now and do open source at night until you can score a proper programming job
Admin
Admin
Ring, ring... "Hi, Nodren? This is marketing... we'd like to change the website where it says 'Grad / professional school' to read 'University'... oh, and can we add a field that says 'Technical College'? Thanks! By the way... how long is that going to take?"
/I think I'll pass on your solution in favor of a 6-line solution from shadowman :)
Admin
Only 5 minutes ago he was sitting on a sidewalk in New Delhi. We brought him in, offered him 3 dollar American for the next month work, and now he are a programmer.
Admin
Even if it were more economical to use iq-in-the-room-temperature-range code like the example, the cost of making any changes would hamstring the developer.
The maintainability against time graph for this kind of project is like this:
| | |_ |
|___
Admin
This would be the best solution if presenting a radio array is something you only ever do once. My code would look more like this:
Obviously $default and $options would come from the relevant model. $page is the current part of the view.
Admin
Use Craigslist. You need to get a few sites on the Internet so that potential employers can take you seriously. Craigslist and other such sites will enable you to find contracts. If you know your stuff and can do the work... then you can gain some background. Once you have at least 3... start building your resume.
Admin
Ha, ha! Hilarious!
Admin
Sometimes this site makes you laugh, other times it makes you cry....
Admin
This is the most logical way to do radio buttons when you are paid per line. The WTF will be the manager who will sack the guy that fixed it, bellowing "I paid ten times as much for half the code!?'
Admin
they got what they paid for? news at eleven?
Admin
Admin
About the issuea at hand: IF you want to use anythin near that if should be else if structure, theres a little something called switch... Saves a bit of writing, and is nearly as cut'n paste friendly. Not to mention it's a wee bit more readable, and expansion friendly.
About cut'n paste in general... 80%? you kidding me? How about include, make your general stuff in nice objects or functions, stored in nice smallish include files (one file per object, and group the functions by what they do... ). If needed make a new object that inherits one of your pre-made ones. Isn't that much of the point of oop?
captcha: atari hm, never had one, wanted one though.
Admin
the best WTF is that in PHP all of those if clauses would evaluate to true if $_SESSION["EducationID"] was an integer zero :)
$integerZero=0; if ($integerZero=='some string that does not begin with a number') { echo 'this will really be executed in PHP! no kidding!'; }
captcha: sanitarium
Admin
I'd like to stand up a little bit for these coding portals. Not a lot, but a little bit. I recently started on GAF and I think some projects are reasonably priced, and some people can actually code reasonably well (like me). Of course there are a huge number of guys advertising at $2/hr but I think at least some people would rather hire me and pay more, since I speak English!
And remember, most of the WTFs aren't from $300 code by amateurs, but from $30,000 code written by "experts"!
Admin
The horror? Why? You would refuse to refactor it and continue in the same manner?
Admin
Maybe he made a really smart LISP program that implements a DSL for generating the PHP code.
Or maybe not.
Admin
No, he hires ->coders<- for $17/hr. He obviously has never met a programmer...
Admin
I didn't know you could do that!
Admin
(I only need to type the captcha in the field next to it, right? ;P)
Admin
This is one of those things that we've probably all been guilty of at some point. However, we still look at it in disgust. WTF.
Admin
Yes :-P
Admin
<< What is the best way to get into a real PHP programmer job? I'm 20, in college, and been freelancing on these crappy job portal sites for a while now >>
In addition to working on an open source project or two, I'd suggest getting a job where you can do some programming even if it's not in your job description. I started out as a support technician and worked in time to write some small programs to automate some repetitive tasks. Later I worked on the helpdesk for another company and wrote some programs to make my own life easier, which my whole team started using. I wasn't getting paid to program, but I was free to do whatever I wanted between calls, and eventually my boss (and his boss) noticed out important my contributions were and offered to move me to a full time developer position. Just a suggestion, but there's nothing wrong with starting in the "mailroom", if you know where you want to go.
Admin
Admin
What are you his pimp or btt f****.
Admin
Learn how to speak English first. It's strange how rascist some a**holes like you are. You automatically assume that all Indian programmers are bad and start spreading rumors. I am sure you never even finished high school and have wet dreams about your own mother.
Admin
Admin
People like you are the reason American companies are shifting work overseas. They just don't want to deal with stupid f***s like you. You are totally worthless and I am sure your mother reminded you this every day of your life.
Admin
Quickie answer: DON'T DROP THE ENGINEERING DEGREE. It's worth at least 10-15k$ a year, plus you get more credibility and respect. Plus, if the engineering profession is regulated in your jurisdiction some jobs will be reserved for you!
As for the PHP programming jobs, try jumping to another language... PHP is associated to "low-skill" so you get crap jobs.
Admin
This has got to be generated code, event if it's badly generated code. If it's not generated from a template, I think I might cry.
Admin
I am nearly certain most people are flat out LYING about having a college degree. I mean, how would you know?
Admin
Funny, I still don't get any respect... and I haven't seen 10-15k more a year... I must be stupid.
Admin
I would hire you for that comment. You at least recognize that experience and education will make you a better programmer. You might even be counted on to go out and get that experience and education.
Admin
Languages for young programmers to avoid: PHP, Perl, Python, Ruby, Visual Basic, Pascal, Javascript, HTML
AVOID these for the first five to ten years of your career and you'll do fine.
Admin
Is there an emoticon which means "Cat, coughing up a hairball"?
Admin
The job portal sites are garbage. Most of the people posting jobs there don't have any experience either. Once they get bit by these low-ball bids that fail to solve their problem and offer no accountability, they will go to a real agency or freelancer.
So my advice is to build your own portfolio... do personal projects if you can't find any clients. Do a lot of networking and over time you will build up a series of clients who will then refer you to new people (if you do a good job). Personal relationships are the most important thing for any aspiring freelancer.
Admin
You could be required to continue in the same manner "because there is no time for refactoring"... [image]
Admin
Nope, seen code hand-written in just that way.
[image]
Captcha: sanitarium (leave me me)... sanitarium (just leave me alone)
Admin
Out of those to avoid, the only one I think shouldn't be in the list is Pascal. While it's not widely used, it's got some semblence of a "non-low-class" programming language in that it's still fairly close to the metal. At the least you gotta give it some credit for a string that gives you it's length without crashing.
Admin
You're so right. I had to change queries at 5 different places in an application once a new field was introduced to a table. That's been horror as well. Glad I got a good DAL now.
Admin
Nice, if someone whant to pay me per line I will give him code smothing like this post.
Admin
Agreed! I started off in Tech Support in a small company and did the same thing. Fifteen years later, I've got a ton of varied experience from working in different kinds of positions and my value as a Software Engineer is because I've "been there, done that" in most cases. This approach might work for you as well.
Admin
As unbelievable as it is, I saw this exact type of code at my former job. It was written by a female developer with several years of experience. I actually quit when they asked me to maintain the application.