Skip to main content

Questions tagged [programming-practices]

Programming Practices are the commonly or not so commonly used practices in development of software. These can include things like Agile Development, Kanban, Coding shortcuts, etc.

32 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
581 views

Given: I want to practice proper test-first, continuous delivery-style software development in Common Lisp environment. Problem: How each red-green-refactor iteration of the process should look like?...
hijarian's user avatar
  • 159
4 votes
0 answers
852 views

I am using EF 6 as my ORM. I am trying to decide how to handle CRUD failures. Option 1: Use exceptions (custom or built-in) to inform the web layer that an item didn't correctly save. Handle the ...
Robert's user avatar
  • 163
3 votes
0 answers
243 views

I have been struggling to understand the reasons why typescript developers choose the way they implemented inheritance. What I would expect from any language supporting inheritance is these order of ...
Funonly's user avatar
  • 141
3 votes
0 answers
64 views

I have a website that was originally created as a one page application that is now morphing into a full (multi-page) site. I am trying to refactor the various design elements for reuse on the other ...
pppp's user avatar
  • 131
3 votes
0 answers
96 views

I'm planning on incrementing counters in statsd based of various events within my application. I have logging in place for these events. So, from my viewpoint I have two options: Update the ...
cynicaljoy's user avatar
3 votes
0 answers
80 views

Scenario: Two virtual machines produce logs. I want these logs to be sent to a central server for processing (as soon as a line of these logs is generated-->streaming ). The condition here is that I ...
wannabeuSometime's user avatar
2 votes
2 answers
285 views

I have an automated invoicing web app and I'm trying to build in some failsafes and a structure that will, under no circumstance, allow an invoice to be double charged. All things working perfectly, ...
Steve Ontologic's user avatar
2 votes
0 answers
276 views

I have a shared object that I developed. This shared object is packaged in two forms, a Conan package, and an RPM. It is a Qt project, so it has a .pro file associated with it. Up until now, we ...
J Andrew McCormick's user avatar
2 votes
0 answers
137 views

I have tried to design a class diagram for my first game. But then I realized that there are some ugly parts. First, there is reference from StateSystem to State and from State to StateSystem. The ...
Jarek Večeřa's user avatar
1 vote
0 answers
95 views

I have the following piece of code. Line 1 is a container (for simplicity, one can think of it as a list of elements e1, e2, ..., en). Now there is a function function_fun which takes as input an ...
A J's user avatar
  • 19
1 vote
0 answers
69 views

I have developed a Fantasy Draft system utilizing ASP.NET Core SignalR, along with Azure's SignalR service (for backplane/scaling stuff). Last year I utilized a poor-mans' javascript version that just ...
ganders's user avatar
  • 411
1 vote
0 answers
1k views

The following is an example using https://github.com/GoogleChrome/puppeteer 'use strict'; const puppeteer = require('puppeteer'); (async() => { // const browser = await puppeteer.launch(); // ...
alex's user avatar
  • 383
1 vote
0 answers
100 views

I'm trying to code a kind of simple video game where there are two kind of players: Human Players: They enter an keyboard input CPU Players: A random input is calculated For Human Players there is a T ...
charliebrownie's user avatar
1 vote
0 answers
130 views

In a large code base, what is a good practice between: Updating class properties inside the method vs. returning a value from the method and updating the property in the place where the call to the ...
Omnipresent's user avatar
1 vote
0 answers
142 views

The scenario is this: I have web based service that does regular request processing and it's doing persistence into db etc.. Fast response to the client is crucial. So now the average request is about ...
madeye's user avatar
  • 79
1 vote
0 answers
142 views

I'm currently developing an application using ASP.NET MVC5 and Knockout. For now, the typical architecture is this: FooController.cs: public ActionResult GetFoos(){ //... var model = // ...
xlecoustillier's user avatar
1 vote
0 answers
190 views

I have a MongoDB database with millions of users in collection. An aggregation function returns millions of results with the following format: Array ( [_id] => Array ( [user] => MongoId ...
Alexandru R's user avatar
1 vote
1 answer
64 views

I have intermediate level of understanding on how TCP and serial works, I've also been able to develop system that uses 1 TCP client and 1 Serial 2 Serials 1 TCP Server 1 TCP client My problem is that ...
Cary Bondoc's user avatar
1 vote
1 answer
349 views

I have a TriggerCaller and a TriggerAction class. The Caller "calls" the do() method on the action, which is set with the TriggerCallers setAction() method. The rest of the program should deal with ...
sinθ's user avatar
  • 1,311
0 votes
0 answers
74 views

I'm designing a browser-based application that will display real-time data collected from OPC server. I have decided to use Angular framework for the browser application development. The browser ...
Kamrul A's user avatar
0 votes
0 answers
78 views

I'm trying to change my module's outline since I feel I'm blocking some reuse possibilities, but I don't know how to justify it under the lens of good practices/design principles. Keep in mind this is ...
Fernando Silva's user avatar
0 votes
0 answers
313 views

Say I use a predefined serialization format X for certain data. Should I indicate the application in a custom filename extension or not? It is quite common pk3 is a zip archive XSL, SVG and many ...
user877329's user avatar
0 votes
0 answers
67 views

Let's say i have an interest in file conversions, but everything should be made by hand and i have multiple output formats (say: csv and excel). Once i get contacted by a client, i have to link ...
NicoJuicy's user avatar
  • 228
0 votes
1 answer
3k views

I have a class in python that is instantiated from the values of a (json) config file. I was wondering what is the best practise to do that (if there is a best practise and is not just a matter of ...
Cobra Kai Dojo's user avatar
-1 votes
1 answer
137 views

I have been asked to get involved with a Team that is currently having delivery issues for various reasons. During my review I came across an acceptance criteria on a user story; If you call v1 of ...
Kinexus's user avatar
  • 303
-1 votes
1 answer
111 views

I'm working on a project that requires the use of verifiable credentials, and I'm looking to build a wallet that can store and manage these credentials according to the W3C standard. However, I'm ...
ash's user avatar
  • 99
-1 votes
2 answers
488 views

How do you tell if a group of items is stacked horizontally or vertically given only the items x and y positions? Vertical Group: item 1 item 2 item 3 Horizontal Group: • item 1 • item 2 • item 3 ...
1.21 gigawatts's user avatar
-1 votes
2 answers
844 views

In Python variables that are created outside of a function are known as global variables. However to create a global variable inside a function (a local variable), you can use the global keyword. My ...
Qubit's user avatar
  • 197
-1 votes
1 answer
150 views

I couldn't come up with better title. I will try to explain what the problem is. Currently I am trying to build dynamically created report structure. I define needed report in config file. When user ...
omer faruk's user avatar
-1 votes
1 answer
275 views

Reading and observing some of the startups and well-known services, almost every time I found that people there are using cross-technology system in their architecture. For example like Twitter, used ...
caesardo's user avatar
  • 101
-2 votes
1 answer
298 views

Which one is better property file, annotations or database tables for storing configurations related to a program? What are the advantages/disadvantages and what use cases are best suited for each ...
Rajat Sharma's user avatar
-3 votes
1 answer
2k views

This is the documentation with the original RPC client API specification. The naming convention in the specification is camel case. Naming conventions might differ in subtle ways for different ...
ery245gs's user avatar
  • 103