Jump to content
  • Announcements

    • boen_robot

      Guidelines and Netiquette   03/28/2017

      Posting Problems:   Having problems posting your topic? Read through this: To join, you agree to our terms and conditions and fill out and submit a registration form. An activation email will be sent to your email adress, so you'll need to verify your account. After that the account has to be validated by one of the moderators. This will mean that it can take up to a day to be activated. A couple of things to remember to ensure approval: Don't use an email address in one of those $2 four character .com domains eg. xyds.com. These will be deleted and the domain added to the banned list. Don't use an email address that is within a domain with a bad reputation for spam. A Google search is run on every email address and email domain. Don't sign up with an email address that doesn't exist, doesn't work or requires the sender to answer a quiz before their email can get to you. Put your country and or state and city in the signup form. Blank forms will go to the botton of the "to do" list. And make sure that your email address and your country match, saying you're from Alabama and using a .ru email address is not going to get you activated. After a membership is activated the first few posts will be monitored. Posting spam or unapproved topics described in the agreement results in an immediate ban. The email provider and the IP addresses associated with the account will be banned and all posts will be deleted. These strict measures have been deemed necessary to hinder spam. Sorry for any inconvenience this causes, but it's not liable to change. If, after reading this, you still can't post and don't understand why, contact one of the Moderators listed here.   Topic Guidelines   Including the following information can expedite an accurate response from board members: Must be a Specific Problem or Question related to web design and development Include Code in Question (wrap with   for small blocks of code and for longer blocks   ) Include Code Author Include Extra Notes/Modifications/Attempts Include web link to page/file when possible Content Guidelines   You may not post, upload, link to, or email any Content that contains, promotes, gives instruction about, or provides prohibited Content. Prohibited Content includes any Content that breaks any local, state, county, national or international law. Prohibited Content also includes: No direct or indirect advertising or websites, forums, products, services No hijacking of posts (do not post your question in someone elses) Content that infringes upon any rights [ex. MP3s and ROMs] (including, but not limited to, copyrights and trademarks) Abusive, threatening, defamatory, racist, or obscene Viruses or any other harmful computer software False Information or libel Spam, chain letters, or Pyramid schemes Gambling or Illicit drugs Terrorism Hacking or cheating for internet/online games Warez, Roms, CD-Keys, Cracks, Passwords, or Serial Numbers Pornography, nudity, or sexual material of any kind Excessive profanity Invasive of privacy or impersonation of any person/entity Hacking materials or information Posting Tips   There are more BBcodes than there are buttons for on the reply menu. To get the full list, click "BB Code Help" underneath the clickable smilie face menu. Use   for small snippets of code Use   for lengthy snippets of code Use   if your snippet is HTML (optional) Use   if your snippet is SQL (optional) Rules of Conduct   Be nice. There's no need for calling someone stupid if they ask an 'easy' question. Keep your avatars and signatures absolutely child friendly. We have a younger audience on this forum. Keep your language appropriate for the same reason above. Do not PM moderators for help on the forum. Post on the topic, or create a new one.   Spam:   Recently, as you have all without doubt noticed, we have had lots of spam and advertisement on the forum. Therefore, we'd like to alert you as to what to do when you have found any of the aforementioned annoying messages: it. Immediately. Give a clear reason, please, if the advertising is not evident. DO NOT POST! Report, let the post stay as is, and we will get to it, meanwhile if you continue to post as normal in the other threads, it won't be on the top so long. Refrain from PMing the member. This won't help at all, as they are most likely spambots anyway. Thank you.       Images in signatures:   After thinking of users on dial-up, we have decided to enforce the following rules regarding signatures. Please pay heed to them. Respecting these rules is respecting the members on this forum with dial-up. Signature rules: No animated images AT ALL. No matter the amount of animation. Maximum image widthxheight: 300x150 Maximum image (file) size: 15kb Use calm colors. Do not use highly contrasting images in your signature, as this can get really annoying when seeing several posts from one member in the same thread. The same prohibited content goes for images as for posts. Lastly, use common sense. No lengthy signatures please. Save us some scrolling. Thank you.       Links in signatures:   Please understand that w3schools.com only exists because of voluntary work and is barely supported by the advertising littered throughout the tutorials and the forum. So, please, stop advertising other sites. DO not post links that drive traffic away from the w3schools domain - especially to a site that offers similar if not identical information. Please help support the site by keeping individuals on it. Thank you. Here are some guidelines as to what you can put in your signature: w3schools links --> allowed w3.org links --> allowed browser links --> allowed html editor links --> allowed personal sites --> allowed tutorial sites competing with w3schools --> NOT allowed sites completely irrelevant to webprogramming and this forum --> NOT allowed   Thanks for understanding, and for taking the time to read this. ~W3Schools Modstaff~
aszxcv

Python?

Recommended Posts

My opinion is that it's not as hard as C++ and not as easy as PHP. I have been reading the Python documentation lately and it has some nice syntax. Python is a functional programming language. Lambdas are a good example of the syntax sugar that Pytho has. Django is a nice MVC framework for Python and IMO is a better choice than RoR.

Share this post


Link to post
Share on other sites
why would site use pytthon over say c++ or php etc..?
a) The developer/s have better knowledge of Python than other languages:) The developer/s like itc) It has features that make it useful to the site (could also be a particular library / framework)d) Its suited to their architecture / hardware / softwaree) Its faster than PHPEtc.

Share this post


Link to post
Share on other sites

I think it is a misconception that Python is faster than PHP. Python has been optimized for mathematical algorithms so in that respect it will blow PHP out of the water but if you compare which language can server more web pages in a period of time you find that PHP is noticeably faster.

Share this post


Link to post
Share on other sites

Is python good for web crawling? I haven't heard of much development in python. Is this something that is kind of outdated or is it still very much widely used?

Share this post


Link to post
Share on other sites

Python is a few years older than PHP, Ruby is about the same age. A lot of younger businesses and developers are very fired up about them. I am not certain, but I do not believe the default installation of either language comes close to the built-in stuff offered by PHP. Maybe if you like including a lot of external libraries, the way you have to in C or Perl, that wouldn't be so bad.I personally dislike languages delimited by whitespace (Python) or that use end statements (Ruby). But that's pretty personal. I CAN program in Visual Basic and its ilk, but I do not like it.

Share this post


Link to post
Share on other sites

Ruby on Rails is supposed to integrate well in shops that feature Rapid App Development and Agile Development. I don't know much about that stuff. I just hack.Maybe you'd get a better feel for these languages is you dropped in on some boards devoted to them.

Edited by Deirdre's Dad

Share this post


Link to post
Share on other sites

Meh... I only really see people use Python for projects that want to mix web and native development together seamlessly. Python is more of a gluing language, to glue projects together. PHP has eclipsed Python on the web/CGI scene but Python can run as a native program in the interpreter or even compiled into C/C++ further compiled into an executable/app. It's also more extendable then PHP, you can write your own modules/plug ins and through libraries or even writing some C++ to add to the interpreter[?]. It's popular as well as ruby because they are quick to develop with and enjoyable.It's a nice language, I prefer DD doesn't like it due to it's use of whitespace but I must say it's better then languages that use end statements. The only real annoyance with whitespace syntax is when using different text editors/interpretors as a tab is defined as different amounts of spaces in each.For a web crawler I would defiantly use Python over PHP. But then you have to take into account your platform you'll be running it on. If your web crawling from your PC then it's great with Python, but some web host don't even support Python.*NOTE: Becareful what version of Python you play with. Version 3, which is the newest, was a complete rewrite. The whole language's API and core functions were written. So V2 code isn't compatible with V3. Alot of people just use V2.*

Edited by ApocalypeX

Share this post


Link to post
Share on other sites

I worked with Python a bit on my server, but I would rather go with PHP or Ruby or JSP, *don't like ASP that much* and maybe some Flash AS3. It proves the fact that Python is not so much used as web server language, as a matter of fact ModPython support and development have stopped. Python would fail against PHP with ease, but PHP would fail against Python in complex math based equations. Working with Python would be pretty much same thing as working with Perl, pain in the ###### when code gets bigger and bigger and more library's are required. Its not whatever one language is better then the other its about the person who's creating the code and for his reasons why. Every language has its limitations its amazing sides and its much more annoying sides. But in any case Python can serve as a nice desktop based application/program and given that it can communicate to web server you can achieve allot with that alone."Python is the hardest programming language..." well not really, every language is hard if you don't know anything about it. I find Python much easier then C++ or VB. It same thing as some one can say that "PHP is so hard to work with" well my reply to that be "Lol, you sure? Have you tried working with Perl?"So ye I hope you get the point of my post ^^

Share this post


Link to post
Share on other sites

My limited experience has been that hardcore programmers (i.e. people that love to PROGRAM) love Python. People that deal with servers and Microsoft crm technology. People that deal with websites and email don't tend to use it, or talk about it much. I don't know anything about people using it as a gluing agent for other programs. It's apparently faster to learn in some cases.

Edited by Head

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×