Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

class fizzbuzz():

This is now an iterative review. The next iteration can be found here. Yep. Fizzbuzz in Python. I've been coding in Python for all of 90 minutes. Thoughts? Program Flow Take a start_num and ...

python beginner python-3.x fizzbuzz  
asked by Kaz 13 votes
answered by Caridorc 15 votes

Simple math quiz in C#

I am only a beginner when it comes to programming, but after reading tons of tutorials on and offline, I have been able to create this simple math quiz. It does work as intended, and I'm really just ...

c# beginner quiz  
asked by Clol7 10 votes
answered by asibahi 11 votes

Game of Tic-Tac-Toe

Here is a game of tic-tac-toe I created to run in python 2.7. I am still learning and feel 400+ lines of code is a bit lengthy for such a small application. However, trying to get some feedback on how ...

python beginner python-2.7 tic-tac-toe  
asked by Shizzle 10 votes
answered by TheBlackCat 5 votes

Successful use of strtol() in C

Attempted to use strtol() to parse a string into an integer and to output any appropriate error messages for failed conversions. How did I do? How could/should it be done? Code works as intended if I ...

beginner c integer  
asked by chris360 9 votes
answered by cat 14 votes

RattleHiss (fizzbuzz in python)

This is an iterative review. The previous iteration can be found here. The next iteration can be found here I've now been programming in python for all of 4 hours. At 70 lines it's rather verbose ...

python beginner python-3.x fizzbuzz  
asked by Kaz 9 votes
answered by Mathias Ettinger 14 votes

What's the optimal 'pythonic' way to make dot product of two lists of numbers?

I just filled in the first assignment on course which involves learning Python. The assignment was to make vector class which supports scalar multiplication through operator overloading. The ...

python beginner python-3.x homework  
asked by Tomáลก Zato 8 votes
answered by Caridorc 14 votes

Inserting a DBNull value into a database

I have code which works pretty well. I just need some of your opinions on how to write it better with fewer line of code. I want to use a ternary operator but I couldn't make it work so I did an if ...

c# database null  
asked by Dikong Prigm 7 votes
answered by t3chb0t 5 votes

Greatest hits from previous weeks:

Determining triangle type from three integer inputs

The logic is simple, but I was wondering if anyone could help with rewriting the conditional logic. Also, the only error conditions I can think of are the sides should not be equal to or less than ...

java  
asked by Phoenix 6 votes
answered by codesparkle 5 votes

Snake game with canvas element code

I created a classic snake game in the canvas element. I have not considered best practices when doing this, I just wanted to finish it first. Now it's time to improve the coding practice. You can ...

javascript html5 canvas snake-game  
asked by Vignesh 15 votes
answered by konijn 8 votes

Can you answer these?

Place div's of different heights in an responsive parent div optimze and resolve double content

Can somebody help me with optimizing this code? I'd like to have some control about placement. Masonry doesn't do the job in that way. What I have done now is to create some sets of columns. For ...

css html5  
asked by Sergio P. 2 votes

Blocking TCP Client with Threads vs. Non-Blocking TCP Client with Unitys Update

I'm not sure if this is the right subsite of stackexchange because it's not only about code review but a bit about design eihter. I'm currently developing a network application. I need to connect a ...

c# multithreading networking socket unity3d  
asked by Eric Pro 3 votes

Atomas clone in Python

Here is my crappy clone of Atomas, a puzzle game where you combine small atoms into more valuable ones. # Pytomas (an Atomas build for Python) # Author: Qwerp-Derp from random import randint # ...

python game python-2.7  
asked by Qwerp-Derp 3 votes
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3