Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

# Tag Info

Accepted

### Easier user input in C++

namespace std Others have said this already but it's important enough to be repeated: Don't put your own definitions into ...
• 4,230
Accepted

• 3,595
Accepted

### CommandBars, Buttons and Commands: Cleanup is on the menu

I think you have the right idea, but your implementation can be improved. I'll give it a try, although I have no clue what rubberduck is, so I might be missing ...
• 13k

### C++ line-editing micro-library

I don't have the time to do a completely thorough review at the moment, but here are some things that I noticed that may help you improve your code. Don't use ...
• 64.1k
Accepted

### Testing quicksort user input

Spaces Put a space after for and if: for(int i = 0; i < bound; i++) --> ...
• 58.1k
Accepted

### Populating Day/Month Selections in UserForm Controls

Why not doing it more directly like this: ...
• 683
Accepted

### Swing GUI in Java

Yes, that is proper use of composition over inheritance. Although some may say this is actually aggregation, due to the nature of Swing. Composotion is the act of one object owning another object. ...
• 424

### Digital root computation with benchmarking

Regarding digits_generator You don't need to use a new variable. You could use nb directly. You may use the fact that non-0 ...
• 28.7k
Accepted

### Toggle-item inside a Bootstrap dropdown-menu

It'd definitely be nice to get rid of the inlined style attributes. Since you've already ID'ed the sub-menu pretty extensively, it's pretty easy to add this to the ...
• 32.9k

### User Interface for Strategy Game

Now that I look at this block mode, I'm finding the logic a bit confusing: ...
• 25.2k
Accepted

### User Interface for Strategy Game

First, I'll start by emphatically stating that this method is far too large and tries to accomplish far too much. When your method grows this large, it should definitely be tasked out into smaller ...
• 25.2k
Accepted

### TextField Validation for Teleport Feature in Game

Table organization ...
• 58.1k
Accepted

### Implementation of Hangman in Java

All GUI modification must be done in the GUI thread. It refers to the creation of components, too. It means that your buildGUI method should be invoked on the EDT ...
• 5,550
Accepted

### HMSegmentedControl react to tapping on currently selected segment

You can fork the control and do a tiny modification to the code to do what you need. In touchesEnded:withEvent:, you need to modify this line so it wouldn't check ...
• 156
Accepted

### Heavily nested anonymous classes for Swing UIs

Anonymous constructors are very confusing for many people. They don't correspond well to people's expectations, and are not common knowledge. I would recommend against them on principle. Having said ...
• 96.7k
Accepted

### CommandBars, Buttons and Commands: Take 2

I think the code is definitely much better! I wouldn't worry too much about registering the ICommands in your IoC. After all, you're not going to have hundreds of ...
• 16.6k