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 167190

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.

1 vote

Simple note taking program

I am not well versed in c and will defer to others for language particular concerns, but I hope I can say something helpful. I am very impressed with your diligence in checking for failures, whether …
Josiah's user avatar
  • 6,016
26 votes
Accepted

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]

Hello and welcome to Code Review. Surprisingly, a, b, and c are probably the best variable names you can come up with. They are conventionally given as canonical examples of bad names, but when the …
Josiah's user avatar
  • 6,016
5 votes
Accepted

All permutations with known letter on one place

Usually, when you find yourself with multiple nested loops doing functionally the same thing, that's a good time to look for a solution using recursion, which are functions (you could indeed use gener …
Josiah's user avatar
  • 6,016
2 votes
Accepted

Implementing foldl1 in Haskell

First, I like the explicit statement of the type signature. That's a good habit to get into, and makes it easier to capitalise on perhaps the greatest strength of using Haskell which is all the compil …
Josiah's user avatar
  • 6,016
5 votes

Displaying the date in MM/DD/YY format

Whenever you find yourself writing code that feels the same, consider whether you can create a function to do it. For example consider using a function for padding to two digits. Instead of turning …
Josiah's user avatar
  • 6,016
1 vote

Kotlin program to summarize git commits by regex match

I have never used Kotlin, so I can't give a comprehensive review or comment particularly on specific idioms. I'm slightly bothered by this line, because null objects seems very much like a Java habit …
Josiah's user avatar
  • 6,016
3 votes

A Stack Template

vnp has already covered most of the big stuff, and I wholeheartedly agree with each point. I do have a few details that I thought worth mentioning: The inline and noexcept qualifiers seem entirely …
Josiah's user avatar
  • 6,016
3 votes

Flexible 2P TicTacToe

You should code to make sure that user input doesn't break any assumptions you are making about the game. For example, I like the gimmick that the players can pick a symbol. However, you should make s …
Josiah's user avatar
  • 6,016
3 votes

Program to shorten URL and decode it back to get original URL

Janos has covered most of the key issues I could see. One question that I have is "why do you want your identifying strings to be random?" If you want to associate the url with an id, the easiest op …
Josiah's user avatar
  • 6,016
11 votes

A program that prints the longest substring of s in which the letters occur in alphabetical ...

if second>=len(s): break This is not necessary. You have just checked that in the loop condition. first=0 second=1 strang1='' strang2='' Consider renaming these variables to say what they d …
Josiah's user avatar
  • 6,016
3 votes

Project Euler # 15 Lattice paths in Python

I like this code. I like the use of the @lru_cache decorator. I appreciate seeing the elegance of the recursive solution, while knowing it has the performance of a dynamic programming one. I like t …
Josiah's user avatar
  • 6,016