Skip to main content

Questions tagged [usage]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
63 votes
5 answers
68k views

When to use primitive vs class in Java?

I see that Java has Boolean (class) vs boolean (primitive). Likewise, there's an Integer (class) vs int (primitive). What's the best practice on when to use the primitive version vs the class? ...
Casey Patton's user avatar
  • 5,221
52 votes
11 answers
18k views

Why isn't Lisp more widespread? [closed]

I am starting to learn Scheme by the SICP videos, and I would like to move to Common Lisp next. The language seems very interesting, and most of the people writings books on it advocate that it has ...
Andrea's user avatar
  • 5,425
43 votes
10 answers
28k views

Why should your code not use 100% CPU? [closed]

I'm speaking specifically about a C# .NET 4 program running on Windows XP or higher, but general answers are also acceptable. Assume an already optimized and efficient program. The problem here is ...
Nick Udell's user avatar
  • 1,204
16 votes
8 answers
1k views

When should I care about performance?

For the longest time in places like Java's IRC channel, SO, and other places I've been told something along the lines of "Worry about how the code looks and its readability/understandability now, and ...
TheLQ's user avatar
  • 13.6k
4 votes
4 answers
12k views

Are `switch` statements generally used wrong? [closed]

I see most developers using switch statements with breaks in each and every case. Is this usage of switch statements inappropriate since a simple set of if-else statements would suffice? Is it OK for ...
user avatar
2 votes
4 answers
3k views

Data Structures usage and motivational aspects

For long student life I was always wondering why there are so many of them yet there seems to be lack of usage at all in many of them. The opinion didn't really change when I got a job. We have ...
Aubergine's user avatar
  • 137
0 votes
1 answer
132 views

Is the jRails Project something I should use? [closed]

The jRails project is a drop in replacement for the Prototype/scriptalicious helpers already a part of the Rails framework. Are your experiences with this project positive? Does it do what it says on ...
Drew's user avatar
  • 175
0 votes
2 answers
2k views

How to calculate how much of the CPU is used?

Say we have an interrupt that is generated once each time that 1024 bytes of network traffic arrives. Each interrupt takes 3.5 microseconds to process and the network speed is 100Mb.We want the ...
user63210's user avatar