Top new questions this week:
|
I have implemented the "Find the N longest lines in a file" problem from CodeEval quoted below.
I got a full 100 score and 182ms execution time of their data set on the site so I consider the code ...
|
I created a quick calculator in Javascript and I was wondering if there was a way to make the code look prettier or make it simpler. To me, it looks really cramped and messy and I'm not sure how ...
|
I have the following enum extension method:
public static IList<SelectListItem> SelectListFor<T>()
{
Type enumType = typeof(T);
if (enumType.IsEnum)
{
return ...
|
This uses a linked list to store the data. I used a linked list as it's the only type of data structure that I know currently. Using chrono, I can get microseconds into my timer and <random> for ...
|
With the recent craziness of the Powerball in the US, I got interested in building a little lotto simulator to see how frequently I could win with purchasing large amounts of tickets.
For those not ...
|
I'm learning some Python with my kids, and we're making a program to generate D & D characters from user input.
One portion of the code is to generate stats, which are a set of six numbers where ...
|
The Ford-Johnson algorithm, also known as merge-insertion sort (the name was probably given by Knuth) is an in-place sorting algorithm designed to perform as few comparisons as possible to sort a ...
|
Greatest hits from previous weeks:
|
I'm developing an application using ASP.NET MVC 3 and Entity Framework 4.1. In that application I have a lot of paged lists. Users can filter and sort these lists.
This results in code like the one ...
|
I've recently made a calculator using Java and Swing. I'm okay with the results but I'm curious what are the major flaws I've made (assuming there are, because it is my first program making GUI). I ...
|
Can you answer these?
|
Very long time ago I started development of code generator for HTML. And some time ago I rewrote it and published it under LGPL v3.0 on Sourceforge.net.
It is very universal because one of its ...
|
Based on the previous question, I have implemented all suggestions. Also, I worked a bit in this project to improve it.
Summary of improvements:
split the code into multiple files as .hpp and .cpp
...
|
I am developing an ERP system, called 'TeleMart' as a practice at Campus. I have noticed that one of my JavaFX Controller's have become quite complex and large, and most importantly, quite confusing. ...
|