All Questions
37
questions
19
votes
5answers
37k views
Why is Python slower than Java but faster than PHP [closed]
I have many times seen various benchmarks that show how a bunch of languages perform on a given task.
These benchmarks always reveal that Python is slower than Java, and faster than PHP, and I wonder ...
11
votes
7answers
2k views
Is there anyone who has used Python/Ruby and PHP for a long time and still prefer PHP? [closed]
I am usually fascinated by articles defending PHP and the arguments being used. Quite often authors of these types of articles don't mention what experience they have with other languages. Personally ...
8
votes
9answers
9k views
How to become an expert in Python, PHP and Javascript? [closed]
So I've been programming for about 9ish months now, and I've taught myself some Python, some PHP and some Javascript.
I want to become better at these languages - I can hack something out, but a lot ...
8
votes
4answers
2k views
Is there a performance benefit to using immutable objects in a scripting language?
As I understand it, writing your objects in an immutable style can help the performance of your program for compiled languages, as the compiler tends to rewrite your code in single static assignment ...
7
votes
3answers
4k views
What's special about “non-blocking” node.js?
In the short chapter, What is Node by McLaughlin, he writes:
"Node has no blocks, no threads competing for the same resource (Node
is happy to just let things happen however they happen), nothing ...
6
votes
3answers
715 views
Why does Zend discourage “floating functions”?
Zend's Coding Standard Naming Convention says
Functions in the global scope (a.k.a "floating functions") are permitted but discouraged in most cases. Consider wrapping these functions in a static ...
5
votes
2answers
18k views
Can python and php work together?
I am having a mobile app created for ios. The developers built the app in php. The app requires an algorithm so I found another programmer to develop it. The algorithm programmer built the algorithm ...
5
votes
3answers
24k views
Scripting language for filling out web form
I have a job as an intern at a technology company, I was given the unfortunate job of performing some data entry into our web management system. The information entered into the web form is stored in ...
5
votes
2answers
627 views
Is using static-typing the solution to domain-driven design and decreasing the number of errors?
We are using PHP (a dynamically-typed language) in our project. However, I have found my colleagues asking questions such as https://stackoverflow.com/questions/20438322/modeling-a-binary-relationship-...
4
votes
9answers
657 views
One good reason for a rewrite
I have a personal web project I cut my teeth on learning how to program. I wrote it in PHP and learned as I went. I eventually I re-factored it to use MVC and removed all mixing of php/html.
Right ...
4
votes
4answers
18k views
How can I sell my boss on Python+Django instead of PHP+a different framework? [closed]
My boss has tasked me with a re-write of our intranet website. The existing system is very old PHP that doesn't use a framework. My preference is strongly to do the rewrite in Python and Django but my ...
4
votes
3answers
839 views
Is it possible to deploy Perl or Python scripts in the same way as PHP scripts?
PHP's deployment model is uber simple: upload and run. This is especially ideal for web applications that are intended to be installed on shared hosting by end users (think: Wordpress). Compare this ...
3
votes
11answers
2k views
python vs php (for project managers)
Up to now, as a developer i preferred python for web programming and scripting. Now, i will manage some projects. I know that finding developers that know php is easier than finding developers that ...
3
votes
2answers
1k views
Why do ruby and python seem to have more community contribution than PHP? [closed]
In a recent blog post by Roy Osherove, it is pointed out that his switch from primarily .Net development to ruby development has seen a huge difference in community involvement and really enjoys it.
...
3
votes
2answers
447 views
How to fix bad fundamentals? [closed]
I am a native PHP developer, and have been for about a year or so. I love PHP and it was very easy for me to learn, but I have developed some bad habits along the way due to never having a formal ...
3
votes
1answer
732 views
Objects of different programming languages [closed]
Apparently, there are some resemblance between objects in JavaScript and dictionaries in Python. Each language defines an object a little different (and there is some logic that all definitions to be ...
3
votes
2answers
398 views
Getting practicality of PHP from Ruby or Python
I have a rather odd problem. I love the practicality of PHP - specifically that I can fairly safely assume that on any random server I'll have access to the MySQL libraries, and that I can go between ...
3
votes
2answers
4k views
Web Services as a Back end [closed]
I am contemplating a direction to take an application. The application is written in PHP which implements a MVC framework.
Some of my clients will require web services. I was thinking even building ...
3
votes
3answers
8k views
What algorithms would be useful for designing a stock market simulator?
We are in the process of building a stock market simulation game. The frontend design is ready but we are clueless about how exactly the back-end algorithms are to be designed.
What algorithms should ...
3
votes
1answer
2k views
Moving from PHP to Python - framework considerations
As a long time PHP developer, I am now starting to explore the Python world.
I have narrowed the choice of framework down to Django and Pyramid, probably no big surprise there. I have played a bit ...
3
votes
1answer
3k views
XMPP— openfire, PHP and python web service
I am planning to integrate real time notifications into a web application that I am currently working on. I have decided to go with XMPP for this and selected openfire server which I thought to be ...
2
votes
1answer
11k views
Why does gmail use java? Is there really a advantage over something like php or python? [closed]
Note: I know that none of you (probably) work for google, so this is a lot more of a conceptual question.
So yeah, i discovered that Gmail uses java and that got me thinking, Why?
I personally never ...
2
votes
1answer
3k views
Setting up Eclipse IDE for Python and PHP development
There are various versions of Eclipse IDE available at Eclipse Download. Since, I am not concerned with Java development, I downloaded the Eclipse Classic 3.7.1. Now, I want my IDE to be setup for ...
2
votes
1answer
603 views
is Python PHP polyglot a good design?
We have Python middle-tier for our Web App . Now we need to render 3 different HTMLs...
for older browsers (simple read-only interface)
for HTML5 browsers (LOT more complex than older browsers)
for ...
2
votes
1answer
496 views
Transferring information between a web server and a Python backend?
I have been Googling my problem but haven't been able to come up with anything; here's the situation:
I have a PHP / MySQL website hosted with 1and1.com.
I also have a Python program that runs on a ...
1
vote
4answers
352 views
Do all dynamically typed languages not support function overloading?
I have noticed that JavaScript and PHP and Python do not support function overloading.
Do all dynamically typed languages not support function overloading? If the answer is yes, then why is that?
1
vote
2answers
702 views
How can I work on multiple programming languages at same time [duplicate]
It always happen to me that if I leave the stuff for 1-2 months I forget the stuff.
5 months back I had symfony project and I did that. At that time I was very much confident that I can do any ...
1
vote
1answer
113 views
Should i use a separate droplet(DO) for the API?
I have a little app(PHP) that uses data from a third party. That data is processed constantly and saved into a database. And now i want to create a RESTful API to allow access to that data.
Should i ...
1
vote
1answer
202 views
Python: Counter for Simultaneous calls of a PHP script?
I'm trying to create a queue processing script that's purpose is to find particular files and apply actions based on specific parameters,
with the result being to call a PHP script that serves to ...
1
vote
1answer
153 views
Get data from scrap server
I deploying a web scrap server using scrapy. The scenario is a Linux server running mongoDB (or maybe mySQL I'm not sure at all...) and python scripts with scrapy framework.
The main question is what ...
1
vote
2answers
503 views
How can I automate the process of code review
I have a team that works on multiple technologies. I want to know how can I automate the process of code review for .Net, .Net MVC, Python, PHP, Drupal and HTML5/CSS with JavaScript.
I have read ...
1
vote
0answers
112 views
How does the FOSS exception for MySQL connectors apply to code written in PHP or Python?
I have looked all over and can't find clear answers to the following:
If I write code in PHP or Python that uses GPL MySQL connectors for PHP or Python - which license applies to my code? That of PHP ...
0
votes
1answer
787 views
Why does flask use Jinja2 and not xpath?
I'm just starting out with python and since I'm coming from a PHP background (thus have to adjust my mind to wrap around new concepts) one major question still stands without answer - why does Flask ...
0
votes
0answers
66 views
Architecture Design of Command&Control application center for displays
I am facing dilemma on how to best design the following functionality. What design patterns and OOD principles should I use.
For simplicity sake following are basic requirements:
displays type ...
-1
votes
1answer
298 views
Does the phrase “range for R1-1 through R10H” actually have an agreed-upon meaning? [closed]
I was recently sent a code test by a potential employer to complete on my own time. The first question has to do with identifying whether a given zoning code falls within a range of codes. I'm not ...
-1
votes
2answers
511 views
How are complex programs made? [duplicate]
I know a few languages, and can program in them. How do multiple languages blend together in a single program? For ex. https://github.com/facebook/watchman. This uses C, PHP, Python, Javascript, etc. ...
-4
votes
3answers
2k views
Why different languages have different syntax? [duplicate]
Different programming language always/most of the time use different syntax.
For example take PHP, Java and Python.
In Php & Java semicolons are compulsory at the end of the line, yet Python ...