Questions tagged [technique]
The technique tag has no summary.
27 questions
91
votes
15
answers
17k
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
696
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
321
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
67
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
324
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
242
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
146
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
363
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
545
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
332
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
15k
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
214
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
911
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 ...
8
votes
2
answers
946
views
How do you call the process of taking a part of a function and making an individual function of it?
I know there was a technical term for this. I'm just can't remember what it was.
If the title needs clarification, here is what I mean; If this is the old code:
Result foobar(Param1,Param2,Param3) {
...
0
votes
1
answer
2k
views
An alternative to multiple inheritance when creating an abstraction layer?
In my project I am creating an abstraction layer for some APIs. The purpose of the layer is to make multi-platform easier, and also to simplify the APIs to the feature set that I need while also ...
4
votes
1
answer
164
views
Suggestions to manage semi-structured email bounces?
The company I work for sends a lot of emails, and in return we get a lot of bounces.
We currently don't have a good way of sorting them and help us archive the routine ones while putting the important ...
4
votes
1
answer
2k
views
Technique for multiple users on same datasets
This is more a learning question than coding, but I'm certain it's a common issue for anyone developing administration systems or applications in php/mysql/js etc.
I've developed quite a complex ...
16
votes
7
answers
4k
views
How do you keep track of large projects?
When dealing with a project that has many different files, I always seem to loose track of how the parts interact with one another. I've never really had much of a problem understanding smaller ...
6
votes
2
answers
372
views
What are the common techniques to handle user-generated HTML modified differently by different browsers?
I am developing a website updater. The front end uses HTML, CSS and JavaScript, and the backend uses Python.
The way it works is that <p/>, <b/> and some other HTML elements can be ...
11
votes
6
answers
1k
views
What do you need to succeed with Agile?
Agile adoption can fail in some organizations, I even worked for a company where waterfall was the only (the true) way but only because they tried Agile on a project and failed.
When I asked the ...
10
votes
3
answers
2k
views
What is the point of the prototype method?
I am reading through Javascript: The Good Parts, and struggled to get my head around the section on prototypes.
After a little google, I came to the conclusion that it is to add properties to objects ...
1
vote
1
answer
138
views
server and request understanding
I want to know what a server does to run a php application. Below is what I think:
client A types www.blahblahblah.blah/
Server resolves url and directory etc.
Server go the index.php
index.php has ...
8
votes
9
answers
1k
views
A new CAPTCHA using sentences?
I was just thinking about how recaptcha is getting harder when I thought about another posible solution. Images won't last forever so we will need something else some day - like human logic or emotion....
15
votes
8
answers
6k
views
What process do you normally use when attempting to debug a problem/issue/bug with your software? [closed]
Most people seem to treat debugging as an art, rather than a science. For those here which treat it as a science, rather than an art - what process(es) do you normally use when faced with a new issue/...
4
votes
4
answers
715
views
What techniques are used in solving code golf problems?
"Regular" golf vs. code golf:
Both are competitions. Both have a well-defined set of rules, which I'll leave out for simplicity. Both have well-defined goals; in short, "use fewer ...