Linked Questions

2 votes
1 answer
1k views

Recently, I had to implement a business rule in a certain project. The rule basically consisted of checking a range between 1 and 12, values that would be used later, in some way, with Bootstrap. ...
Warlock's user avatar
  • 169
200 votes
32 answers
49k views

I recently asked a question on Stack Overflow to find out why isset() was faster than strlen() in PHP. This raised questions around the importance of readable code and whether performance improvements ...
188 votes
21 answers
25k views

I am a high school student working on a C# project with a friend of mine with about the same skill level as me. So far, we have written roughly 3,000 lines of code and 250 lines of test code in a span ...
oldmud0's user avatar
  • 1,583
84 votes
14 answers
6k views

"Premature optimization is root of all evil" is something almost all of us have heard/read. What I am curious what kind of optimization not premature, i.e. at every stage of software development (high ...
Gaurav's user avatar
  • 3,739
52 votes
6 answers
12k views

I have a database with a 1:m relationship. I have to display a list of parents to the user rapidly on a home screen at startup. The parent shows a single piece of information that is a sum of a ...
tommytucker7182's user avatar
35 votes
10 answers
10k views

An external consultant to our team advised us to rewrite our SaaS offering (essentially a CRUD API) in .NET because this is more "scalable" than using Node.js (or Ruby on Rails, Flask, etc.)....
Vincent's user avatar
  • 544
31 votes
9 answers
4k views

I've encountered many people who are dogmatically against anything which can be considered "optimization" in the general English-language sense of the word, and they very often quote verbatim the (...
errantlinguist's user avatar
21 votes
6 answers
7k views

I want to document my code such that there is minimum need for reading and browsing the code again months later. I know that there are different types of documentation (in source code and outside, ...
Reza Akraminejad's user avatar
13 votes
3 answers
512 views

I'm big a fan of static type checking. It prevents you from making stupid mistakes like this: // java code Adult a = new Adult(); a.setAge("Roger"); //static type checker would complain a.setName(42)...
J-bob's user avatar
  • 357
14 votes
1 answer
873 views

I am having a very difficult time because my colleague seems to exhibit Premature/Unnecessary optimization efforts Premature deduplication with questionable abstractions For example, we use a modified ...
Earl Grey's user avatar
  • 628
1 vote
5 answers
1k views

In our code base, I see a lot of code like this var error = ValidatePhoneNumber(userId, phoneNumber); //if validation fails, return error if(!string.IsNullOrEmpty(error)) { return error; } If I ...
Microsoft Excel's user avatar
2 votes
3 answers
4k views

I use a third party API on my webapp that is accessed when the user requests a particular ressource. I'm worried that the successive API calls happening upon user's request might cause the user to ...
Jad S's user avatar
  • 571
1 vote
2 answers
1k views

I'm working on a .NET application and I'm wondering if I should use separate methods to handle the click events of two different buttons. They essentially do the same thing, just on different objects ...
Cuthbert's user avatar
  • 201
0 votes
3 answers
9k views

I have an application that consists of multiple sections of which each section will need to load data from various API calls. Now I'm thinking of taking advantage of Session variables(or caching) to ...
knewit's user avatar
  • 17
2 votes
3 answers
372 views

For example, consider I have constants VOL_MIN and VOL_MAX, which is used inside 1 function only: public void setVolume(int val){ final int VOL_MIN = 1; final int VOL_MAX = 10; val=Math....
ocomfd's user avatar
  • 5,760

15 30 50 per page