Skip to main content

Questions tagged [concepts]

Concept programming is a programming paradigm focusing on how concepts, that live in the programmer's head, translate into representations that are found in the code space.

Filter by
Sorted by
Tagged with
0 votes
2 answers
93 views

How-to concept: Recognize features of an image and draw against

Might be silly, but I'm looking for a way to programmatically enrich images of vehicles with some technical, length measurements. Images will always: have a white background have the same angle (side ...
single_thread's user avatar
-1 votes
1 answer
56 views

Implementing a selectable requirements with level of advancement in a web app [closed]

I'm doing a project to teach myself more about MongoDB and ASP.NET development and I am stuck. The project is a mockup of a JobBoard website, where Companies would post offers for potential Employees. ...
AdrianIT's user avatar
1 vote
2 answers
97 views

How a VPS processes an incoming packet (conceptually)

I'm interested in understanding, conceptually (e.g., similar to how many of the concepts in networking are explained in textbooks like Tanenbaum's Computer Networks, or Kurose's Computer Networking), ...
user7088941's user avatar
2 votes
4 answers
279 views

What is the terminology for "two or more different ways to represent the same data?"

For example, A system can accept a description of a symbol 🖤 as "black-heart" or "heart-black". As far as this system is concerned, both description are valid. Is there a computer ...
Anthony Kong's user avatar
2 votes
2 answers
182 views

If an object x is an instance of a type T, then what is a type T for a concept C?

In concept-based programming (as in C++ concepts), I am wondering if there is a noun to say that: A type T is an XXXX of a concept C. in the same way we can say that: An object x is an instance of ...
Vincent's user avatar
  • 169
14 votes
3 answers
5k views

What are the complexities of a binary search?

I recently asked a question on CodeReview SE where using a binary search was recommended, and the author of the answer proved that it was faster than my implementation. During my research on the topic,...
Taco's user avatar
  • 1,165
-2 votes
2 answers
150 views

Automatic deployment concept for remote iot devices

I am working on a relatively large project that could include +1000 iot devices, in this case probably a Raspberry Pi. So far I only experimented with ~ 20 - 30 devices but the concept should be the ...
turbopasi's user avatar
0 votes
0 answers
424 views

How to maintain and deploy a poc (Proof Of Concept) version of an app?

In our organization we sometimes have to create a poc (proof of concept) to either validate or invalidate the way to go. Currently we're having a discussion around how to embed this within our ...
Baklap4's user avatar
  • 109
1 vote
2 answers
391 views

What's an abstraction?

I know this is a very basic topic, but I'm curious why an abstraction in programming is always defined as a simplification/hiding of some functionality. Let's say I wrote a set of functions that let ...
Wojtek Wencel's user avatar
4 votes
4 answers
2k views

What is the difference between the terms 'Virtual' and 'Logical'?

What do people mean when they say 'Logical' in terms like Logical separation, Logical partition, Logical grouping etc. in software ? I know what 'Virtual' means, it means something that does not ...
takasugi's user avatar
  • 293
1 vote
1 answer
137 views

Can I use singleton in a Flyweight factory and still be a valid GoF implementation?

For teaching purposes, I am trying to create a "something useful" example of Flyweight pattern using PHP. My idea was load some "intrinsic" data from a csv (link) to a pool and ...
celsowm's user avatar
  • 253
-3 votes
1 answer
81 views

Strategies in cloud migration [closed]

A few months ago I found a presentation with slides about the benefits of migrating to the cloud. I think that the presentation was maybe quite old but I think that it started with arguing that ...
Niklas Rosencrantz's user avatar
2 votes
2 answers
3k views

Builder Pattern: Is it acceptable to use "passing-by-reference" on Director methods?

For teaching purposes, I am trying to create a PHP implementation of a conceptual example of Builder Pattern: First of all, some products: class Product1 { private string $attribute1; ...
celsowm's user avatar
  • 253
0 votes
1 answer
468 views

Responsibility-driven design

I am quite confused about the responsibility-driven design concept. Mainly because of ever so slightly changing definitions depending on the source. Quoting BlueJ (the book I am learning that teaches ...
Sebastian Nielsen's user avatar
2 votes
1 answer
288 views

Big-O Notation and Calculus [closed]

I was wondering if there are any calculus relationships implicit in Big-O notation. For example, an algorithm linear according to Big-O notation reduces the size of the problem by a constant amount ...
user10478's user avatar
  • 129
-2 votes
2 answers
567 views

why does enumeration(enum) falls into category of non composite data type

I can see that integer or pointer are non-composite data types whereas record and objects are composite data type. Similarly i guessed enumeration is composite because integers or string values can be ...
saugat thapa's user avatar
1 vote
2 answers
102 views

Help me with concept - rolling time window

I am designing some software for transportation companies (air, ground, water, etc). In these industries, you have rest rules where you need to get a certain amount of rest in between activities. So ...
phpmysqlguy's user avatar
3 votes
2 answers
124 views

Non-precise Input/Using Probability in File Compression

I'm a high school student interested in topics of computer programming. Recently I became interested in file compression, and in my head I tried to combine this with a completely different part of ...
Goel Nimi's user avatar
1 vote
1 answer
354 views

How to understand and design functions with enumeration arguments that work in tandem with bitwise operators in C++ and Qt?

In the C++, there are 6 bitwise operators: Symbol Operator & bitwise AND | bitwise inclusive OR ^ bitwise XOR (eXclusive OR) << left shift >> right shift ~...
Anon's user avatar
  • 3,613
-2 votes
1 answer
83 views

Could you suggest mutually exclusive groups for String Extension methods or give a name for this one?

I am separating one of my method extension classes (i.e., StringExtensions) into regions, as has become confusing and it's difficult to see the wood for the trees. I have grouped the methods into four ...
Phil Helix's user avatar
  • 1,966
3 votes
5 answers
3k views

Using Observer Pattern to selectively act on events

I'm currently in the process of architecting a small RPG-style dungeon crawl (in Unity), and am a little stuck on how to update various objects when things change, while not updating unrelated objects....
Ben Schwabe's user avatar
11 votes
2 answers
11k views

boolean size not defined in java: why?

I see size of boolean is not defined. Below are two statements I see at java primitive data size not precisely defined Further explanation says boolean represents one bit of information, but ...
user3222249's user avatar
5 votes
1 answer
3k views

Alternative to Actor model

My main experience working with multithread environment was using Scala, so if I had an object that was concurrently updated by multiple threads I always used Akka. Now working in Java environment I ...
J-unior's user avatar
  • 189
-1 votes
1 answer
49 views

concept name(s): container of different types which can be used like a type

I am looking for the name(s) of a concept I heard of. I know that it does not exist in many programming languages, but I think it exists at least in C++. Let me try to explain the concept. Assume I ...
Kjara's user avatar
  • 282
1 vote
1 answer
791 views

What is an indexer?

The C# docs have a page on indexers, which appears to use "indexer" to refer to the construct required to enable instances of a class to be accessed via square bracket notation. Indexers allow ...
Ninjakannon's user avatar
0 votes
2 answers
217 views

Multilayer security concept

I'm working on a security concept of a bigger project. It will be done with Spring,but that's actually not relevant right now. The whole system is a hierarchical tree of computer nodes that run a ...
Herr Derb's user avatar
  • 439
-1 votes
1 answer
71 views

When would you ever use a range not in the context of an array

I'm constantly trying to acquaint myself with different programming concepts, and I recently looked deeper into ranges. In Haskell a range is basically a literal that expand to some kind of array. ...
hgiesel's user avatar
  • 821
3 votes
2 answers
870 views

Using actor model, how can one program concurrent portion (critical section) of code as self contained nuggets?

Von neumann architecture allows sequential processing of instructions. So, a single core within a CPU executes instructions sequentially. Consider, OS providing 1-1 threading model(here) in a multi-...
overexchange's user avatar
  • 2,305
0 votes
1 answer
395 views

What is the meaning of sharing state between processes?

The author here states that: Share state between processes. Run a long running batch job in one Python interpreter (say loading a few million lines of CSV in to a Redis key/value lookup table) and ...
Xameer's user avatar
  • 189
8 votes
6 answers
1k views

Demonstrate Object Oriented Principles to non-programmers using physical props [closed]

We're about to embark on helping with a new-to-coding boot camp at my work, where people from other departments can come learn how to code from the IT folks. While this is great and all, I'm in a ...
Adam Wells's user avatar
2 votes
2 answers
266 views

Why don't audio engines already process audio more realistically?

Generally game audio engines use a rather simple system for rendering audio: 1. position an audio source in space 2. apply effects on the audio clip depending on the area the object is in 3. shift ...
subbestionix's user avatar
22 votes
9 answers
3k views

Is it normal/acceptable to write down notes, thoughts, algorithms, decisions during coding and maintenance? [closed]

Some people have this problem that they cannot think without words. And writing down their thoughts and decisions is the most effective way to proceed. So - is it normal and acceptable that I write ...
TomR's user avatar
  • 1,003
1 vote
0 answers
2k views

Sockets (SignalR) vs Push notifications

I'm developing a Xamarin.Forms app with a .Net Web API backend. I definitely don't want to do long polls on my app to the server, but I need the app to remain updated with the server information. I ...
eestein's user avatar
  • 402
0 votes
1 answer
40 views

Find whether or not current location is near other locations with given radii

tl;dr: "Am I, with any given location, inside of any number of circles with varying radii" Assume you have a database full of locations (coordinates) with arbitrary radii. Now the user enters and ...
pmilla1606's user avatar
7 votes
4 answers
2k views

Role and importance of static method in OOP

Background Thinking about OOP I feel that it binds data and behavior together, taking the real world example we already have array data type which is a collection of homogeneous type and in Java we ...
CodeYogi's user avatar
  • 2,176
0 votes
3 answers
226 views

Can the Linux kernel be described as a Server?

I am developping an Android application that is using NDK in order to access to data from the Linux kernel. As you may know, this is done using IPC (Inter Process Communication) through Android's ...
Radhwen's user avatar
  • 119
1 vote
3 answers
2k views

Operation excution in terms of clock cycles

Typically for a single instrcution, 6 machine cycles are needed: FETCH instruction DECODE instruction EVALUATE ADDRESS fetch OPERANDS EXECUTE oepration STORE result My concern is regarding the fifth ...
AhmedWas's user avatar
  • 147
0 votes
1 answer
146 views

VMs are not created on the same physical server to balance load?

When load reaches a certain level in IaaS environemnt, new VM instances are created to reduce load (scalability). My Questions that these VMs are not created on the same physical server, right? I ...
AhmedWas's user avatar
  • 147
0 votes
1 answer
169 views

What is the importance of WS-Addressing in SOAP?

I'm learning Web Services Addressing and SOAP, but I can't get the importance of WS-Addressing in SOAP. This is quoted from Wikipedia "standardized way of including message routing data within SOAP ...
AhmedWas's user avatar
  • 147
3 votes
2 answers
263 views

Why do we need namespaces when making XML serialization?

I know this might be a very basic question, but I'm new to XML serialization and spent hours trying to read different pages. PS: this is a programming language independent question.
AhmedWas's user avatar
  • 147
1 vote
2 answers
2k views

Efficient Repeating Alarm Clock in Low Level Language like C

I was thinking about it and I was curious as to how one would code an efficient repeating alarm clock in C? Would you set an alarm time and then offset the time with the ms time equivalent of a day (...
cg14's user avatar
  • 111
0 votes
1 answer
296 views

When to use "is a" or "has a"? [closed]

In my node.js application, I have a queue class which has push and pop methods and a data property. I have an Event class which handles an event and pushes it on to the queue. If I think object ...
Jafar Rasooli's user avatar
-4 votes
2 answers
116 views

Rationale for modern languages implement changeable global variables [closed]

Common sense seems to be that usage of global variables is bad, in particular if they are used as real variables (i.e. changing state; e.g. Why is Global State so Evil?). How does it come then, that ...
jf1's user avatar
  • 109
3 votes
1 answer
147 views

"Untriggered events" in Reactive Programming

The premise is that you have a Stream - a source of events spread over time. You can connect to Stream and create a logical chain that will fire when a new event is emitted: var button = document....
ZenMaster's user avatar
  • 133
3 votes
3 answers
684 views

Streams: what has happened after instantiation but before reading?

I'm trying to grok streams - my world is C# but I suspect the principles are general. I understand the general principle of reading/writing bytes from/to a store. However, what I don't understand, ...
Pseudonymous's user avatar
3 votes
5 answers
9k views

OOP Principles in Customer and Account classes of a Bank

I am designing a Bank Application which deals with Customers having FD Accounts. There are two approaches to this : Approach 1 In this the customer has a list of accounts. The bank application ...
monicaG's user avatar
  • 49
8 votes
1 answer
5k views

What would happen if two different commits in one git repo had the same hash?

I know this has been said to be pretty much statistically impossible but that's a different question. What would be the consequences if against all odds, this did occur?
Jemar Jones's user avatar
1 vote
0 answers
166 views

Simulating fluid transfer in a pipe [closed]

I know this is a fairly large/broad category, but I've been racking my brain over the last few weeks on how to simulate fluid flowing through pipes. In the environment I'm working, I can have a single ...
PiTheMathemagician's user avatar
2 votes
2 answers
3k views

Reading using non-blocking IO on a fd asynchronously in C++ (moving from Node.js)

I'm trying to switch my brain from Node.js/Objective-C iOS programming to C++ programming, and it's a little bit taxing. Node.js and Objective-C with iOS do not have a run loop that I am supposed to ...
Mikey A. Leonetti's user avatar
7 votes
2 answers
3k views

Is "Unit testing" a form of formal method?

After some research, I understand that: Formal method contribute to the reliability and robustness of a design. (ref : Wikipedia - Formal method) Unit testing ensures us of the absence of errors ...
csblo's user avatar
  • 229