Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Object-oriented programming is a programming paradigm using "objects": data structures consisting of data fields and methods together with their interactions.
1
vote
Implementing a quiz application in C# (object-oriented)
Readability / Style
You could start with making the code more readable, by running it through a formatter such as this one https://codebeautify.org/csharpviewer , and read up on code style and stand …
1
vote
Soduku Generator and Solver
I don't think the generator should inherit from the solver. Rather, any methods that they both need could be moved into a third class that either 1) they both inherit from or 2) they both include as a …
4
votes
Python Blackjack
Logic 1
def shuffle(self):
'''shuffle the card deck'''
if len(self.cards) > 1:
random.shuffle(self.cards)
The len check is unnecessary. shuffle will not crash on a list with 0 or 1 el …
5
votes
Accepted
Python 3 Curses Terminal Tetris
In general it looks structured, using good names, split up into functions etc. Those are good things.
I have some comments but remember these are my opinions, I can't say that it's right or wrong and …