All Questions
76 questions
6
votes
2
answers
649
views
When the stack frames become computationally expensive
I've been experimenting with different data structures and algorithms in Python, Java and C to see in what circumstances function/method inlining could bring meaningful gains in terms of the execution ...
-3
votes
1
answer
147
views
Learn a framework on a project, or mix languages between backend services [closed]
I am designing my next project, which will do various domain-specific tasks, but all that will be controlled and used via a generic crud web app.
I have been professionally using Java with Spring for ...
2
votes
1
answer
1k
views
In Python when is absolutely preferable to use a class instead of a module?
Python is the language I use most in this period.
My background in Java
Before start learning Python I have programmed in Java language. In Java all code is written inside the methods of a class and ...
3
votes
2
answers
377
views
Best approach to microservice shared databse architecture
I have two microservices, one Flask (python) and one Spring (java), they currently share a database. The Flask microservice handles processing json files (~40mb) for each user (could be 100's or 1000'...
21
votes
4
answers
4k
views
How do non-RAII languages free resources during stack unwinding?
C++ features deterministic order of calling destructors up the call stack until the exception is handled somewhere.
To my knowledge, neither Java nor (object oriented) Python provide this. In those ...
-2
votes
1
answer
124
views
What should I use to graphically represent an object's position on a fixed path using python(preferred)?
Consider 2 roads merging into one(This map is supposed to remain fixed). The program will not generate this map. The program will read this map and plot positions on it on its own.
The python program ...
-2
votes
1
answer
104
views
How Uber processes orders?
Lets say you created an order. Since Uber is a very dynamic system, one should constantly check if there are available drivers for you.
If orders are saved as a some collection (e.g. in MySQL table ...
-2
votes
1
answer
988
views
How to make code runnable on open source code editors like Ace Editor?
For my computer science uni project I'm required to build a web application with an integrated code editor. I believe I can just integrate open source editors like Ace Editor.
However, I feel ...
3
votes
2
answers
769
views
What is the best way for transferring large datasets between an old java app and a python app on the network?
I am working on a machine learning project at the moment which requires me to transfer the data from an old Java app(which is also the custodian of the data in current paradigm) to a python service ...
17
votes
6
answers
9k
views
How to implement float hashing with approximate equality
Let's say we have the following Python class (the problem exists in Java just the same with equals and hashCode)
class Temperature:
def __init__(self, degrees):
self.degrees = degrees
...
0
votes
1
answer
236
views
Is Java-like restrictiveness OK Python style?
Good Pythonic style is much looser than Java's uptight restrictiveness:
In Java, good style means private on methods wherever possible, all fields encapsulated, type declarations, defined ...
1
vote
0
answers
107
views
Making java code usable from other programming/scripting language
We are "extending" a product developed by a third party and working with them on that. There's a small problem though. They have some functions (written in java) that they use in their Android mobile ...
-5
votes
5
answers
305
views
I learnt a languge suppose (Java). I also know python. I want to write a simple app. Is there any way to run both language same Time?
I had been learning python and i know Java. if i were to write a simple program, can i write both programming language in one document or compiler?
I got into this problem because if i cannot merge ...
1
vote
1
answer
488
views
Using lambdas to simulate python generators in java
I am currently dealing with an app that has several classes which are used to compare files in various formats (xls, csv, xml, html, pdf...). They are all implementing an interface that is defined ...
0
votes
1
answer
722
views
Why are we using mutable collections but immutable strings
In three popular platforms I'm familar with(.NET, java, python) strings are immutable but lists are by default mutable.
In all languages there is some functional support(linq, streams, list ...