Skip to main content

Code Review Weekly Newsletter - Thursday, April 30, 2015

Code Review newsletter

Top new questions this week:

Finding anagrams - Empires strike back

Recently as part of a job interview I was given the following coding task: Attached is a gzipped text file of about 100,000 English words. Write a Python, C or C++ program that finds all the ...

python strings interview-questions  
asked by user2127135 15 votes
answered by rolfl 16 votes

To do tree application with undo/redo functionality

I am making a to-do tree application (Earlybird) in Python that will show checkable tasks/subtasks in a tree view. It includes higher-level groups of tasks grouped into blocks (e.g., Work block, Home ...

python json qt to-do-list pyside  
asked by neuronet 13 votes
answered by Snowbody 2 votes

Segment Intersection — Failing on Unknown Edge Cases

I was recently at a programming competition. One of the problems was to determine whether two line segments are parallel, intersect, or do not intersect. For all of the test cases I ran, my solution ...

java programming-challenge computational-geometry  
asked by baum 11 votes
answered by JS1 6 votes

I had one job to do

The code I am working with: foreach(var currentJob in ttJobHead) { foreach (var hdCase in Db.HDCase.Where(hdCase => hdCase.HDCaseNum == currentJob.HDCaseNum)) { ...

c# performance linq  
asked by It's been a pleasure 11 votes
answered by moarboilerplate 17 votes

A closer look at the chat's mumblings

The Go Playground was boring so I decided to make a small application that throws me into the language. It basically queries the chatroom every second for new messages and displays them in the output ...

beginner json go stackexchange  
asked by Jeroen Vannevel 11 votes
answered by Dave C 4 votes

Simple Java calculator using Swing

This is a Java calculator I made for my programming class. I know there must be vast room for improvement. Please bear in mind the fact that this only accepts an integer, then an operator, then ...

java swing calculator community-challenge  
asked by noobinator456 11 votes
answered by Legato 9 votes

A reusable ProgressIndicator

There was a Tweet from @ExcelEasy earlier this week, that linked to this article, to which I replied with a little challenge: @ExcelEasy well done! #Challenge: make a more #OOP one without using ...

oop vba  
asked by Mat's Mug 10 votes
answered by Mat's Mug 6 votes

Greatest hits from previous weeks:

LinkedList with Node implementation

Below is my implementation of templated Node and LinkedList classes. I would really appreciate it if someone would give me pointers on what I can improve. //LinkedList with SumLists() #include ...

c++ linked-list  
asked by Yechiel Labunskiy 17 votes
answered by Loki Astari 14 votes

Stack implementation using linked list

This is a working stack implementation using a linked list. I'm just curious to know if this is a good way of doing it. Any suggestions are welcome. Can we keep track of the number of elements in ...

c++ data-structures linked-list stack  
asked by Software Dev 5 votes
answered by Jamal 4 votes

Can you answer these?

Higher-order Prolog predicates combine/3 and reduce/3

I'm trying to find useful versatile meta-predicates that are different from the vanilla ones offered currently by library(apply). How about the following two: combine/3 and reduce/3? First, ...

functional-programming prolog  
asked by repeat 2 votes

Wanted a cat. Got lolcat

Wanna learn Rust? Ya rly! I can haz FizzBuzz? No wai! Gimme /bin/cat then. But rustc say LOL! Must handle teh err0rz! Now iz all err0r handlurz, so /bin/lolcat. Rust sux, or OP sux? Plain ...

beginner file error-handling rust  
asked by 200_success 5 votes

Container with allocator copy assignment

I am trying to write a simple Buffer container class that will behave like std::vector. It should construct only elements that are truly within the buffer, so the rest of the buffer ([size, capacity)) ...

c++ data-structures memory-management  
asked by Alexander Bily 1 vote
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

Comments

Popular posts from this blog

Drupal Answers Weekly Newsletter - Wednesday, December 31, 2014

Top new questions this week: Can I delete old hook_update_N functions? Suppose you have a custom module, and you have hook_update_N() implementations in your .install file. If you have old update functions, and all updates have run in all sites that the module is ... node-update hook-update-n   asked by AyeshK ...

[New post] 8th Class Result 2014 PEC Hafizabad Board

Muhammad Waqas posted: "PEC Hafizabad Board 8th Class Result 2014 expected date is 28th March, 2014 by PEC. Punjab Examination Commission (PEC) will announce 8th class result for Hafizabad Board soon and all the students of Hafizabad Board who are extremely waiting for the resul" New post on Jobs in Pakistan 8th Class Result 2014 PEC Hafizabad Board by Muhammad Waqas ...

[New post] 1st Year (11th Class) Result 2014 BISE Rawalpindi Board

Xaib Aslam posted: "BISERWP board Inter part 1 result expected on 10th October 2014 according our source. students of Rawalpindi board desperately waiting for 11th class result. 1st they upload the 12th class result and after some time they ready for showing the 1st year fin" New post on Jobs in Pakistan 1st Year (11th Class) Result 2014 BISE Rawalpindi Board by Xaib Aslam ...