Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Checking whether a number is a power of 10

Is there a better way to check whether a number is a power of 10? This is what I've implemented: public class PowersOfTen { public static boolean isPowerOfTen(long input) { if ...

java  
asked by jcm 14 votes
answered by Mark Reed 30 votes

Glue Shredded Pieces (CodeEval)

I have solved problem 185 on CodeEval, Glue Shredded Pieces. The solution got a 100% score on all tests (edit: see comments), within the allotted time and memory constraints. I'm looking mostly ...

java algorithm strings programming-challenge graph  
asked by Emily L. 11 votes
answered by greybeard 2 votes

Code Explorer 2.0: A folder hierarchy to organize VBA projects

Next release of Rubberduck will introduce a very cool @Folder annotation system that the Code Explorer will use to organize modules into - you guessed it - folders: ...which is tremendously ...

c# wpf mvvm rubberduck xaml  
asked by Mat's Mug 10 votes
answered by ChrisWue 5 votes

"Of three points supplied, is one a midpoint of the other two?"

Write a method named hasMidpoint that accepts three integers as parameters and returns true if one of the integers is the midpoint between the other two integers; that is, if one integer is exactly ...

java beginner comparative-review  
asked by cody.codes 10 votes
answered by mleyfman 12 votes

Minesweeper implementation

Please review my implementation of the Minesweeper game Kata. Any and all feedback will be much appreciated. I would love to hear your feedback on readability, simplicity, performance, and any code ...

java performance oop game minesweeper  
asked by Marquis Blount 9 votes
answered by Diego Martinoia 5 votes

Arabic to Greek numeral converter, 1 - 10

One of the things that's straight-forward in JavaScript is Unicode support. If you want to return ϝ (lowercase digamma, not a simple f), you simply tell it to do so. No look-up, conversion or ...

javascript converting integer  
asked by Mast 9 votes
answered by Dan Pantry 13 votes

Report Building (Data Retrieval, Validation, Aggregation, Business Logic, Report Building, Visual Presentation)

This: Is a data table we get from our financial platform with lots of useful information. For reference, "--" is also the string they use to denote empty values. This: Is a spreadsheet I built ...

array data-structures vba excel  
asked by Zak 8 votes
answered by Pimgd 7 votes

Greatest hits from previous weeks:

Reversing words in a string

I have to reverse the string "He is the one" to "one the is He". I have written some programs in Java but am looking for other best solutions. Suggest any possible ways to minimize the current ...

java algorithm strings  
asked by Sumeet 7 votes
answered by 200_success 3 votes

Program to insert, search for and delete an element from an array

I'd like this code to be improved. package com.array.demo; import java.util.Arrays; public class ArraysDemo { public static void main(String[] args) { // TODO Auto-generated method stub ...

java beginner array  
asked by Arun Prakash 8 votes
answered by janos 6 votes

Can you answer these?

Delete orphaned SIDS + change to full control

I need to delete all the orphaned SIDs in the ACLs of about 20 shares (between 100GB/6TB) and change full control of users groups to other permissions (modify or read/execute). I have done this script ...

file-system powershell  
asked by oliver.gf 3 votes

Angular resize directive

I have created this directive in Angular. The idea is to calculate width of height and height of specific element via style function attached to ng-style on the same element. The directive uses ...

angular.js dom  
asked by itmilos 1 vote

Modular Angular structure with Browserify

I am trying to create a basic angular template where all files are sorted into a modular structure and referenced using the browserify require method. I am very new to browserify and the ...

angular.js modules  
asked by Neil 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