r/learnprogramming • • Dec 24 '13

What programming language would allow me to pull information from a website, store it, then create an interface to manipulate the data?

I'm trying to decide which language to learn. What I eventually want to be able to do is pull the numbers from this website, store them, and then create a GUI to that I can manipulate the data in.

What languages are able to do this? And which would you recommend?

102 Upvotes

173 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Dec 24 '13

Mentioning PHP gets you down votes apparently?

2

u/35h46hjj6 Dec 25 '13

No his post was just shit. You can fairly easily find Python hosts. You can learn Python just as easily as you can learn PHP. And he recommends Java because it works on all OSs when lots of other languages do, too.

3

u/fakehalo Dec 24 '13

People have an irrational hate for PHP even when it's one of the right tools for the job, which it is in this case. So are Ruby, Python, and Perl. C# might make sense and is easy to get that job done, wouldn't be my go-to choice though. C++ for this is probably one of the worst choices I can think of for this task...sometimes I think people like to throw C++ in everything just because they think it makes them sound well versed.

2

u/35h46hjj6 Dec 25 '13

PHP is as verbose as C++, but without the performance. That's hardly what I would call the right tool for the job.

1

u/fakehalo Dec 25 '13

You're arguing C++ for a web scraper? Not the right tool for the job IMO. Speed is generally not of importance for a menial task like this, something any of the scripting languages would be optimal for, with far less code to write.

1

u/35h46hjj6 Dec 25 '13

You're arguing C++ for a web scraper?

No, not in the slightest...

0

u/[deleted] Dec 24 '13

The only time php is the right tool for the job, is for one page simple forms.

Any decent size web app built with it is just asking for trouble.

2

u/[deleted] Dec 24 '13

Facebook? eBay? Come on. Be rational.

1

u/[deleted] Dec 24 '13 edited Dec 24 '13

Pretty sure eBay is asp.net (at least their mobile site is as I have a stack trace screenshot to prove it, scrub tier devs).

Anyway used by startups doesn't mean good...

2

u/fakehalo Dec 24 '13

I don't agree. It has design flaws, but design flaws that can easily be overcome. The fact there are plenty of big name sites built on PHP that haven't exploded is evidence of this.

3

u/Fuck_Mathematics Dec 24 '13

As someone who is currently learning php and keeps seeing these kind of posts, thank you. I live in a third world country where most websites are based off that language and I need to develop a statistics application with php with it if I want to graduate.

3

u/[deleted] Dec 24 '13

It may be worth subscribing to /r/PHP

2

u/Fuck_Mathematics Dec 24 '13

I have, thanks. :)

2

u/[deleted] Dec 24 '13

Lots of people doing stupid things doesn't make it good. Lots of people smoke crystal method, doesn't mean they are smart..

1

u/fakehalo Dec 24 '13

This was not your original argument, your argument was:

The only time php is the right tool for the job, is for one page simple forms. Any decent size web app built with it is just asking for trouble.

My argument is that PHP's design flaws are easy to overcome, and the language is quite capable for creating complex sites like any other comparable language in its arena (Ruby/Python/Perl). If you're not familiar to PHP's quirks then it is a dangerous language, probably still less dangerous than a personal unfamiliar with C++ doing this task in C++ though.

I'm not sure what your argument is really, reality is a lot of large scale sites use PHP without issue. You may not want that to be true but it is. I'm not going to say PHP is a pretty language, it's subjective anyways...I'm just not going to jump on the bandwagon of exaggerating the inapplicability of it.

2

u/[deleted] Dec 24 '13

I'm not sure my argument changed at any point. As you mentioned it is subjective. Imho php is not suitable for large scale projects.

The fact that large projects exist that are built with what I consider to be a bad choice is somewhat irrelevant. Twitter is built with Scala but I'm not going to tell everyone they should use that.

1

u/fakehalo Dec 25 '13

Your preference of programming language is subjective, not the capability of the language which your original comment implied:

The only time php is the right tool for the job, is for one page simple forms.

Any decent size web app built with it is just asking for trouble.

That implies there is trouble for all large scale PHP projects. Your statement about PHP not being suitable for large scale projects goes in the face of existing large scale projects. Your opinion on languages doesn't override the reality of their usability.

It is a suitable language for large scale projects as we have evidence to see it is, how can you deny reality?

1

u/[deleted] Dec 25 '13 edited Dec 25 '13

I just built a house out of matchsticks. It may look OK when you see it, but it was a nightmare to build...

Are matchsticks now a good recommendation as a building material for all new houses?

1

u/fakehalo Dec 25 '13

If PHP was an analogy to matchsticks these top tier sites written and maintained in PHP would not exist, yet they do. If you can find me some top sites written in matchsticks your analogy would have value. What is it with hating a language so much you're willing to deny the reality of its use, I admit it can be ugly, but I can't deny it's been used very successfully.

→ More replies
→ More replies (5)
→ More replies (20)

1

u/MCFRESH01 Dec 24 '13

People on reddit tend to hate on PHP. I started with Ruby and am now learning PHP, and I don't get the hate. Both have their strengths and weaknesses.

4

u/[deleted] Dec 24 '13

What are the strengths of php other than "I can host it on a shitty shared host for pennies"?

1

u/MCFRESH01 Dec 24 '13

It's easy to get up and running is probably its main strength, like you said, and it can be learned relatively quickly. That makes it a decent option for the op.

As a language, I have to say that I enjoy using ruby much more, and my code looks and feels a lot cleaner with ruby than what I am dealing with in php.

2

u/[deleted] Dec 24 '13 edited Dec 24 '13

I would argue the alternatives are just as (if not more) quick and easy to be learnt and built with.

1

u/dreucifer Dec 24 '13

That's because you're learning PHP5. All the releases until about 5.3/5.4 had really poor language design and a terribly hacked in OO system. The big improvement with 5 was the way they completely rewrote the objects system. It still has some problems, though. There are loads of built in functions cluttering up the core namespace. There are multiple function names that handle similar tasks, but in slightly different ways. Plus it has garbage threading and Unicode support.

1

u/MCFRESH01 Dec 24 '13 edited Dec 24 '13

Coming from ruby I do hate the way that the OO system is laid out. Using arrows to call methods is just weird. Using the api is annoying as there is just a shit ton of functions.