Tagged Questions
38
votes
7answers
23k views
Why use try … finally without a catch clause?
The classical way to program is with try / catch but when is it appropriate to use try without catch? In Python the following appears legal and can make sense:
try:
#do work
finally:
#do ...
31
votes
5answers
3k views
Java dev learning Python: what concepts do I need to wrap my head around?
I've run through a few tutorials and written some small projects. I'm right in the middle of a small project now infact. All is going well enough thanks in no small part to Uncle Google (who usually ...
26
votes
8answers
4k views
Is the algorithm more important than the programming language?
During the current (2013) Google Code Jam contest, there was a problem that took C++ and Java people 200+ lines of code as compared to Python people that solved the same problem only using 40 lines of ...
24
votes
6answers
8k views
Programming language usage at Google
I have heard Google uses Python, Java and C++. But what I don't know is how is each of those programming language is used. I mean what is Python, Java and C++ is used for at Google. Why would they ...
23
votes
5answers
6k views
Is programming in Python faster than in C, C++ or Java?
There's a widespread belief among programmers that the more dynamic and loosely typed the language, the more productive the programmer will be in it. Guido van Rossum wrote about programming ...
18
votes
11answers
4k views
Why hasn't C# gained much traction within the opensource community?
I'm not expecting C# to be on par with say Java or Python in the open source community, but it still surprises me just how far behind it is.
'Multi language' open source repos like google code or ...
16
votes
5answers
4k views
why there is no power operator in java / c ++? [closed]
While there is such operator - ** in Python , i was wondering why java and c++ havent got one too.
It is easy to make one for classes you define in C++ with operator overloading ( and i believe ...
16
votes
3answers
2k views
How to solve the problem of nested comments
It appears in not just one language that comments can't be nested. Do you have a good solution for this problem? One workaround in C/C++ and Java is to only use the single-line comment but it becomes ...
15
votes
6answers
3k views
Best practices in comment writing and documentation
Commenting nowadays is easier than ever. In Java, there are some nice techniques for linking comments to classes, and Java IDEs are good at making comment shells for you. Languages like Clojure even ...
14
votes
7answers
6k views
Python productivity VS Java Productivity
Over on SO I came across a question regarding which platform, Java or Python is best for developing on Google AppEngine. Many people were boasting of the increased productivity gained from using ...
13
votes
5answers
11k 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.
Always these benchmarks reveal that Python is slower then Java and faster than PHP. And I wonder ...
12
votes
8answers
889 views
Thinking of simultaneously coding the same project in two languages. Good Idea?
Is this a good way to learn a new language? Or to develop a preference of one language?
I was thinking of coding a project in both Python and Java. The only foreseeable problem is trying to transfer ...
11
votes
9answers
3k views
Why are inheritance and polymorphism so widely used?
The more I learn about different programming paradigms, such as functional programming, the more I begin to question the wisdom of OOP concepts like inheritance and polymorphism. I first learned ...
10
votes
10answers
4k views
Do I have to learn html and javascript to create web applications?
I am an experienced Java programmer, and I want to create a complex web application requiring dynamic pages, drawings, etc (take SO as an example). Do I have to learn javascript/html in order to ...
10
votes
9answers
2k views
Is there any difference learning OOP on different programming languages? [closed]
I want to learn OOP. I know Python and I know very little things about OOP.
But when I search for "learn OOP" in forums I saw a guy saying that "Python is so new that's why you can't learn OOP on ...
9
votes
6answers
1k views
Pythonic Java. Yes, or no? [closed]
Python use of indentation for code scope was initially very polemic and now is considered one of the best language features, because it helps ( almost by forcing us ) to have a consistent style.
...
9
votes
5answers
489 views
How is the JVM and Java's WORA different from other high level languages?
In the Java world, we often talk about the JVM, and when Java was new it had the supposedly killer feature of "Write Once, Run Anywhere."
From the way people talk and write, this seems different from ...
8
votes
2answers
9k views
Open source projects, how to choose?
I would like to join an open source project since I think I am good enough at programming to progress onto reading others code and to modify it. But the problem is, how would I choose an open source ...
7
votes
3answers
3k views
Differences between “Java OOP” and “Pythonic OOP”? [closed]
I started with ActionScript 2.0 and then went on with Java. I have learned, or at least used, a bunch of languages since then, including Python (probably my favorite).
I'm afraid that my style of ...
7
votes
4answers
8k views
Java or Python for internet application? [closed]
In choosing a technology for internet applications where the number of users may scale over time, which one should we consider: Java or Python? What are the considerations in choosing one and not the ...
7
votes
8answers
2k views
Python : how can I impress people coming from Ruby/Java?
I am preparing a presentation about Python for my company, and would like to show Python's awesomeness to developers using Java or Ruby ! I guess it will be very simple to write shorter and cleaner ...
7
votes
3answers
916 views
How to sync clocks over networking for game development?
I'm writing a game that has a lot of time based aspects. I use time to help estimate player positions when the network stalls and packets aren't going through (and the time between packet's being ...
7
votes
5answers
5k views
What skills are needed for machine learning jobs?
I posted this question on Quora, but didn't get enough responses. reposting it here.
I am a learner sitting at home and learning linear algebra, very interested on working in Machine Learning ...
6
votes
3answers
392 views
From an execution perspective is an interpreter the same as the JVM / or the .net Framework
I've recently started two introductory level courses - one using Python, the other Java.
I've read the answers to this Question but still have difficulty understanding how each ends up with machine ...
6
votes
7answers
719 views
Where is the best place to get off my feet in Python programming? [closed]
I have tried to learn C++ and Java before, but the syntax confused me. I definitely will be learning them after, but for now, where is the best place for a guy who has programmed before to learn ...
5
votes
2answers
316 views
Is there a name for the number of values a variable can take? [closed]
For example, a bit or a boolean can be either 0 or 1 so the number 2 is associated with it. Similarly, for a byte which is 8 bits, the maximum number of different assignments would be 2^8.
Is there a ...
5
votes
2answers
649 views
How to create contracts in python
I am currently learning Python (from Java) and have a question on contracts.
Example: an application defines an interface that all plugins must implement and then the main application can call it.
...
4
votes
10answers
1k views
I'm 15 years old. What would you recommend for resources? [closed]
I'm a 15 year old kid who seems to excel in all of his classes, likes talking in 3rd person, and wants to learn more about programming and a little about html/php stuff. I already know a little ...
4
votes
1answer
414 views
Is it possible to write a code without class methods, globals, and class variables? [closed]
I'm designing my own programming language for fun, and I'm thinking of making it fully Object-oriented (no statics, no globals, no class variables, no class methods), so I need to find a way to ...
4
votes
1answer
303 views
What kind of problems is an Android beginner likely to encounter in using Scala?
I am a hobbyist programmer who makes and maintains one production system, largely coded in Python, which now has to be ported to Android. I don't know Java at all. However, SL4A in Android makes ...
4
votes
4answers
2k views
Advice on which technologies to use for a client-server desktop application
I am writing a desktop application in Java which will allow clients to authenticate to a server with their credentials, and afterwards view and manipulate some data (orders, invoices, employees etc.) ...
3
votes
3answers
460 views
Using Jython and Tomcat in bundle - should we even try to?
Have you ever used Jython in bundle with tomcat in any serious, production-ready service?
What pros and cons can you name?
Is it worth trying if all guys in team has no problems with coding on Java, ...
3
votes
1answer
620 views
Is Python's C interface faster than JNI?
I was reading What makes JNI calls slow? and I was wondering if Python's C interface is any better than JNI.
I heard that if you want to make certain parts of your python programs faster, or if a ...
3
votes
2answers
221 views
Do I need to learn python first to understand the part 2 of the book Test Driven development?
It seems like Python is used as a coding language for part 2 of Kent Beck's book Test Driven Development. I have read the first part of that book and started appreciating the value of TDD . First part ...
3
votes
4answers
735 views
Python vs. Java for embedded wireless module
We are developing a product at work which interfaces with basic I/O and sends data to a webserver over a GPRS connection.
What i need to know before we commit to a product, is which language is more ...
3
votes
1answer
721 views
Is MVC the optimal pattern to build a RESTful web service?
Not being a Java practitioner, I recently came to learn about the JAX-RS specification and Apache CXF framework. While still wrapping my head around all these things, I also read the this question on ...
3
votes
2answers
918 views
Web Services as a Back end
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
1answer
445 views
Web app outgrowing current framework
I have quite a bit of experience with using Django for websites and so when I started a new project I naturally chose to use Django for it. Everything went well for a time but now the application is ...
2
votes
8answers
767 views
tips, guidelines, points to remember for rendering professional code? [closed]
I'm talking about giving clients professional looking code. The whole nine yards, everything you hardcore professional highly experienced programmers here probably do when coding freelance or for the ...
2
votes
9answers
1k views
C vs C++ for a Java (and possibly python) Programmer [closed]
I am a Hobbyist Java programmer and I would like to further my programming skills by learning C or C++ and Python.
I have read many C vs C++ articles but none of them contain the information I'm ...
2
votes
3answers
716 views
Is it possible to have an effective VIM environment for both C++ and Python?
I have recently moved to a VIM environment for Python development. I learned the setup from John Anderson's outstanding web page on the subject. I am about to try and set up another VIM environment ...
2
votes
4answers
238 views
Call a script over the network
I have a Python script on a box that I want to call from a Java server, over the network. I know that I can start a server on the Python side and then connect to it from the Java site, but I am trying ...
2
votes
1answer
900 views
What should I think about when switching from Python to Java? [duplicate]
Possible Duplicate:
Java dev learning Python: what concepts do I need to wrap my head around?
I was a Java developer in the early 2000s, switched to Python in 2008 and now I am working in ...
2
votes
1answer
1k views
Difference between Controller and Dispatcher in MVC for web frameworks?
In MVC applied to WSGI or Java EE, is the Servlet a controller, dispatcher, or both? I think I've seen system diagrams where the controller and the dispatcher are different. Could the controller ...
2
votes
1answer
569 views
Getting involved in an open-source Python-Java project [closed]
I'm a first-year PhD student in Ireland. My background is in mathematics, though I'm going to stream my career into programming with Python, Java and C++ languages. I have some good experience with ...
2
votes
1answer
896 views
graph data structure in Java (or Python)
does Java have graphs as an intergrated data structure? How about Python?
I was assigned to write a program, that solves the TSP (travelling salesman problem) via the GRASP (greedy randomized ...
2
votes
1answer
1k views
Java or Python for Google App Engine not knowing either language?
I have a few project ideas that I'd like to deploy on GAE. I'm interested in developing a logging application for amateur radio contacts, shortwave, and utility monitoring. More complex projects ...
1
vote
1answer
3k 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 ...
1
vote
2answers
1k views
How far is the trail from Java to C / C++? [closed]
I want to find out how easy or hard the transition to C / C++ is for a mid-experienced Java programmer.
I've already read the questions about "C++ for Java Programmers" and "Is it necessary for Java ...
1
vote
1answer
157 views
Pythonic version of Java interfaces
I fully acknowledge that Python and Java are different programming languages and should be used differently. That said, "Program to an interface, not to an implementation" is good language-agnostic ...