Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Benchmarking things in C#

I needed a better way to benchmark code, because, well, rewriting the same benchmarking code every time I need it is just...well...unpleasant. So, here's a class which does just that, it runs an ...

c# performance .net statistics benchmarking  
asked by EBrown 32 votes
answered by Heslacher 34 votes

Python - Battleships

My teacher referred me to this Stack Community when I showed him my battleships Python code. I created this program with the intent of making it as efficient and readable as possible. The idea is, ...

python beginner game python-3.x  
asked by UNST4BL3 11 votes
answered by Joe Wallis 7 votes

Finding two consecutive triangular numbers with a given target sum

I need to speed up this code so it can handle inputs in the thousands. It adds triangular numbers to a list based on input n, then it loops through to find if any two consecutive numbers squared in ...

python performance algorithm loop  
asked by JonnyDoeInWisco 10 votes
answered by alexwlchan 16 votes

Python Keylogger With Built In Security Measures

The program I have developed is currently used for detecting and recording keystrokes. I have added some built in security measures that can easily(somewhat) be modified to suit individual user needs! ...

python python-2.7 windows  
asked by TheLazyScripter 8 votes

Recreate cat in C

I have a school project, to create a program that works the same as the Linux cat. The code works, I just need find out where I can Improve it or handle errors. The program has 3 c files and 1 header ...

c reinventing-the-wheel io posix  
asked by TenTen 8 votes
answered by 5gon12eder 5 votes

A status bar for the VBE

One of the most annoying things about the VBE (VBA's IDE), is that it doesn't have a status bar. Rubberduck 2.0 works around this by introducing the RubberduckCommandBar, which [ab]uses ...

c# rubberduck com  
asked by Mat's Mug 8 votes

Accessing the Stack Exchange API

Part of a project I'm getting started on requires access to the Stack Exchange API for certain data, as a result I built a .NET implementation to interact with it. The implementation is pretty ...

c# oop .net stackexchange polymorphism  
asked by EBrown 8 votes
answered by Heslacher 3 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 4 votes
answered by Peter Taylor 2 votes

Simple Java animation with Swing

I am learning to use Java Swing and have made a simple animation that makes a small shape bounce around the predetermined borders of a panel. The program works well, but I am looking for feedback in ...

java swing animation  
asked by Jeremy Johnson 17 votes
answered by syb0rg 24 votes

Can you answer these?

Google CodeJam 2016 - Ruby - Counting Sheep

https://code.google.com/codejam/contest/6254486/dashboard#s=p0&a=0 I just wrote a small Ruby class to solve the first of the challenges in the G CodeJam. I am not strong at this sort thing so ...

ruby array loop  
asked by Ben Hawker 3 votes

Vertical cycle slideshow

I want to make a vertical cycle slideshow. This works perfectly for me but I'm just wondering if it's possible to achieve the same functioning with a better code. I don't know if my code would provoke ...

javascript jquery image  
asked by FàYçal Arab 2 votes

Complete factorization in ><>

Maybe a somewhat odd choice of language, but here is a program in ><> I have tried to optimize the execution time of. (Not golfing). The efficiency is measured in the number of required ...

performance primes fish-language  
asked by Hohmannfan 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