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 12 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

Log sorting program

This is my first ever program written in Rust (after reading the book). It is small tool to sort all lines from stdin according to two criteria. First one is time when given log line was generated - ...

parsing datetime sorting logging rust  
asked by tumdum 7 votes
answered by Shepmaster 1 vote

Greatest hits from previous weeks:

Update only modified fields in Entity Framework

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 ...

c# entity-framework asp.net-mvc-4  
asked by Narayana 13 votes
answered by Max 12 votes

Implement a Shape abstract class

To learn more about OOP, @nhgrif challenged me to implement a Shape abstract class (more details in code remarks below. Here is how I did it. Any and all advice appreciated! Shape.java /* nhgrif ...

java beginner inheritance  
asked by Phrancis 21 votes
answered by rolfl 18 votes

Can you answer these?

Continuous median in Ruby

I have written a program in Ruby which calculates the median of a streaming set of numbers dynamically. For each number that arrives, the median is calculated for all the numbers that have arrived so ...

ruby statistics heap  
asked by user119203 3 votes

JFreeChart generic plotting tool

I have created a bit of code that plots data for a project (XY Line Chart). It works. But it isn't what I'd consider good. I am looking to improve it in two ways: Make it more generic, so that I can ...

java beginner swing data-visualization  
asked by wesleyNeill 3 votes

Cache conscious SIMD matrix multiply of unsigned integers

The goal of the code review by order of importance (i.e. What I hope to hear from you): I've verified correctness using a straightforward matrix multiply function though I am open to those who want ...

c matrix sse simd  
asked by Franco Solleza 4 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