The tag has no wiki summary.

learn more… | top users | synonyms

57
votes
1answer
9k views

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 ...
31
votes
6answers
4k views

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

There are some programming languages for which exist their own package management systems: CTAN for TeX CPAN for Perl Pip & Eggs for Python Maven for Java cabal for Haskell Gems for Ruby Is ...
29
votes
1answer
12k views

Module vs. Package?

Whenever you 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?
22
votes
5answers
2k views

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 ...
12
votes
3answers
1k views

What is the point of Java's package naming convention?

I don't understand why Java uses the reverse of a (probably hypothetical) domain name as the name of a package, while mostly there is no connection between the domain name that some people uses and ...
12
votes
4answers
186 views

Merits of Namepsaces/Packages

Some programming languages (e.g. Java and C++) have language features called "packages" or "namespaces". How useful is it really to have namespaces? It is possible to mark functions and classes as ...
8
votes
2answers
1k views

How to modularize and package a client-side Javascript library today?

I've been catching up with the modern client-side JS ecosystem and reading up on CommonJS and AMD (incl. associated tools - browserify, requirejs, onejs, jam, dozens of others). If I'm writing a ...
6
votes
3answers
2k views

Why we don't import a package while we use String functions?

I asked myself why we didn't import a package while we use String functions such as toUpperCase()? How they get in there without importing packages?
6
votes
3answers
2k views

What should I use for a package name if I don't have a domain? [duplicate]

Possible Duplicate: What is the point of Java’s package naming convention? What package name to choose for a small, open-source Java project? I write Java (and derivative languages with ...
6
votes
3answers
161 views

What do I need to learn to decide on rename/recompile source package names because of company rebranding?

My company is currently at a rebranding process and the brand names have been used in the sources' package names but these names are only visible to developers who maintain this code so nobody from ...
6
votes
3answers
734 views

What do you think about gems and eggs? Alternatives? [closed]

I've read recently some criticism (see 1, 2, 3) about the packaging distribution system of two popular programming languages: Ruby gems and Python eggs. The most important argument stated against them ...
5
votes
1answer
1k views

Good approaches for packaging PHP web applications for Debian

Many PHP web applications follow this model for installation and upgrade: Un-tar a source tar ball. Point Apache at the source. Navigate a web browser to the home page. Go through several web pages ...
5
votes
2answers
1k views

Abstract classes in package structure

I have an abstract class that will have many implementors. There are, of course, many places to put abstract classes in a Java package structure. Should the abstract class be in the same package as ...
4
votes
2answers
345 views

What does the “d” mean after linux packages? [closed]

I've noticed that a lot of the packages I've been installing on my Ubuntu machine has this "d" at the end. Googling it doesn't give me any answers that I can find. For example: FTP server - ...
4
votes
4answers
912 views

Packaging F#/C# Application

There is a .NET application built using F# (the core part, as a DLL) and C# (the GUI part, using WPF). What is the best way to package it and to make an installer package and what are the most ...
4
votes
1answer
306 views

Java-style package naming and second-level country domains

I own a .co.uk domain, and I whenever I've dealt with Java-style package naming, I've gone with uk.co.domainname. Once I encountered package that did the following: co.uk.domainname. Is one of these ...
3
votes
2answers
2k views

Packages organisation with MVC design pattern

I have been programming quite a lot now and still can't decide which of these packages hierachies was the best: package1 Class1Controller Class1Model Class1View package2 Class2Controller ...
3
votes
2answers
582 views

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

Should package structure closely resemble class hierarchy?

Pretty simple question. Should package structure closely resemble class hierarchy? If so, how closely? Why or why not? For instance, let's say you've got class A and class B, plus class AFactory ...
3
votes
4answers
343 views

Naming conventions and organization of packages

I've been programming in Java, C#, Python and AS3 most of the time and in all of these languages there are packages (or something like that). The problem I found is with the naming convention, or even ...
3
votes
1answer
236 views

Complex Release Vehicle Management

I'm looking into improving our build and release system. We are a .Net/Windows shop, and I don't see any really good tools for Windows for generating the files that are to be dropped in patch or ...
2
votes
3answers
193 views

Package name best practice when porting a library

What is the suggested way (specifically in the open-source world) for the package name when porting a library. Say I am porting someone else's library where they have used a reverse domain name ...
2
votes
5answers
2k views

Best way to set sys.path for “hot library” development in Python?

I have my Python source structured as follows: +-branchname/ +-dst/ +-src/ | +-library/ | | +-cleese/ | | | +-test/ | | | | +-__init__.py | | | | +-test_cleese.py | | | +-__init__.py ...
2
votes
6answers
400 views

How do I choose a package format for Linux software distribution?

We have a Java-based application that, to date, we've been distributing as a tarball with instructions for deploying. It's mostly self-contained so deployment is fairly straight-forward: Untar on ...
2
votes
3answers
339 views

Should I use a root namespace?

I'm currently working on a couple projects in Flash ActionScript, and I've been building up a small library of classes. I've been using a naming convention similar to: foo.events.Bar and ...
2
votes
2answers
505 views

How to solve circular package dependencies

I am refactoring a large codebase where most of the classes are located in one package. For better modularity, I am creating subpackages for each functionality. I remember learning somewhere that a ...
2
votes
1answer
452 views

Package conventions for MVC app [closed]

Which (if either) of the below is the more conventional/acceptable way to structure packages in a J2EE app? I'm trying to follow an MVC pattern as much as possible. foo.bar.users ...
2
votes
2answers
349 views

Package diagram for an MVC patterned project?

We are required to make a package diagram for our senior project. Since our project uses MVC patter design, we created an MVC class diagram, now, our problem is in creating the package diagrams from ...
2
votes
1answer
800 views

Good practices for packaging Python programs

I've been using Python for a while now, both in the context of personal and professional projects. One thing that occured to me recently is that I had never thought about a good way to deploy Python ...
2
votes
1answer
720 views

How can I develop a Package Manager for Embedded Systems?

I need to develop/use a package manager for an embedded Linux system with the following properties: A master fully controls which packages need to be installed (the slave has no possibility to ask ...
2
votes
1answer
309 views

What is the formal definition of a meta package?

There are several examples of packaging where an application package is built, named, described, even licensed, but contains only setup code and dependencies -- it has no first-class runtime software ...
2
votes
1answer
101 views

How do I know when should I package my classes in Ruby?

In Ruby, I'm creating a small game development framework. Just some personal project - a very small group of friends helping. Now I am in need of handling geometric concepts. Rectangles, Circles, ...
2
votes
0answers
38 views

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

Why rpm and deb package formats are not unified into one standard system?

I had this question asked on stackoverflow, but it was closed "as not a real question". So i decided to remove all rumbling and post that question here, assuming that this stackexchange is for ...
1
vote
1answer
41 views

Do any package managers provide select-one dependencies

With jquery very slowly being phased out you get into more and more situations where library X will run with either jquery or zepto.js (but at least one is required). No package managers that I can ...
1
vote
1answer
163 views

Understanding Package Management Systems

I am attempting to understand what a Package Management System. I grasp the main concept of it but I have some queries. Does a package management system install features(compilers, libraries, ...
1
vote
2answers
136 views

FOSS Development: Who develops the OS-specific packages?

I have a couple of FOSS projects. They can be a bit of a pain to get running unless you've got dependencies in place already, which I figure is par for the course for FOSS projects. We know that each ...
1
vote
0answers
79 views

Should I assert in packages?

I have read a few asserts vs exception questions already; I ask specifically about package visible classes though. When you write a package, the classes marked with "public" are exposed to the ...
1
vote
0answers
46 views

Can I use dynamic packages in Delphi if I plan to build my application for cross platform usage?

Now I am thinking about architecture of my program. I plan to provide one not only for Desktop usage, but for mobile platforms as well. I want to create a bpl package as separate file. That is I want ...
1
vote
1answer
153 views

Component design: getting cohesion right

I currently have a set of components named DataValues, ValueParsers, ValueFormatters and ValueValidators. The first one defines an abstract base class DataValue and contains a whole load of ...
1
vote
0answers
55 views

What are the benefits of having a remote database for your command line utility

I'm current working on a command line app that will grab resources online for you when you're setting up a new project locally. Right now all the urls for the resources I need are hardcoded into the ...
0
votes
1answer
142 views

Why would you opt to fully qualify a package instead of importing it?

In java, to print the date we could do either of the following: Fully qualified public class MyMain { /** * @param args */ public static void main(String[] args) { // TODO ...
0
votes
1answer
143 views

Why are Python's package names not creative? [closed]

First, I LOVE Python, and Python is my first programming language. I'm just wondering why Python's packages got kinda ugly unmemorable and sometimes very long names? I find other languages (e.g. ...
0
votes
1answer
421 views

Creating java package on ubuntu? [closed]

I am new to java. Here I am trying to create java package. And try to compile it from another directory . But there is an error like bash: /home/gaurav/Desktop/package2/B.java: Permission denied Here ...
0
votes
1answer
30 views

How can I gauge the supportability and reliability of a package before introducing it to a project? [closed]

I recently found a package (JavaBuilders) that I like and I think will help develop on my project but it has some issues: No longer being developed (last commit on github >1 year ago) Lack of ...
0
votes
1answer
57 views

How does package naming affects Android application once deployed

Are there conventions to follow when naming an application package for an Android application? I'm coding in Xamarin Studio, using .Net, so I feel far from this "com.myapp.etc" naming convention. Are ...
0
votes
1answer
90 views

Where to put variables needed across classes?

I have 3 classes: a JButton extension, FButton; a JTextField; and a JPanel extension, FPanel, that would contain one instance of both. The FButton is supposed to open a file, and make the file name ...
0
votes
1answer
132 views

PHP composer question

just getting started with composer and I have a couple of questions. When I use composer to add a dependency, the dependency gets added to my folder's Vendor directory. The newly added package not ...
0
votes
2answers
174 views

What are the steps to grouping related classes into packages

What are the steps needed to be taken to group related classes into packages in Java? In my case, I have about a number of .java files that I'd like to group into 3 packages according to the MVC ...
0
votes
2answers
118 views

Utilizing a Java Concurrent Utility from a Web App

I have the following lines of code in my application: return "Service is alive since: " + TimeUnit.MILLISECONDS.toMinutes(mxBean.getUptime()) + " minutes"; It uses the following package: import ...