Questions tagged [packages]

Packages are bundles of software artifacts, such as distribuable components (libraries, modules,...), source code elements, or modelling elements.

Packages are bundles of software artifacts, such as distribuable components (libraries, modules,...), source code elements, or modelling elements.

145 questions
320
votes
4 answers

Should package names be singular or plural?

Often, in libraries especially, packages contains classes that are organized around a single concept. Examples: xml, sql, user, config, db. I think we all feel pretty naturally that these packages are correct in the…
Nicole
  • 28,111
  • 12
  • 95
  • 143
159
votes
1 answer

Module vs. Package?

Whenever I do from 'x' import 'y' I was wondering which one is considered the 'module' and which is the 'package', and why it isn't the other way around?
Dark Templar
  • 6,223
  • 16
  • 46
  • 46
105
votes
3 answers

Folder-by-type or Folder-by-feature

I make use of an AngularJS style guide. Within this guide there is a style called folder-by-feature, instead of folder-by-type, and I'm actually curious what's the best approach (in this example for Java) Let's say I have an application where I can…
Jelle
  • 2,014
  • 2
  • 12
  • 19
96
votes
5 answers

Why are there no package management systems for C and C++?

There are some programming languages for which exist a package management system: CTAN for TeX CPAN for Perl Pip & Eggs for Python Maven for Java cabal for Haskell Gems for Ruby npm for NodeJS bower for frontend Javascript & CSS nuget for…
m0nhawk
  • 1,490
  • 3
  • 17
  • 25
69
votes
9 answers

Why prefer a package manager over a library folder?

When I think about the pros and cons of a static library folder and a package manager I feel like the library folder is a better approach. Pros I see with a library folder: No need for an external tool to manage packages. No internet connection…
Ignacio Soler Garcia
  • 1,574
  • 2
  • 11
  • 17
43
votes
4 answers

Get license information for all used NuGet packages

To keep our house in order, I want to automatically assemble licenses for project dependencies in our documentation, rather than having to add them manually. Does anybody know a simple way to traverse programmatically a set of CSPROJ files and…
Byron Ross
  • 627
  • 1
  • 5
  • 8
35
votes
1 answer

Single python file distribution: module or package?

Suppose I have a useful python function or class (or whatever) called useful_thing which exists in a single file. There are essentialy two ways to organize the source tree. The first way uses a single module: - setup.py - README.rst - ...etc... -…
DanielSank
  • 461
  • 1
  • 4
  • 7
29
votes
2 answers

Why are packages and modules separate concepts in Java 9?

Java 9 will have modules in addition to packages. Usually languages have one or the other. And most programmers perceive two terms as synonyms. Modules are built on top of packages, treating them as primitives. Composite pattern suggests to treat…
user2418306
  • 578
  • 1
  • 5
  • 14
29
votes
5 answers

When did the standard for packaging Linux source code become .tar.gz?

When browsing open-source projects that are primarily developed for Linux systems and downloading the latest packages, the source code is always stored in a .tar.gz or .tar.bz2 file. Is there any reason for using .tar.gz or .tar.bz2 rather than…
Joe Z.
  • 667
  • 7
  • 14
25
votes
3 answers

What package name to choose for a small, open-source Java project?

I'd like to publish a small open-source library in Java. I wonder what package name should I choose? I'm not a company and I don't have a domain that I could use as the basis for naming the package according to the naming conventions. Still I'd like…
Petr
  • 5,507
  • 3
  • 29
  • 46
22
votes
4 answers

Semantically more appropriate package name than `util` for the following things?

As a strawman consider the package java.util it is a dumping ground for various classes that in most cases do not share anything in common other than the person that put them there was lazy or uninspired to come up with a more semantically correct…
user7519
20
votes
1 answer

What does `Resolving` mean in programing?

I see in many places where the word Resolve is used, in Dependency Injection (resolve an implementation to an interface), Package Managers (ex: Resolve packages dependencies), Web (ex: Resolve a hostname). So what does make the logic of the code so…
18
votes
1 answer

Naming convention for test packages

We're actually naming our test packages just like their to-test counterparts. So we end up with this structure: src/main/java com.hello.world helloWorld.java src/test/java com.hello.world helloWorldTest.java I always felt…
OddDev
  • 409
  • 1
  • 4
  • 12
17
votes
3 answers

package and version strategies in a multi repository environment

We are a small-ish firm with multiple teams who manage their own git repositories. This is a web platform and each team's artifacts are deployed at the end of the day for nightly tests. We are trying to formalise the process around versioning and…
16
votes
4 answers

How should one manage constants across multiple languages?

I have a situation where I support what is functionally the same library in multiple languages. There are often constants that need to be shared between these (for example, json field name keys or error codes). The way I currently do this is by…
enderland
  • 12,091
  • 4
  • 51
  • 63
1
2 3
9 10