I found this [URL=”http://hammerprinciple.com/therighttool/items/php/cobol”]survey [/URL]and got interested in what you guys prefer. Is it PHP or Cobol? What are the advantages and disadvantages?
@daihuwsOct 24.2012 — #COBOL? Seriously? I've never heard of anyone using COBOL in web development. As far as I'm aware the majority of COBOL code that is still in use is "legacy code" - i.e. stuff that has somehow escaped being re-written in a more modern programming language.
It's possibly a less maligned language than PHP, however.. ;-)
@daihuwsOct 24.2012 — #Sure. But this being the webdeveloper.com forum, and PHP being a language that is mostly used in web development, I rather assumed you were talking about it's use in web development. I've never used COBOL so can't really make any further comment. I would be interested to hear if anyone does use it for purposes other than maintaining legacy code.
@NogDogOct 24.2012 — #To the best of my knowledge, there are very, very few (if any?) companies creating new applications using Cobol; so any jobs using it would be for maintenance of (old) existing programs, typically mainframe and/or client-server apps. If that sort of thing interests you, it could be a reasonably rewarding niche job for as long as those old legacy apps hang around.
If you're looking to learn programming languages that are going to be used for developing [i]new[/i] applications (or even just maintaining anything developed in the last decade or two), you're mostly looking at Java (not JavaScript) and C++/C#. PHP is a bit down on that list in general, though near the top in terms of web applications. My personal recommendation would be to not bother with Cobol unless you're truly interested in being strictly a maintenance developer (and probably for a continually shrinking market as the years go by).
@arzooOct 27.2012 — #NogDog hit the nail on the head.
A lot of those using COBOL are for legacy systems, mostly because they have a lot of data and money invested in those systems back then and it would be costly (development-wise, manpower-wise and problems when porting the data while daily operations is going on) to move the data.
If you want to create for the web, then java, php, ruby and python would be good options. PHP still remains as the most widely used language for the web.