Questions tagged [technique]

27 questions
91
votes
15 answers

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 development speed, even at the expense of code-quality and…
28
votes
2 answers

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. The pattern goes as follows: Within a Java…
Jérôme
  • 669
  • 6
  • 11
16
votes
7 answers

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 components in isolation, but as the complexity of the…
15
votes
8 answers

What process do you normally use when attempting to debug a problem/issue/bug with your software?

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/bug/problem?
blueberryfields
  • 13,200
  • 8
  • 51
  • 87
11
votes
6 answers

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 people who still remembered that (I was a junior) I…
10
votes
3 answers

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 after the objects declaration. Using this script…
Mild Fuzz
  • 1,562
  • 10
  • 21
8
votes
9 answers

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. Google and others are trying grouping images by…
Xeoncross
  • 1,213
  • 1
  • 11
  • 24
8
votes
2 answers

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) { code that does abc code that does xyz code…
bitmask
  • 879
  • 2
  • 8
  • 19
6
votes
1 answer

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 to simulate a number of stars comparable to that…
john01dav
  • 879
  • 1
  • 7
  • 14
6
votes
2 answers

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

, and some other HTML elements can be updated by the user. To enable this, I load the webpage and, with…

Jakie
  • 61
  • 1
4
votes
4 answers

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 hits/characters than your competitors." To win matches, athletic…
Pops
  • 4,093
  • 4
  • 28
  • 41
4
votes
1 answer

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 ones in front of human eyes. From a format of…
ppbitb
  • 341
  • 1
  • 5
4
votes
1 answer

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 application that lets users upload images, and define…
danp
  • 143
  • 5
3
votes
3 answers

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 is the concept that you have to check for null,…
3
votes
3 answers

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 user takes "1.1" to actually mean "1.01" - meaning…
Jamie Taylor
  • 480
  • 1
  • 4
  • 12
1
2