Skip to main content

All Questions

2votes
1answer
3kviews

What is the idiomatic way to split code between separate files in Rust?

Coming from the world of C#, where, despite sharing namespaces, it's quite common for every class to have its own file, I find that Rust codebases seem to have a complete different sort of philosophy (...
Brian Reading's user avatar
7votes
2answers
7kviews

What's the best way to handle a large multi-file class in Javascript?

I have a very large class of 59 methods and about 3000 lines of code. I know that's far larger than most people would want, but the class represents a virtual machine, and most of the methods are run ...
curiousdannii's user avatar
5votes
1answer
5kviews

Where do you put the "main function" of a Python app?

Suppose you are developing a Python standalone application (not a library). Would you make it a Python package? Or just files next to each other? If you would make it a package, what would be the "...
Aviv Cohn's user avatar
1vote
1answer
916views

Analysis project structure in Python

I am about to embark on a large analysis/data extraction project, which I intend to do with Python. My data to analyse consists of tier 1 files that include some details. and each file points to ...
MrGumble's user avatar
1vote
0answers
82views

Dealing with proj files in multi-platform apps

So I've been doing some cross-platform mobile applications using cocos2d-x. Basically it uses common c++ code, that can easily be compiled to the popular mobile platforms with some small wrapper code ...
KDiTraglia's user avatar
6votes
4answers
5kviews

Front-end structure of large scale Django project [closed]

Few days ago, I started to work in new company. Before me, all front-end and backend code was written by one man. As you know, Django app contains two main directories for front-end: /static - for ...
Saike's user avatar
1vote
1answer
689views

In Python, what is the proper testing structure for packages containing packages? [closed]

Which is the preferred test package structure for packages containing subpackages: Tests in Subpackages? a/ __init__.py b.py c/ __init__.py cc.py test/ __init__.py ...
Jace Browning's user avatar

close