The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
71 views

Why does Git's stash commit need two parents?

Why does Git's stash commit need two parents? In the Hacker's Guide to Git, I see this mental model for stashes: The guide tells me that stash@{0} needs both A and B as parents. Why? Why doesn't ...
0
votes
1answer
51 views

Locking on data vs locking on functions

In concurrent code, what is the difference between, and the pros and cons of each: Locking on data Locking on functions My understanding is that locking on data is better, and I think I'm doing ...
2
votes
3answers
111 views

What is a Database Environment?

I am going through Relational Database Design by JLM. I have come across words like database, data model, DBMS etc. which I am able to understand. But, I get confused when the author tries to use ...
1
vote
1answer
57 views

Exception class for each exception or for all framework

I am developing a framework and it can generate various types of exceptions. Initially I'm working with a single exception class that indicates that something went wrong inside the framework. However, ...
1
vote
4answers
172 views

What would you call the concept of CofeeScript or Sass to be? [duplicate]

There is this rising trend with web development of making new pseudo languages to extend the functionality of JavaScript, CSS and HTML given that those are static and their metamorphosis or evolution ...
0
votes
0answers
16 views

Access public property of object on view

When we are working with some MVC FW on PHP, generally we have a view loading function like load(string viewName, optional array viewVariables). My doubt here is: if we are working with some object, ...
0
votes
1answer
121 views

Teaching software concepts: formal definition is a necessary evil? [closed]

Recently I had to teach what my PM declared a "Best Practices Course" on programming. I decided to have them read a chapter per week of Uncle Bob's Clean Coder book while I followed a somewhat ...
3
votes
2answers
1k views

Entity-Component-System architecture: interaction between systems

I am studying the Entity-Component-System architecture philosophy. As I have read about it, a typical entity system has: 1) Entities - which are merely ID tags which have a number of components 2) ...
2
votes
4answers
224 views

How to explain the difference between a variable and a key in a key-value pair?

Variables and the keys in key-value pairs are both identifiers for values, so, on a conceptual level, these seem very similar ideas. How would you explain the difference between these two concepts? ...
0
votes
1answer
328 views

When does a Monad become a hammer?

I realize my precursory understanding on Monads is severely lacking in detail considering my knowledge comes mostly from Douglas Crockford's Monads and Gonads talk and complicated with my sevear ...
4
votes
3answers
177 views

MVC and the business rule

I need to know where in the MVC should I apply the business rule. Imagine the situation: I have a school and I need to generate a calendar of classes for teachers. Each teacher has a school subject ...
3
votes
1answer
165 views

How to store the file names, start offset and length while avoiding the issue of self imposed limits (lookup table) or having to scan the entire file?

I am attempting to learn more about C and it's descendants(C++ mainly). I have decided that I would like to create a "file system" of sorts. Not a particularly advanced one mind you but something to ...
2
votes
3answers
234 views

Should POCO domain classes contain collections?

The question title is not good, but I couldn't think of a way to word it better. I am used to develop using POCO classes in my projects, that is, domain objects contain absolutely no logic, only ...
1
vote
4answers
302 views

Alternatives to null values and option-like types

Related to this question i want to know if there is a concise way to eleminate null values out of code in general or if there is not. E.g. imagine a class that represents a user with birthday as ...
9
votes
2answers
731 views

How is IETF different from W3C?

I've been following these organizations (institutes, entities, whatever) for near 3 months now, and both of them claim that they're trying to make the Internet a better place. They're creating ...
3
votes
2answers
485 views

What is State, Mutable State and Immutable State?

This is a newbie question, but I couldn't find a newbie-proof enough answer on Google. What do people mean when they say 'state' - in programming in general, and in OO programming specifically? ...
2
votes
4answers
473 views

Why do we use to talk about addresses and memory of variable in C?

Why do we use to talk about addresses and memory of variable in C, where in other languages (like in Java, .Net etc) we do not talk about variable address and memory in a program, we will directly use ...
0
votes
1answer
105 views

Explanation of the code snippet , keyword operator in , in c++ , use of objects in classes

class Vector { public: Vector(int s) :elem{new double[s]}, sz{s} { } double& operator[](int i) { return elem[i]; } //function 2 int size() { return sz; ...
49
votes
4answers
2k views

How can you estimate time for tasks which primarily consist of figuring out a problem?

While it is relatively possible for an experienced developer to estimate how long it will take to implement code when the pattern and problem the code is solving is well understood, how can you make a ...
0
votes
1answer
85 views

Slugify via helper or store slug on database?

I have a simple question: Slugify via helper or store the slug on database? I mean, let's suppose that I have Guilherme Oderdenge on database and I want to transform it into a human-readable URL such ...
18
votes
4answers
2k views

What is a byte stream actually?

Can anyone explain me what byte stream actually contains? Does it contain bytes (hex data) or binary data or english letters only? I am also confused about the term "raw data". If someone asked me to ...
2
votes
3answers
254 views

Is UML a good way to shortly and simply explain a concept? [closed]

I was recently in a job interview that was mostly technical. One of the things that stood out was my difficulty explaining ideas and concepts. During the interview I decided not to use UML to ...
5
votes
1answer
253 views

How to display in compositional relationship that the item knows about the container?

I'm drawing a class diagram and noticed that sometimes I got a relationship (composition or aggregation) where the item uses the container, and sometimes not. What is the visual difference in a ...
1
vote
2answers
219 views

Modeling an extensible Domain Driven Design project

Say that we are developing an application with modules (Sales, Accounting, Purchasing, etc). An example case here is : Sales module is the basic / primary module available, and Accounting module is ...
0
votes
2answers
64 views

How to approach design to minimize conflicts when distributing individual locations to merchants

One of my potential customers is operating an open market in their town. From what I'm told, they make a decent profit by renting out the individual locations on that market to small merchants who ...
-2
votes
1answer
95 views

What effect does the utilization of pseudocode and comments have when a software engineer designs software? [closed]

I am a programmer by trade so in my English Class ENC 1102, when we were asked to come up with a discourse community in which we could relate the use of writing skills I thought about pseudocode and ...
1
vote
3answers
139 views

How to conceptually consider and implement user interface rules for numerous controls and data inputs?

I have a user interface with numerous controls and data inputs on it. Buttons, text fields, and checkboxes, etc. Imagine the following "rules" exist for a sample UI with 2 of those controls: B2 ...
0
votes
1answer
410 views

Procedural programming? [closed]

I'm about to set off on a journey to create a new report-generator for our in-house software. Our old generator is made in VB6, remotes Word, and pixelpushes images. And its slower than a sloth on a ...
7
votes
3answers
3k views

How is the actor model used?

I have read a bit about the actor model, but don't really understand how to use actors in a real world situation – how to model a problem with them. Can someone please explain? A simple example or ...
0
votes
2answers
108 views

what is need for a handler in general

I have been searching for a definition for handler. basics i've understood that "A handler is a piece of code that is called when something happens, and usually takes some action, like generating a ...
7
votes
3answers
7k views

need some concrete examples on user stories, tasks and how they relate to functional and technical specifications

Little heads up, I'm the only lonely dev building/planning/mocking my project as I go. I've come up with a preview release that does only the core aspects of the system, with good business value, and ...
3
votes
3answers
326 views

In Objective C, what English words can I conceptually associate to the symbols?

I'm learning Objective C (from a C# background) and am having difficulty understanding the unusual method signatures and am looking for a shortcut to make the learning curve less steep. When reading ...
6
votes
2answers
1k views

In C++, were SFINAE and metaprogramming intentional or just a byproduct of templates?

SFINAE and template metaprogramming can do wonderful things and many libraries also use them considerably. Historically both of these "magic concepts" were intentionally introduced/supported in C++ ? ...
9
votes
1answer
2k views

Erlang and Go concurrent programming, objective differences between CSP and Actors?

I was looking into concurrent programming in Erlang and Go programming languages. As per my finding they are used Actor model and CSP respectively. But still I am confused with what are the objective ...
8
votes
1answer
632 views

Is there an explicit word for non-abstract class?

I got mainly abstract classes in my project and there are a few other class which are using/inheriting them. When I'm writing the documentation I would like to specify that a part of it is just about ...
3
votes
1answer
277 views

Difference between trigger, handler and callback

It's current to see the terms callback, trigger and handler in some API documentations. It is just synonymous or each term correspond to a specific concept? I used to think that this terms are just ...
6
votes
1answer
741 views

Are non Turing-complete languages considered programming languages at all?

Reading a recent question: Is it actually possible to have a 'useful' programming language that isn't Turing complete?, I've come to wonder whether non Turing-complete programming languages are ...
4
votes
3answers
395 views

What is “short-circuiting” in C?

I have heard of the term "short-circuiting" being used in C. What does this mean and in what scenario would it be used?
3
votes
3answers
158 views

Representational Equality versus Value Equality

I am coding a system where I have objects which represent a set of resources. These resources are identifiable (they have an ID). There can only be one resource with the same ID, and so multiple ...
3
votes
1answer
225 views

What is meant by binary compatibility? What is its importance during serialization/deserialization in a language like Java that deals in byte code?

In computing what is meant by binary compatibility? I read about it in context of serialization/deserialization that this process of serialize/deserialize should be binary compatible. What does it ...
4
votes
1answer
370 views

How do people develop emulators?

I hope this is right area on Stack Exchange to ask this question. People out there have built emulators for every game console but I don't understand how they do it. I consider myself (and have the ...
10
votes
7answers
1k views

Programming knowledge vs. programming logic

Is there any difference between the two topics? I have seen companies asking for Good Programming knowledge some Good Programming logic. I have seen this in Job profiles for a developer – for e.g. ...
1
vote
2answers
310 views

Learning new concepts is an infinite loop. How do I go about it? [duplicate]

Yes, practice, practice, practice. I know the drill people suggest that helps learning new programming concepts. But that's only theoretical. For me, even a line of code like this is new (Java) and ...
12
votes
5answers
511 views

Storing in-text metadata in a discrete data structure

I am developing an application which will need to store inline, intext metadata. What I mean by that is the following: let's say we have a long text, and we want to store some metadata connected with ...
11
votes
6answers
4k views

What *are* the programming concepts I should master to have a deep understanding of my craft (programming)? [closed]

In order of importance, if its possible to do so and it may not be, what are the most important foundations of knowing how to program. Algorithms, iteration, recursion, etc? Note that where I put ...
11
votes
6answers
2k views

How to teach a script to detect sarcasm? [closed]

I'm currently building a fun script, that basically matches given phrases and gives a predefined response based on the match-points. You can ask it to retrieve some information based on live feeds, ...
5
votes
3answers
4k views

How do we differentiate between a computer and a calculator?

In this SO Question there is a comment by starblue that A computer without loops is a calculator Is this true? Is that the only difference? Is there a set of criteria to differentiate or has ...
8
votes
3answers
337 views

Is there such a concept as “pseudo implementation” in software development?

I'm looking for a label to describe the practice of using human-based computation methods or other means of "faking" an algorithm for the sake of getting a product or demo off the ground quickly ...
0
votes
1answer
109 views

Map Library: Client-side or Server-side?

As I have already asked here, I have to implement a Multi-Platform Map application. Now I have Mapstraction as an option which uses Javascript to implement the desired functionality. My question is, ...
4
votes
4answers
496 views

How much is modern programming still tied to underyling digital logic? [closed]

First of all: I've got no academic background. I'm working primarily with Java and Spring and I'm also fond of web programming and relational databases. I hope I'm using the right terms and I hope ...