Top new questions this week:
|
I've just started learning C# using Rob Miles' C# Programming Yellow Book and some related lab exercises from his website. I did one of them and produced a solution that works. In Miles' book, he says ...
|
Here's my first serious attempt at writing Go code. This program counts the number of days until a certain date and displays that in the system tray.
To do that, it first reads the target date from ...
|
My goal is to pick 10 unique words randomly from a List containing 20 unique words.
I would remove the duplicate word from the List whenever a duplicate word is added and decrement the for loop ...
|
I've written a program that calculates all of the palindrome numbers in the given range, but the code is slightly slower than needed. I've tried to improve algorithmic complexity to the best of my ...
|
I recently put together an assembler for a CPU I designed. I'm looking for feedback on my program structure, formatting, or anything else. I'm self taught on all of this so I don't have opportunities ...
|
The setPixelColor function below changes the color of pixels.
I need some suggestions to optimize this function.
Example:
public static void main(String[] args) throws IOException {
...
|
I made a method that takes 2 DateTimes as a parameter, a startDate and a stopDate.
The routine should return a list of DateTime ranges by checking if the range in the parameters is above one year ...
|
Greatest hits from previous weeks:
|
I have recently written the following Pong game in Java:
Pong class:
import java.awt.Color;
import javax.swing.JFrame;
public class Pong extends JFrame {
private final static int WIDTH = 700, ...
|
The logic is simple, but I was wondering if anyone could help with rewriting the conditional logic. Also, the only error conditions I can think of are the sides should not be equal to or less than ...
|
Can you answer these?
|
I decided to make a small program for filter design, to practise C++. I intend to also add a GUI, later on (Qt, most probably), so I thought that the way the program would go in the main() should be ...
|
I wrote some code to determine the additions and deletions that happened to a sorted slice after each (sorted) update.
Git repository (includes some tests)
Godoc
// Package slicediff is a utility ...
|
I want to write my C# code in a way which makes effects (state, I/O, etc) explicit in the type signature. I have started to understand monads, and have some acquaintance with algebraic effects, though ...
|