All Questions
Tagged with libraries programming-practices
18 questions
2
votes
2
answers
609
views
Is trunk-based development viable for SDK development?
Is trunk-based development (TBD) viable for development of software where versioning, compatibility, long term support and service level agreements (SLA) play a big role for business (e.g. libraries, ...
0
votes
1
answer
1k
views
How to handle config/env vars in a library project
I am building a new Python library project to be consumed by several of my application projects. The existing code consumes environment variables for various configuration settings. Should my ...
1
vote
1
answer
401
views
Large executable size due to libraries/frameworks
My question sounds a bit dumb.
Usually we are suggested to use existing libraries or frameworks, to avoid reinventing the wheel, or to achieve some "good practices" (e.g. during software distribution)...
1
vote
1
answer
2k
views
How to control optional dependencies of a header-only library in `CMake`?
I am developing my own header-only library that I want to use as a framework in other software. I am using CMake for setting up demo targets, tests, and so on.
However, I am unsure how to deal with ...
3
votes
2
answers
332
views
(System) Hooks for embedded libraries
With the inability to go into to much detail, imagine the following situation:
You are developing a library that needs to run on various embedded platforms (AVR, ARM, etc..). Some functionality of ...
4
votes
1
answer
279
views
Should code be written to stay consistent with the unidiomatic API style of a library?
I'm currently using the wxPython library to construct a GUI. One interesting aspect of the library I've noticed is that it uses CamelCase notation to write method names, as opposed to the snake_case ...
40
votes
5
answers
5k
views
Is it considered an anti-pattern to read from STDIN from within a library?
While writing a library for a large project I'm working on at work, an issue came up which required a token to be sent to an email address, and then passed back into the code where it can then be used ...
4
votes
2
answers
251
views
Using tiny number of classes from a large library
I wrote a utils library (5 KLOC) that a lot of my projects use. I've also written a very small project (150 LOC) that needs just 1 or 2 of the classes in the utils library.
I really don't want to add ...
2
votes
1
answer
146
views
Writing a library for accessing persisted DBMS data - what should I pay attention to?
I'm working on this project which, for certain reasons, will need to read the data that's persisted by a DBMS (*). The data is not serialized objects with class information, representation of pointers ...
6
votes
5
answers
362
views
How can a programmer know whether he has to program a method or search for it in a library? [closed]
I am a beginner programming in Java. And when confronted with a new task I wonder whether I should code the function or search for it.
For example, if I want to calculate 10!, or cos A, I reckon that ...
1
vote
1
answer
85
views
Is an all-encompassing enumerator appropriate?
I will illustrate the problem with a specific case. Suppose we have a bit-flag style enumeration type defining different kinds of validations. It's tempting to define an enumerator like ...
0
votes
1
answer
215
views
Is it reliable to use and download libraries needed from GitHub and copy-pasting codes in order to increase productivity? [duplicate]
I'm just wondering. Is it okay or true that some of the best programmers once taught that to become an effective programmer is through being a lazy programmer rather than spend time memorizing lots of ...
3
votes
4
answers
2k
views
Is it really possible to have libraries not depend on other libraries?
I often see the advice that you should try to make each library independent. And yet in reality I can never seem to achieve this. Is this BS advice or is it actually possibly in any realistic way?
...
-1
votes
2
answers
200
views
Is it okay to user other open source libraries when building your own or should that be avoided?
Seems like an odd question, but I've been questioning this myself for some time now. I've been told that, if you're working on a open source library/project, you should avoid adding dependencies for ...
2
votes
0
answers
352
views
Is it bad to reuse other programmer's code libraries that can perform generic tasks? [duplicate]
Reusing large amount of helpful codes made by other programmers is very tempting for me. I specifically refer to codes that can perform generic tasks, such as Data Access Layer (DAL) codes.
I am ...