Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

DailyProgrammer 284: Wandering Fingers

Description Software like Swype and SwiftKey lets smartphone users enter text by dragging their finger over the on-screen keyboard, rather than tapping on each letter. You'll be ...

c# performance programming-challenge  
asked by px06 22 votes
answered by RobH 10 votes

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 14 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 8 votes
answered by TheBlackCat 2 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 8 votes
answered by cat 13 votes

Wrapping COM objects with IDisposable

One of the things believed to contribute to destabilizing Rubberduck 2.x, is the fact that a lot of COM object references are stored in many places, and Marshal.ReleaseComObject is never called for ...

c# .net rubberduck wrapper com  
asked by Mat's Mug 8 votes
answered by Vogel612 4 votes

ASCII-based snake game in C++

I have recently finished developing my ASCII based snake game. As a newbie to C++ I would appreciate it if I was given feedback as to how I could improve my code when it comes to efficiency and ...

c++ beginner snake-game  
asked by James Balajan 8 votes
answered by Zeta 6 votes

Password Validation in Python

I coded a python solution for the question below. I am after the fastest solution. Also, I would be grateful if you could point out parts that are not pythonic / inefficient. Question: A website ...

python performance strings validation  
asked by Zhubarb 8 votes
answered by Joe Wallis 12 votes

Greatest hits from previous weeks:

Snake game in C++

This is my version of the Snake game, written in C++. How could it be improved, and what general advice would be useful for future projects? #include <iostream> #include <conio.h> void ...

c++ beginner game snake-game  
asked by TheKittyKat 26 votes
answered by Yann 24 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?

Backup MySQL database for Django projects

I have a usual Django application with a single MySQL database. The purpose of this shell script is to backup a MySQL database every midnight by crontab and check that everything goes right. The ...

beginner mysql bash django  
asked by outoftime 2 votes

Survey adjusted contingency table with Taylor Series linearization

I am an R programmer who is learning C++/Rcpp. I wrote some code to recreate survey adjusted contingency tables a la SAS's surveyfreq procedure using Taylor Series linearization to generate standard ...

c++ performance r statistics  
asked by Carl 3 votes

Progress bar/loader with AngularJS

Here is my code to add a progress bar on every HTTP request. Can someone please point out to me whether I am doing it right or not. Template for loader: <div class="loader" ng-class="!loaderState ...

angular.js  
asked by atul 2 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