Questions tagged [technique]
The technique tag has no summary.
27 questions
91
votes
15
answers
16k
views
How can I favor quick (and dirty) over clean (and slow) in practice?
Preface, TL;DR
This question is about the implied tradeoff between the speed of development and the quality of code.
I am looking for methodologies which can be followed in order to optimize ...
3
votes
3
answers
611
views
What is the technical terminology for the practice of checking for null and edge cases in programming?
I took a PHP test for NASA recently and thought I should have done better. I believe the issue is something I used to know about, but need a refresher in. I can't remember what it is called though. It ...
6
votes
1
answer
308
views
How can I reduce the amount of storage needed for a gravitational n-body simulation?
I am currently attempting to create a gravitational n-body simulation using a modified Barnes-Hut algorithm, to be more amicable to GPU computation. This is primarily as a learning project. My goal is ...
-4
votes
1
answer
57
views
Technique to master new (third party) projects [duplicate]
I'm a graduated software developer.
In the last year I worked like a sysadmin, nowadays, I entered on a different software company as a VB.Net Developer, it means I need to learn and master a very, ...
2
votes
2
answers
283
views
What programming techniques are there to find the combination of inputs that produces the best result? [closed]
I am working with a big set of data right now and I wrote a program that calculates a result based on some inputs. I have 10 inputs, each of them has about 20 different possible values. I am not sure ...
1
vote
1
answer
230
views
TDD on an already started project
I am currently implementing my own programming language. Until now I have written:
An Error class for errors (to be thrown) encountered while processing the input source code;
Some SyntaxError ...
2
votes
1
answer
134
views
Is it better to pull all data immediately or as needed?
I have a program that needs information from a database but it doesn't need all of the information at once, although it WILL need it at some point. Would it be better to pull all of the information ...
0
votes
0
answers
343
views
Domain analysis for discrete values - ON and OFF points in these cases
Following my previous question (with great answer from Bart van Ingen Schenau), I noticed a discrepancy I could not wrap my head around:
Bart mentioned that:
The point ON the boundary is by
...
2
votes
3
answers
2k
views
Domain analysis - why OFF points are inside of the domain when the border is open
I have asked on a few other sites, no response but it must be something silly as many authors mention in their books.
Here is the best text I found:
My ultimate question is:
Why the OFF point lies ...
1
vote
1
answer
526
views
What programming technique is this?
I have two Java classes. The first one is called "Index", and the second one, temporarily, I called it "IndexCache":
public class IndexCache {
private static Map<String, Index> map = null;
...
0
votes
1
answer
313
views
Get inspired by real world objects and their interactions [closed]
Based on this question I think while the aim of OOP is not necessarily to copy real world objects, they could be source of inspiration to design a software or solve a problem or even learn the OOP ...
28
votes
2
answers
3k
views
What is the name of the following (anti) pattern? What are its advantages and disadvantages?
Over the last few months, I stumbled a few times over the following technique / pattern. However, I can't seem to find a specific name, nor am I a 100% sure about all its advantages and disadvantages.
...
3
votes
3
answers
14k
views
Sorting an array of numbers with decimal places
Suppose I have an array of float values in the following format:
{ 1.34, 1.15, 1.1, 1.2, 1.26, 1.10, 1.20, 1.17 }
Suppose they have been provided by user input (or some other mechanism), where the ...
-1
votes
1
answer
196
views
What concepts/technologies should an ASP.NET developer be familiar with [duplicate]
I am in the process of filing in the gaps in my knowledge so that I can become a better developer. I am an ASP.NET developer and I sometimes need to do pure back-end stuff too. I ahve compiled a list ...
2
votes
3
answers
896
views
How can you learn names of methods or classes of a framework or an API?
I've been programming C++ for a year now. I've gone through the language features and I've written good programs with it, so I decided to move on to OpenGL. At first it seemed confusing. As I kept ...