Most Popular
1500 questions
64
votes
3 answers
What is the present-day significance of SOAP
Last I encountered a SOAP based service was during my internship in a financial firm in 2013. That was the time when I started my career in IT. I remember having some study material about SOAP in one of my engineering course. Outside of that, I…
Abhas Tandon
- 733
64
votes
8 answers
How can I get things right at the beginning of a software project?
I am programmer with 1 year experience, recently I realized I seldom start a project correctly (most of my side project), normally the project cycle goes like
Start with a few use-cases
Start coding
Realize a few things I did not handle well, and…
Qingwei
- 353
64
votes
10 answers
Do you generally send objects or their member variables into functions?
Which is generally accepted practice between these two cases:
function insertIntoDatabase(Account account, Otherthing thing) {
database.insertMethod(account.getId(), thing.getId(), thing.getSomeValue());
}
or
function insertIntoDatabase(long…
AJJ
- 2,978
64
votes
12 answers
Does this class design violate the single responsibility principle?
Today I had an argument with someone.
I was explaining the benefits of having a rich domain model as opposed to an anemic domain model. And I demoed my point with a simple class looking like that:
public class Employee
{
public Employee(string…
tobiak777
- 797
64
votes
3 answers
Are header-only libraries more efficient?
Assumptions
One of the advantages of header-only libraries for C++ is that they do not need to be compiled separately.
In C and C++ inline makes sense only if the function is defined in a header file*.
Traditionally, in C, .c/.h layout has been…
Vorac
- 7,129
64
votes
1 answer
null vs missing key in REST API Response
Say in my application, some users give us their last name, and others do not. In a REST API response, which body is preferred:
With a "null" value:
{"firstName": "Bob",
"lastName": null}
Or just a missing key:
{"firstName": "Bob"}
jtmarmon
- 978
64
votes
10 answers
Is better Show() + Hide() or SetVisible(bool visible)?
What is better and why? (From interface-design point of view) :
a) To have two Show() and Hide() functions
b) To have one SetVisible(bool visible) function
EDIT: For example some object have visibility state and this functions is used to change…
user3123061
- 1,607
- 1
- 15
- 17
64
votes
7 answers
Can too much abstraction be bad?
As programmers I feel that our goal is to provide good abstractions on the given domain model and business logic. But where should this abstraction stop? How to make the trade-off between abstraction and all it's benefits (flexibility, ease of…
Random42
- 10,440
64
votes
8 answers
How can I salvage my internship?
I'm currently working as an intern at a very large, non-software development company. The position I applied for wasn't specifically a development position, but the team that hired me wanted a CS major to help try to develop some internal projects…
bhamlin
- 721
64
votes
13 answers
My boss has a bad case of "Not Invented Here"
My department specializes in converting customer data into our database schema so that they can use our software.
Right now, we have C# applications that take an IDataReader (99% of the time it is a SqlDataReader), perform some cleaning and mapping,…
64
votes
5 answers
Why is reverse debugging rarely used?
gdb implemented support for reverse debugging in 2009 (with gdb 7.0). I never heard about it until 2012. Now I find it extremely useful for certain types of debugging problems. I wished that I heard of it before.
Correct me if I'm wrong but my…
Philipp Claßen
- 1,417
64
votes
1 answer
What exactly does the condition in the MIT license imply?
To quote the license itself:
Copyright (C) [year] [copyright holders]
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software…
jcora
- 1,481
- 2
- 16
- 25
64
votes
4 answers
TDD - Outside In vs Inside Out
What is the difference between building an application Outside In vs building it Inside Out using TDD?
These are the books I read about TDD and unit testing:
Test Driven Development: By Example
Test-Driven Development: A Practical Guide: A Practical…
Songo
- 6,588
- 4
- 50
- 90
64
votes
11 answers
How can I convince my boss that ANSI C is inadequate for our new project?
A few months ago, we started developing an app to control an in-house developed test equipment and record a set of measurements. It should have a simple UI, and would likely require threads due to the continuous recording that must take place. This…
rick
- 1,965
64
votes
4 answers
Reasons NOT to use JSF
I am new to StackExchange, but I figured you would be able to help me.
We're crating a new Java Enterprise application, replacing an legacy JSP solution. Due to many many changes, the UI and parts of the business logic will completely be rethought…
Bruno Schäpper
- 1,916