Ruby or Python...which to learn as a noobie and why?

Honestly I recommend PHP, the documentation and help available online is amazing. If you encounter a problem you should be able to find someone else with the same problem very quickly and get a solution.

Pat.....I'm looking to move into a langauge that I can use to write both complex and one off programs for desktop apps....mostly for SEO purposes like to create scrapers, bots, and things of that nature....I'm not looking for anything server side because I want to be able to use something that I can work on my desktop.

I tinkered with C# for a bit but fuck that shit....I don't want to have to learn all that extra crap for my one off simple programs.....

You can always install a web server on your windows PC and do your scraping from there, it's not that hard to do. Look up XAMPP.
 


I have to follow what Rage9 says about documentation lacking, but I going to change it to Python.

I have only been doing Python for about 2 weeks and maybe Im doing something wrong ( came from PHP ), but the examples are 30 fold more for PHP compared to Python I have found online. The people using PHP and giving examples online are just massive.

I had several beginning errors on my Python apps and when I would google the errors all I could find was maybe links to mailing lists or old archives where people didnt have an answer anyway.

I do like the language and am willing to go the extra mile with it, however for ease of use overall, PHP is still my fav.
 
Hahaha programming desktop apps with PHP? If I'm not mistaken PHP stands for Hypertext Preprocessor. Hypertext = HTML.

Don't use a language to do something it was not designed to do.

Insomniac if you are so fucking smart name me five python-built professional desktop applications that come with professional support and licences that actually cost more 50$.
 
Look at open source and you will see many many desktop python apps.
 
Hahaha programming desktop apps with PHP? If I'm not mistaken PHP stands for Hypertext Preprocessor. Hypertext = HTML.

Don't use a language to do something it was not designed to do.

Insomniac if you are so fucking smart name me five python-built professional desktop applications that come with professional support and licences that actually cost more 50$.

Not that I would recommend it, but just like Python has GTK bindings so does PHP. Personally I wouldn't use either for desktop apps, but it's possible in both languages.

When all you have is a hammer everything looks like a nail.
 
Using PHP and then have a website frontend is not the worst idea anyway. Cuz when you write a scraper for example you can organize the stuff nicely at the MYSQL DB and reuse it directly to show the stuff again on websites etc.

Wouldn't underestimate the power of websites as frontends tbh, thats why so many apps are getting ported to the web :)
 
Hahaha programming desktop apps with PHP? If I'm not mistaken PHP stands for Hypertext Preprocessor. Hypertext = HTML.

Don't use a language to do something it was not designed to do.

Insomniac if you are so fucking smart name me five python-built professional desktop applications that come with professional support and licences that actually cost more 50$.

I'm not gonna waste my time finding you all 5, but BookmarkWiz meets all of your requirements
 
Hahaha programming desktop apps with PHP? If I'm not mistaken PHP stands for Hypertext Preprocessor. Hypertext = HTML.

Don't use a language to do something it was not designed to do.

Insomniac if you are so fucking smart name me five python-built professional desktop applications that come with professional support and licences that actually cost more 50$.

Vitamin D Video
Form Pilot Office
SpamExperts Professional
Listomax
JetWorksheet

Or if you want desktop based games (most using it embedded)...

Battle Field 2 and 2142
Battlefield Heroes
Balazar Brothers
EVE Online
Freedom Force

etc...

Dipshit.
 
Not that I would recommend it, but just like Python has GTK bindings so does PHP. Personally I wouldn't use either for desktop apps, but it's possible in both languages.

When all you have is a hammer everything looks like a nail.
wait, there are gtk bindings for php?
how the f do you build guis when you don't have the ability to thread?
I have to follow what Rage9 says about documentation lacking, but I going to change it to Python.

I have only been doing Python for about 2 weeks and maybe Im doing something wrong ( came from PHP ), but the examples are 30 fold more for PHP compared to Python I have found online. The people using PHP and giving examples online are just massive.

I had several beginning errors on my Python apps and when I would google the errors all I could find was maybe links to mailing lists or old archives where people didnt have an answer anyway.

I do like the language and am willing to go the extra mile with it, however for ease of use overall, PHP is still my fav.
the documentation issue is sizable and definitely worth considering.
as a newbie learning to code, if you want to learn "either python or ruby", i'd say you're in equally good hands (but choose python, because that's what men use ;)). but both of them will have roughly the same documentation -- not tons. if it's your first language, you might find this is too steep a barrier to get around. this could be a serious problem.

but honestly, in my opinion, for most mid-level devs -- that is, not the noobs like OP, but anyone who understands a bit of code already -- you're not a lot better off in PHP, because even though there are more 10x examples of how other people do things, 95% of them do it "wrong", or even if it's not "wrong" they don't explain why it's "right". you'll read and copy a bunch of other people's code, and learn about putting code together (which is definitely a good thing) but you won't learn about the whys-and-hows of "doing it right." while you may find 1/10 the this-is-how-you-do-it examples in py-or-rb, you'll find twice as much evangelizing and "this-is-how-you-do-it-right"-ing.

to the OP, php might be your best bet for learning the baby steps of web development and learning the basics of manipulating data and controlling program flow. if you don't understand what a function is, or how it relates to a class, and you don't know about variable scoping, you don't need to learn a higher level language, you need to learn programming concepts. the best way to do that is to fuck around with a dirty, gross, no-lifeguard-on-duty sandbox, like PHP. it won't stop you from directly adding a string to an integer, even though you "shouldnt". it won't force you to ensure your variables are all declared, but you "should".

i'm obsessed with "doing it right". if i'm not "doing it right", i don't wanna be doing it. i like python.

my threat to poop on your desk and take away your internets still stands, you need to come back to this thread with evidence of effort put into learning any one of these languages. start one, learn it till you hit a road block, then either keep asking questions and remaining persistent, or derail yourself and start another. really, if you're gonna be a good developer, you should be able to use all of these languages equally effectively.
 
I apologize, you are right. Thank you for enlightening me.

(but i still think PHP should not be used for desktop apps :))

I don't disagree that PHP in it's current form really isn't suitable for desktop apps, just that it can be used for it.

wait, there are gtk bindings for php?
how the f do you build guis when you don't have the ability to thread?

Cross platform desktop apps written in PHP, Python, Ruby or Javascript all using GTK bindings.

Titanium Desktop Application Development | Appcelerator

Or you can use this PHP-GTK PHP-GTK

Or you can go old-school and use lib-ncurses.

And technically, since Windows GUI's use message queues to handle clicks and keyboard input, a GUI does NOT need threads.

Oh yeah, I can even make a single threaded PHP OpenGL app PHP OpenGl
 
Hahaha programming desktop apps with PHP? If I'm not mistaken PHP stands for Hypertext Preprocessor. Hypertext = HTML.

Don't use a language to do something it was not designed to do.

Insomniac if you are so fucking smart name me five python-built professional desktop applications that come with professional support and licences that actually cost more 50$.

Just because it got its name from what it was original developed for, doesnt mean you HAVE to use it for HTML. Thats like saying.. "dooh, fucking python is a snake dawg, why you using that for apps". Or, " dooh fucking ruby is a rock dawg why you coding in that". Learn a lang, learn it well, then use it to your best abilities to do what you need done. At the end of the day nobody cares you indented your code correctly or did xyz with your code.. business survive on cash, not pretty code.

Just caused something was "designed" to do something 10 years ago and has now evolved to handle other things, doesn't mean you only use it for that it was made for 10 years ago. If thats the case, you need to stop using the Internet for making moneys online and start using it to look at blips and beeps on the screen from someone a couple miles away.. or transfer some military secrets across long distances from one source to another.

I have a diff. mindset when it comes to this forum or anything I do online, its called "Making Money". I dont care if I use something correctly or use indexing properly or have made sure my string is not an object. I use it to make money. If your not making money as quickly and efficient as possible, then something is wrong in my mind.

Putting up apps that work and make money is what I do, I could care less if I didn't properly indent 5 spaces or used PHP to build a desktop app ( which I have ). I made money and thats what this forum is all about. Who cares whats proper and whats right. This isnt British colonial rule 500 years ago.

Make money, not pretty code. That's all there is.

/thread.
 
lol at this guy starting a new thread every week about wanting to learn programming. You start a thread about VB and C#, get some good advice, then you say "fuck it, it's too hard", then pick some other languages, start another thread and do the same shit.

There's more free information about data structures, programming and other things CS on the web than anything else, but it's gonna take longer than 10 minutes to sit down and learn it.

Put all this shit out of your head about trying to build scrapers and ad platforms and stop posting questions about is Ford better than Chevy and how long is a piece of string. You won't learn a damn thing if you don't understand what it is you are trying to learn.
 
lol at this guy starting a new thread every week about wanting to learn programming. You start a thread about VB and C#, get some good advice, then you say "fuck it, it's too hard", then pick some other languages, start another thread and do the same shit.

There's more free information about data structures, programming and other things CS on the web than anything else, but it's gonna take longer than 10 minutes to sit down and learn it.

Put all this shit out of your head about trying to build scrapers and ad platforms and stop posting questions about is Ford better than Chevy and how long is a piece of string. You won't learn a damn thing if you don't understand what it is you are trying to learn.

Lol just checked his previous posts..

Dude, just pick a well established language with decent documentation and community and learn it. Questions like this are usually pretty stupid.
 
lol at this guy starting a new thread every week about wanting to learn programming. You start a thread about VB and C#, get some good advice, then you say "fuck it, it's too hard", then pick some other languages, start another thread and do the same shit.

There's more free information about data structures, programming and other things CS on the web than anything else, but it's gonna take longer than 10 minutes to sit down and learn it.

Put all this shit out of your head about trying to build scrapers and ad platforms and stop posting questions about is Ford better than Chevy and how long is a piece of string. You won't learn a damn thing if you don't understand what it is you are trying to learn.

This man speaks the truth. For you retards that think you can't write a PHP application for the desktop your fucking retarded. More and more applications are moving web side, and if you've ever wrote desktop applications before you'd see little difference between them and PHP + Javascript.

Those who have know exactly what I'm talking about (binding to keypesses and the such). I'm not even talking about tying into other frameworks, there is nothing wrong with running an application though your web browser.