Skip to main content
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
Results tagged with
Search options not deleted user 10463

Add this tag to your question to indicate that you are new to the language of your code. This will often be taken into consideration by reviewers when assessing your code.

0 votes

Random RPG Battle System in Lua

I understand that you're new to programming, and some of this might be a bit hard to understand, but I'm hoping it will be useful anyway. Formatting It's a bit hard to visually get an overview of th …
rreillo's user avatar
  • 1,098
3 votes

Sum pairs of numbers in array

Here's a version using Java 8 streams and lambdas. I personally find it slightly more readable, but I'm sure some will disagree. public static int[] collapse(int[] toSum) { return IntStream.range …
rreillo's user avatar
  • 1,098
16 votes

Tiny text adventure

You have a lot of repetition in your code, which is something you should focus on reducing. For example, this recurring pattern: ch2 = str(input("Do you approach the object? [y/n]")) # APPROACH SPI …
rreillo's user avatar
  • 1,098
2 votes
Accepted

Better way to check if Javascript Date object exists

I can think of the following improvements: Hide t. If you're running other JS modules, you can't really be sure that no-one else writes to the same variable. If you want to be sure that your code do …
rreillo's user avatar
  • 1,098
3 votes

Conway's Game of Life (follow-up)

Overall I think your code looks good, but I have some more small suggestions: Define constants for "magic" values that appear throughout your code, e.g. ALIVE, DEAD and INVALID for 1, 0 and -1 (in t …
rreillo's user avatar
  • 1,098