Add this tag to your question to indicate that you are new to the language of your code. This will often be taken in to consideration by reviewers when assessing your code.

learn more… | top users | synonyms

2
votes
0answers
10 views

Parsing an infix notation expression and converting to reverse polish notation

I'm pretty new to Go, and I do not know the best or idiomatic ways to do most of the stuff, so I'd appreciate feedback on how to make my code better, faster or more idiomatic. My program is a set of ...
1
vote
0answers
17 views

Wrote a package in Go. What did I do wrong? What did I do right?

I wrote a Player package in Go. It builds correctly, but I would love a review on what I did and did not do "the Go way". I'm new to coding in the language, although I've gotten about halfway through ...
2
votes
1answer
62 views

Optimizing Sudoku solver in C++

Recently, I wrote a Sudoku solver in C++. My program is very hard and was solved in a few seconds. In my opinion, this is slow. ...
5
votes
3answers
123 views

Alarm clock with “ringing” functionality

I have a question regarding a program that is to run an alarm clock and display the time (HH:MM AM/PM) and also trigger the alarm and display "ringing" at 12:00 AM. I am a beginner in Java and I am a ...
3
votes
1answer
20 views

Character Sprint Spaghetti Code

I finally managed to get the code to work properly. It makes the player object move faster if the user double taps the arrow key with a few 'ticks' (new frames) after the 1st stroke. - User presses ...
2
votes
0answers
60 views

Script for obtaining images from an IP security camera

I am fairly new to Python and programming in general so I hope the code in this post is not too messy. I have the following code which I use for taking images from an IP security camera: ...
2
votes
1answer
33 views

Implementation of the undef function

Write a function undef that will remove a name and a definition from the maintained by lookup and ...
4
votes
3answers
122 views

Is my web site structured correctly?

I'm trying to get a better handle of code organization and how HTML5 (really HTML) stack works in general. I've worked mostly with ASP.NET Webforms and done some MVC as well. Let me say now, "I hate ...
2
votes
0answers
35 views

Slick database throttling trait based on the Playframework Slick plugin

I implemented a throttled database service trait for wrapping my service code in a future, supplying a slick session and throttling the # of requests in accordance to the length of the thread pool ...
3
votes
2answers
45 views

Simple iPhone Notes app

I'm a beginner developer, I'm learning online (mostly from the Apple documentation guides), and couple a days ago I started a notes app project. It's the first app I'm building without a guide. It's ...
5
votes
1answer
42 views

RAR dictonary attack

I have some old RAR files and I know the general format of passwords I used to use, so I have generated a dictionary file combining those words in a variety of ways. The dictionary file is 500mb and ...
1
vote
1answer
26 views

Make logparser faster

I'm learning go. I wrote a simple logparser for SLF4J in Python some time ago and tried to port it to go as an exercise. The algorithm is identical, but the go-solution isn't quite as fast (the Python ...
7
votes
3answers
347 views

Better way to create a string of random characters

I'm generating domains with random names but I'm pretty new to Python. I used the map function because it packages the results into a list which I can then join() ...
3
votes
1answer
61 views

Menu Bar Animation Plugin

I'm fairly new to JS/jQuery (a few months), and I think it's time to start getting involved in the community. So I wrote a little plugin. Nothing revolutionary. Really, the project is to write a ...
5
votes
1answer
55 views

Load JSON file into model using Javascript / jQuery (deferred, asynchronous)

As a beginner I am always determined to improve myself. I've got written the following Code using jQuery that is working fine. However, I am sure that there are cleaner ways for achieving the same. ...
0
votes
0answers
23 views

Solving sudoku in C [closed]

After hearing about backtracking , i wrote this piece of code to solve sudoku , but it seems to give wrong solutions , what exactly i am doing wrong here ? ...
7
votes
2answers
97 views

Python Email Program

I've written this email program in Python, and I would like to get some feedback on it. (i.e. closing the server twice after the raw input, etc.) ...
1
vote
1answer
63 views

Group By And Two Counts

I'd like to know if there's any better way to write this query: ...
1
vote
1answer
30 views

Kings Cup drinking game

I'm working on a card game in Java that simulates the drinking game Kings Cup for a school project. I'm having trouble putting the pieces together, and was wondering if someone could tell me what I ...
-3
votes
0answers
40 views

99 bottles of beer on the wall [closed]

I am going through Chris Pine's Learn to Program Ruby Book. One of his chapter 6 exercises is to write a program for the 99 bottles of beer on the wall song. I was struggling so I googled for some ...
5
votes
1answer
57 views

Responsive jQuery restaurant menu system

I have a working restaurant menu system - as the user selects a menu it slides into view. The build is responsive, I've used the 'Debounced Resize() jQuery Plugin', however in implementing the ...
5
votes
4answers
134 views

Guessing Game in Python

Now that I've got this working, any improvements that I can make to better my code review would be helpful. ...
1
vote
0answers
27 views

Parse Bloomberg Excel/CSV with Pandas DataFrame

First, please pardon my ignorance. This is my very first Python program. I retrieved Bloomberg data using the Excel API. In the typical fashion, the first row contains tickers in every fourth ...
5
votes
2answers
101 views

UK tax calculator

I'm very much on the beginner end of the PHP scale but I have read plenty of the entry level books and completed the online training at teamtreehouse.com so I know the basics. I'm at a point where ...
10
votes
3answers
87 views

Very basic calculator using methods

I have made a basic calculator using methods. This is my first attempt at using methods and would like to see if I can improve on this as there is a lot of repeated code. ...
11
votes
2answers
243 views

Displaying data from a database onto a form

I'm a beginner to .NET and could you guide me to right direction. My problem is based on the following code. Here I have 4 variations of same method and all 4 variations are working fine. What is ...
5
votes
1answer
56 views

Zombie Smack Down game

So about a year and a half ago, me and my friend started on a game called Zombie Smack Down. It's a text based game written in Ruby. But we were both really new to Ruby when most of it was written. I ...
6
votes
2answers
59 views

Building shape based on user input

The purpose of the below code is to build a shape based on the user input, specifically: Prompt the user to enter a shape - either a triangle or a square Determine which "texture" to use for the ...
5
votes
1answer
30 views

Separating Duplicates from Uniques

I have a MySQL table with a very large data. What I need is to find and separate duplicates from the unique rows Let's say this is my table: ...
14
votes
3answers
570 views

Planetary Nomenclature

I'm new when it comes to Java and programming in general, but I feel I have a decent grasp on a lot of the fundamentals. I've created this "random planet generator" that is virtually useless aside ...
11
votes
5answers
1k views

Logical Sudoku Solver in Java

I've been working on a Sudoku solver as an introduction to the Java programming language. I know there's a bunch of ways to program a Sudoku solver, including a brute force/recursive approach and a ...
12
votes
4answers
956 views

Prime Number Generator - Are the conventions proper?

I am slowly learning C and C++, and decided after a few lessons to dive in myself without any help. I developed this Prime Number generator. It seems fast, but I'm wondering if I'm following the best ...
4
votes
1answer
52 views

Random quote generator

I just began learning programming and I'm learning Objective-C. I'm taking an online course and in that course we were doing a magic crystal ball app. Then I decided to use what I learned and make my ...
5
votes
1answer
293 views

Rock, Paper, Scissors in Python

I was eventually going to add another computer and more options to this (i.e., Rock-paper-scissors-lizard-Spock) but I wanted to make sure I was using the best practice for this type of game. Any help ...
13
votes
4answers
857 views

My Blackjack game

I am not happy with this code as I am sure there are better ways to do what I'm trying to achieve. I'm a beginner and I've used what I know to date to complete this. ...
4
votes
4answers
78 views

Project Euler 1 (sum of multiples of 3 or 5 under 1000)

I solved this a while ago. In the moment I solved it I was learning Scheme and, well, I still am. I'm not looking at the best solution (I searched for it and coded it already, in Python), what I want ...
4
votes
2answers
79 views

Different factorial algorithm implementations and measuring their execution time

I'm new to C, and as an exercise I'm building 4 different factorial algorithm implementations and measuring their running time. I'm looking for this feedback, especially: The implementation of the ...
8
votes
2answers
84 views

Quadratic Expression Calculator 2

After taking some great advice on this question, I'm hoping for some more feedback on my quadratic expression calculator. This is my code as stands: ...
1
vote
2answers
76 views

What are practical issues using this code with common JavaScript libraries?

I'm not a JavaScript programmer. I have next to no idea about "what's out there" of libraries and so on. Therefore it's not unlikely that the referred to Windows HTML Application (HTA) code here, ...
12
votes
7answers
572 views

Quadratic expression calculator

I'm hoping to get some feedback on how to improve and optimise a program I wrote which takes three values as input (via the terminal) and uses them in the quadratic formula. I'm aware this is mostly ...
4
votes
1answer
49 views

Refactor Ruby code from Hacker News API. Trouble parsing the JSON data

I made a command line Hacker News reader in Ruby that pulls the latest 10 stories from HN and allows the user to cycle through them or open them with Launchy. This was to play around with Ruby and ...
10
votes
1answer
55 views

wxPython Item Information Scraper

What is the best method/practice to keep, let's say, over 3,000 lines of code organized for readability? What kind of NO-NOs in regards to coding habits should I get rid of before they become bad ...
1
vote
2answers
79 views

Too many nested blocks fixed but not sure if this way is right

I have previeous;y posted my php code with way to many nested blocks I hope I fixed it right. I'd also like some tips on my OOP, as this is new to me. ...
2
votes
1answer
42 views

jQuery tooltip optimization

This is my second jQuery script: a universal tooltip for my entire web page. It took me a couple of days to research and make it work. Now, I need help from the experts to optimize my newbie code. ...
7
votes
4answers
407 views

Basic Calculator

I'm in a beginner JavaScript class and I feel like I have a pretty good grasp on all the intro material. All of my homework assignments work but they seem longer than they have to be, especially my ...
7
votes
3answers
374 views

Implementation of stack using pointers

Please review my code and let me know how I can possibly improve it. ...
15
votes
5answers
534 views

Collatz Sequence

I'm a beginner and I only know limited amounts such as if, while, do while. So I'm here to ...
4
votes
1answer
69 views

K-nearest neighbours in MATLAB

I implemented K-Nearest Neighbours algorithm, but my experience using MATLAB is lacking. I need you to check the small portion of code and tell me what can be improved or modified. I hope it is a ...
4
votes
3answers
182 views

I have a huge function filled with nested blocks

Could someone help me on how to eliminate some nested blocks or improve this code? I am concerned this will slow down my site dramatically. ...