Top new questions this week:
|
I have 4 booleans and all must be met to determine the value of a String:
String message = (!isNameBlank && !isDestinationBlank
&& isDestinationValid && isAmountValid)
...
|
I just want your opinions about my code. How could I improve it? Is there a better method to do it?
from sys import exit
from random import randint
print "Welcome to the PIN Game 1!"
print "Tell me ...
|
Okay, I'm a newb to programming/Python.
To get a better understanding of objects/methods, I wrote a text-based, turn-based fighting game.
I want to expand by adding new characters with new moves (one ...
|
I am implementing a statistical program and have created a performance bottleneck and was hoping that I could obtain some help from the community to possibly point me in the direction of optimization. ...
|
I came to C++ from Java. This is my attempt at making a calculator on about 2 days worth of knowledge. I don't really know what is redundant or unnecessary. Nor do I know of the better ways to achieve ...
|
I recently came across a email bot that would give you random problems to solve.
Here is the problem.
Please write a function in python which receives a natural decimal N-digit number (1 to 15 ...
|
I recently wrote the following code for a codewars.com kata for evaluating mathematical expressions. I've been writing ruby for years, but almost everything I do is for personal use and isn't ...
|
Greatest hits from previous weeks:
|
I am using ExcelDataReader to import an excel file to a dataset. Example Excel table below:
//ID Name Display Order Active
//1 John 1 1
ID, DisplayOrder and ...
|
I'm working on a website on ASP.NET MVC4 and EF5. I want to ensure that only modified values are updated in the database. I'm using a unit of work pattern and repositories for data work. Here's the ...
|
Can you answer these?
|
I wrote a class to slightly customize the behavior of lxml.etree.ElementTree and I use it quite extensively. It works great, but there are a few methods that I'm not sure how I wrote, and there are a ...
|
I have posted a discussion on Math.SE regarding visualizing the complex space and effects of factorization methods on that space. A quick link to the paper is available here. I have 3 routines in ...
|
The following pascal script needs a bit of context for it's purpose to be understood. For those who don't give about purpose, feel free to skip ahead.
Background
A game I'm terribly fond of has a ...
|