Top new questions this week:
|
How can I make this code shorter? The code I am using is so long. Just making one simple level is taking about 100 lines of code.
public class Sister_age_guesser {
public static void ...
|
I'm using a method to make initialize the attributes of my objects, and this method is called from both constructor.
What it does is, if no correct currency has been passed, choose € by default.
I'm ...
|
This snippet is about detecting whether the carry flag is set or cleared. I work on Mac OSX, so my snippet supports Mac only.
First, we need a routine that does the job:
func.s:
global ...
|
As a self taught developer I never did any of the Project Euler problems, so I decided to just start with Problem 1 which states
If we list all the natural numbers below 10 that are multiples of ...
|
This is a data structure that supports the push(), pop() and isEmpty() operations and returns the least element on every pop(). In a sense, this works like a PriorityQueue, only in \$O(n)\$ runtime ...
|
After I have tackled the first problem I come to Project Euler Problem 2 which states
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 ...
|
Following on from this question I have added some more functionality to Markdown Markup, and made it more WPF idiomatic.
It now supports saving data from any of the four boxes, and loading Markdown ...
|
Greatest hits from previous weeks:
|
The following code sorts an HTML table with JavaScript (without using any external libraries like jQuery). Are there any shortcomings or possible improvements I could make?
<html>
...
|
I'm fairly new to C++ and to game programming itself. Today I decided to build a multiplayer Tic Tac Toe program using only elemental C++ syntax/data structures. I also implemented a text interface ...
|
Can you answer these?
|
I'm just learning how dependency injection and mocking work, but I'd like some feedback on how I'm setting up a couple of tests. I can get them to pass, but I'm not sure this is all I need.
This is ...
|
I created the following code to better understand CIDR notation. Also to learn some of the Stream features in Java8. I posted my unit tests too.
I'm interested in ways it might be improved ...
|
I'm trying to categorize file names of anime episodes (for now) into appropriate title based categories. The algorithm works fine for files with straightforward names but not for others, and sometimes ...
|