Top new questions this week:
|
I am trying to learn C++ by myself. I looked up a sample question after going through some text. Though I would like someone to review my code. I'm basically asking you to break it to show some flaws …
|
While writing this review, I saw a need for a Counter object similar to Python's. It seemed like it would be easy to write such a class, but it turned out to be surprisingly complicated.
…
|
I was wondering if any of you new any best practices or design patterns so that I can have good logging in my programs without them looking messy or bloated.
I am currently using C# and NLog however …
|
Unlike Perl, you can't to my knowledge match a regular expression inside an if statement in Python and assign the result to a varaible at the same moment. This leads to typical constructs like this:
…
|
I'm writing a small text-based game in Java to learn the language. I'm concerned that I may be making some poor design decisions. I'll introduce 2 elements: A character and monsters. A singleton …
|
I am experimenting with streams and lambdas in Java 8. This is my first serious foray using functional programming concepts; I'd like a critique on this code.
This code finds the Cartesian product of …
|
Here is a practice question I am solving:
Write a function to find the first non-repeated character in a string.
For instance, the first non-repeated character in 'total' is 'o' and
the first …
|
Greatest hits from previous weeks:
|
Just looking for feedback on correctness of my understanding of async/await.
Curious about the Task.Run inside of the StartReceive() method. Resharper (or maybe just the compiler) warns against …
|
I wrote a simple Python snake game, it's about 250 lines of code. Can someone give me some advice on how to refactor/make it better?
game.py
# game.py - 3/22/2013
import pygame, sys, os
from …
|
Can you answer these?
|
This is a simple load more plugin, built for teaching purposes. For this reason, it's not pretty in terms of output.
I'd like to know if this can be improved, or if anyone can spot any major problems …
|
I'm using NSInvocation as a choke point in my app to help manage threading and reduce the amount of redundant code. The purpose of this class is to pass arguments from the view controllers to the API …
|
I'm working on a little game where you press a button and a new image appears. There's a glitch every time you ask a new image to display and it occurred to me that I should preload the necessary …
|