Questions tagged [packages]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2
votes
6answers
192 views

Why don't packages formally specify (and repositories verify) their contracts

So, most software depends upon third-party libraries, to some extent or another. Specifications of such libraries' behaviour usually takes the form of human-readable documentation. We write ...
-3
votes
1answer
124 views

Is there a standard format for build packaging or do I need to invent my own format?

I have a build pipeline that builds my C++ project on Windows, macOS and Linux. The build process generates 100 libraries and files on each OS. So I have a directory with these files, and I want to ...
0
votes
1answer
35 views

Packaging a python project which requires non-python packages

I'm following the python documentation about "distributing packages using setuptools". It doesn't mention what to do if a python package you want to include in your install_requires requires a system ...
0
votes
1answer
85 views

To structure big and expandable project(s)

TLDR with bold I want to create a library (I think this is the right term) for my own reinforcement learning environments (envs for short). Most of the envs would be based on self-implemented games ...
2
votes
0answers
35 views

How to deal with package management when having a monolith broken down in packages?

At our company we have a monolith PHP application which has been broken down into multiple (self developed) packages around the (self developed) framework package. This application isn’t a SAAS ...
-1
votes
1answer
73 views

Do publishing and deployment mean the same?

https://docs.microsoft.com/en-us/dotnet/core/tutorials/publishing-with-visual-studio In Create a Hello World application with .NET Core in Visual Studio, you built a Hello World console application....
1
vote
1answer
72 views

Does it make sense for a package to depend on, e.g. import, its nested packages?

I think depending on nested packages is wrong, because the nested packages are always going to depend on the parent —aren't they?– and this can lead to cyclic dependency issues. When I look at how ...
1
vote
1answer
65 views

Managing compatibility and dependencies in code library

I manage a library that is made of multiple components, there is some dependencies between some of these components, for example I have a core library for common code base that is referenced by other ...
-3
votes
1answer
71 views

Packaging of a web application code-base [closed]

Michael Nygard writes in Release It!: Have you ever checked in a commit that had bunch of new files like "Foo", "FooController", "FooFragment", "FooMapper", "FooDTO", and so on? That is evidence of ...
-1
votes
2answers
349 views

Difference between package and component?

I commonly come across the terms "package" and "component" in software engineering. To my understanding, both indicates an independent software that can be used by another (larger) software. What ...
0
votes
1answer
49 views

How to set up import main module while developing a Python package

This is a matter of naming, structuring and conventions. I am developing a simple python package. in a directory "PKG" I have 3 files: __init__.py: # import the main module import PKG.main # in ...
1
vote
1answer
50 views

Best way to deal with multiples projects when using go mod/vendors

I am pretty new with go mod and vendor... I have a project A and a project B out of the GOPATH. I import project A in project B. I own both projects and I modify them. As I use externals packages ...
1
vote
1answer
156 views

Build docker images for GUI applications in Linux

Currently I'm building GUI applications for Linux and they have many dependencies( We ship Raspberry Pi devices with the executable installed on each device). My idea is to create a docker image for ...
2
votes
3answers
209 views

Doubt about package-by-feature and circular dependencies

I am implementing a library that: Takes some input data (I put data structures and classes in the parsing package) Stores the data in a structure (I put data structures and classes in the storage ...
0
votes
0answers
33 views

Packaging for distribution: include CI config and other files the end user doesn't need in the package?

(Disclaimers: I have checked on Google and this site. I have read this answer, which is the only related one I could find here. Additionally, that answer is from 2017, and I wonder if things have ...
1
vote
1answer
34 views

modular system (packages) with dependencies?

I am building few sites for my company's client. The sites are mostly the same but could have some customisations. so we decided to create duplicate sites instead of multi-tennant and we decided to ...
2
votes
1answer
49 views

Is it reasonable for an R package to import another package just for coding convenience?

I am writing my first R package, converting my existing scripts into a bona fide package. I frequently use the magrittr pipe operator %>% in my code because I find it makes code more intuitively ...
3
votes
2answers
114 views

Build pipeline, dependency on unreleased package

My team is currently making some changes to our solution structure. Before the change we basically had a single solution file with about 40 different projects. Most of these projects are libraries ...
0
votes
1answer
51 views

Should libraries be packaged together based on similar traits?

I just started a new job and one of my first tasks is to create local nuget packages from the existing libraries, to help with versioning, maintenance, etc. This task had already been started by ...
0
votes
1answer
25 views

Share some small bits of functionalities across packages

Suppose that: you invent a new coordinates system and you create a class to represent it you have two products which need to deal with this coordinates system but which, apart from that, are ...
0
votes
1answer
222 views

Cross-cutting concerns in package-by-feature structure

What is your suggestion on where to put cross-cutting concerns in a package-by-feature structured app? This aspect seem to be missing from most of the pro package-by-feature articles I have read. ...
2
votes
1answer
230 views

What do you put in a “common” package? [duplicate]

I am trying to develop my package structure based on features rather than layers, but am struggling to find a package name for some of the classes. I have seen people use a package name of common for ...
0
votes
1answer
73 views

Creating data files inside a package

I'd like to deploy my code to a web server as a package. There Python is subprocessed and scripts are executed. These scripts use data files. But in case a file is needed and it doesn't exist, it ...
2
votes
0answers
119 views

Packages, a controller class, and coupling vs cohesion

So I'm building my first application, in Python, and some issues have cropped up because of the lack of interfaces (I.e. explicit type declaration) My design involves several homebrew packages, and I'...
69
votes
9answers
17k views

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 ...
1
vote
2answers
911 views

Major version number as part of package name / namespace?

Background In a software ecosystem where different packages depend on different versions of other packages, sometimes dependency resolution ends in a version conflict. Example: Root package A ...
13
votes
3answers
1k views

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 ...
1
vote
1answer
1k views

If I package by feature, but have many homogeneous classes, what is preferable?

I am wondering whether this is the correct way to handle my situation when packaging-by-feature. Use the following project structure as an example: com.foobar.web.Bootstrap.java com.foobar.web....
1
vote
2answers
633 views

Private or default visibility for “file-private” members?

I have a class like this public final class Outer { static final class Inner { /* Used in the package. */ void f() {...} /* Used in Outer. */ WHATEVER void g() {.....
3
votes
1answer
2k views

Breaking a Large Python Project into Multiple Packages

I have a medium sized Python program (12 KLOC) organized as a single Python package with multiple subpackages: proj/ setup.py proj/ __init__.py projfile1.py subproj1/ ...
1
vote
1answer
121 views

Isn't it redunant to declare package in the class file? Can't it be inferred from the build path?

I have class Foo, its first line reads package com.bar.something.baz. Its file is in /com/bar/something/baz/. Why do I have to declare the package in the class file and then put the file in the same ...
0
votes
1answer
871 views

Interface design of Java library with interdependent yet decoupled packages

I plan to write a library in Java, consisting of packages A, B, C and so on. Every package encapsulates a part of the big picture. B relies on A, C on B and so on. For this purpose every package ...
4
votes
1answer
203 views

How do package managers generally deal with squatters?

How do package managers deal with packages that use a package name but then abandon it or from rogue package names that are similar that host malware in the hope that an unsuspecting developer will ...
2
votes
1answer
486 views

Package-by-feature confusion for libraries

As I understand it, it's generally recommended to package by feature rather than by layer. This promotes higher levels of abstraction and modularity between classes. I can understand how this works ...
5
votes
4answers
401 views

Distributing Java code into packages using a clustering approach

Theory is, that classes which strongly know and use each other should be in the same package (using package visibility for functions that are not used by the rest of the application), thus forming a ...
0
votes
2answers
67 views

Is changing the PATH in C comparable to `source` a virtualenv in Python?

Virtualenv appends its own path to $PATH, effectively overwriting the Python to the one picked when the virtualenv is created. Would changing the $PATH work equivalently as virtualenv in a compiled ...
3
votes
1answer
472 views

How can I be sure that an unofficially uploaded NuGet package is genuine?

I've come across a few cases lately where a package on NuGet has a name that starts with "Microsoft" but is actually uploaded by someone else. Take Microsoft.TestApi for example. Ostensibly this is a ...
64
votes
3answers
14k views

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 ...
2
votes
3answers
162 views

Automatic package distribution system Windows [closed]

I have built a Windows-only desktop application which is composed of two main executables and various configuration files. The two applications are developed in different languages (JS and C++, ...
1
vote
1answer
103 views

Overtake the maintenance of a software package

Recently I am using a software package which seems pretty useful, but which I don't understand how it works internally. This package contains software generated by several PhD students and lecturers ...
3
votes
1answer
1k views

What are common Java dependency management strategies?

I am currently preparing a presentation for my software engineering class, in which I want to present the idea of package dependency management in Java on the example of "radial encapsulation" (http://...
9
votes
2answers
4k views

How to encapsulate internal classes in an API written in Java?

We have to write a library. Naturally, it should only have a very small API (as broad as needed as small as possible). The internals of the library are somewhat complex. Therefore, they need ...
13
votes
3answers
3k views

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 ...
1
vote
3answers
154 views

Store Nuget\NPM packages in VCS with source or not?

Is it good practice to store Nuget or NPM (or other) packages in the source control with the source, or to keep them in some other place? My gut says they belong with the source, however a package ...
4
votes
1answer
2k views

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 "...
12
votes
1answer
10k views

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....
2
votes
2answers
158 views

Is it good practice to use a free website as a package

Is it good practice to use a free website as package identifier if I do not have a real website? EG com.weebly.vikarjramun.myapp.myactivity Just wondering...
0
votes
1answer
266 views

What would be the best way to structure packages to avoid duplicate package names when a sub-package is repeated?

Sorry for the long somewhat unclear title, couldn't think how to word the problem I'm having. So basically I have a package structure with two reasonable alternatives (as far as I can see) but both ...
-1
votes
1answer
752 views

What to name package and their facade classes?

I'm using a some C++ Facade classes like this: Suppose that there is package named "SubSystem" with a lot of classes inside, like in the picture above. I cannot name the package of the facade ...
4
votes
3answers
9k views

Same class and namespace name

I have a problem how to go about naming my namespaces and classes. I already figured they shouldn't both have the same name, as it causes all kinds of problems. Most notable problem for me is that I ...