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

4
votes
0answers
19 views

Parameterized FizzBuzz

This is a FizzBuzz program, designed to take parameter inputs for start and ending numbers, as well as a "fizz" number and a "buzz" number. The program then outputs the numbers one per line. If the ...
0
votes
1answer
15 views

breadcrumbs in spring

Breadcrumbs should look like this: Home > Mobiles & Tablets > Mobile Phones > Phone Super Duper every product belongs only to one category. e.g Phone Super Duper can be found only under Mobile ...
2
votes
2answers
17 views

Coding Button functions in separate classes

I've been trying to separate my button functions from my main GUI class The code works but as an programming beginner i want to hear if i'm doing things the 'proper' way. Point out what am i doing ...
7
votes
6answers
746 views

Rock-Paper-Scissors game for learning purposes

I just want your opinions about my code. How could I improve it? Is there a better method to do it? ...
8
votes
3answers
68 views

A Text-Based Fighter - Like Pokemon

Okay, I'm a newb to programming/Python. To get a better understanding of objects/methods, I wrote a text-based, turn-based fighting game. I want to expand by adding new characters with new moves (one ...
3
votes
2answers
45 views

Implementation of stack

Task: Create a class RPNStack which represents a stack of objects of type Node. Class RPNStack contains only one private field top of type Node. Objects of type Node represent data that ...
2
votes
1answer
37 views

Python webpage parser

I have a working code, but it has a lot of flaws. The main project is to get a value from a website. I need to complete this action million of times, so i download the webpage returned from the class ...
3
votes
0answers
38 views

Demo for playing around with HTML canvas

I'm a beginner in JavaScript and I want to improve my skills. I decided to write a simple application that adds a GUI to CanvasRenderingContext2D. I have just ...
2
votes
2answers
71 views

Just started learning OO PHP, am I doing it right?

I've just started with the basics of OOP. At first it looked complicated, but once I just started with it, it seemed so easy and everything seems to work like a charm, and that's why I'm unsure if I'm ...
2
votes
0answers
31 views

Open a window and render to it a texture

I'm new to C++ and SDL2. I made this program that makes a window. I want to make sure I'm implementing this in the most sensible way possible. I've been learning for free from online tutorials, so I ...
8
votes
1answer
78 views

Improving a robot's ability to navigate the plane with Karel J. Robot

I am in my first year of formally learning computer programming in high school (we are using Java). One of the tools we used was Karel J. Robot, which can be downloaded here. Although we finished ...
-1
votes
0answers
37 views

Simple java calculator using JOptionPane [on hold]

Firstly- thank you in advance for all the help. I am very new at java programming and I apologize if the answer to my question is incredibly simple. I am trying to create a simple java calculator ...
-1
votes
0answers
21 views

How do i make sure that the user inputs the right character type in C#? [on hold]

The task is to create a segment of code where the user has to put his postal code. It has to be "letter + number+ letter + space+ number + letter + number". It needs to have 7 characters max and use a ...
4
votes
2answers
43 views

Bash “Rotating” MySQL backup

I'm quite a novice in shell scripting so far, but i'm learning and getting quite comfortable in writing shell scripts, but i have a lot to learn. The snippet at the bottom of the page creates backups ...
2
votes
1answer
16 views

Linear shooting method to solve a B.V.P

I have wrote a code to approximate the solution of a boundary value problem: x'' = p(t)x'(t)+q(t)x(t)+r(t) x(b) = beta in [a,b] by using Runge-Kutta method ...
10
votes
3answers
897 views

Inserting OAuth data into a database

I am totally new to PHP. I just wrote a PHP script for google oauth to pull the data and insert into my database. I don't know if my code is vulnerable to SQL injection. Should I have used prepared ...
1
vote
1answer
55 views

Attempt at Conway's Game of life

I tried my hands of Conway's Game of life. Well it works as I wanted it to but I want to improve my design and coding practice. I will be glad to get feedback and ideas to improve it and how to code ...
0
votes
0answers
22 views

Random word display on LCD using Arduino Uno [closed]

i m a beginner in coding as well as arduino.. I am working on a project for college in which i am attaching two LCD's to single arduino uno... the lcd's have to display random words from the words ...
2
votes
0answers
62 views

First Android game: changing colors of neighboring squares

I have created a small game to learn more about Android. So the game is you start with a single gray square, and you try to take over neighboring squares. You can only attack 1 color per move, but ...
2
votes
2answers
29 views

Applescript to change file extensions

I'm new at scripting, but I thought it would be handy to have a script that would change the extensions of selected files in Finder. I run this script from an automator service so that batch changing ...
3
votes
0answers
47 views

Java login system using JSP and servlets

The system is pretty simple. Here is how the database looks: ...
3
votes
1answer
55 views

Find the number closest to 0, breaking ties in favor of positive numbers

I'm a Perl beginner and I really love this language, and I was wondering if it was possible to reduce the size of this code, just for fun and so as to learn Perl specificities: ...
5
votes
3answers
357 views

Dr. Nim game in Java

This video should explain how the game works, but in simple form, it's a game where you enter a number between 1 and 3, This number is than removed from 12, in doing so the computer will then pick a ...
2
votes
1answer
43 views

Maximum subarray problem solved with divide and conquer also for the all negative element case

Solving the maximum subarray problem with added cases of finding non maximum non contiguous subarray as well. I used divide and conquer approach and tackled the 'all negative' case by keeping a ...
6
votes
1answer
54 views

Populating a listbox in a mock invoice with selected items

So I'm almost 100% certain I've done something wrong simply due to the inefficiency of what I've written, I'm entirely a novice to coding and am working on an assignment for my introductory ...
50
votes
6answers
9k views

How clean is my snow?

I just wrote a snow animation in Python. I think this is fairly clean but I have a few things that I don't like. ...
2
votes
1answer
54 views

Print HTML tables with information from some devices

I'm not sure if this is the right question but didn't come up with something else. I have this huge for{} loop which prints out some HTML Tables with some infos ...
3
votes
0answers
40 views

DocsGatherer - gathering and organizing fragmented documents

This script is used for gathering fragmented documents from your computer, and organizing them by extensions. Here is the main things my algorithm does: Search through path(s) Stores documents' ...
8
votes
4answers
947 views

Program to Check If string is Palindrome (in C) [closed]

Just wrote a program to check if a string is Palindrome. If that's true, return 1. Else, return 0. How can I improve it? ...
6
votes
5answers
423 views
5
votes
1answer
41 views

Uncompress archive, check contents, add missing files, recompress archive

The code looks for the specified .tgz file, if it's not present, it creates it. It looks for files ending in .txt in the cwd and adds them to a list. It decompresses the gzip, checks for the .txt ...
3
votes
2answers
48 views

What are the top voted comments on closed questions, and who made the comments?

Following this linked question and the feedback it generated, I put together a new query which utilizes a JOIN. ...
2
votes
1answer
33 views

Project Euler #7 in C: find 10001st prime using something like Sieve of Eratosthenes

I've gotten a solution for Project Euler #7 in C (find the 10,001st prime). I came up with the very simple algorithm myself (from what I can tell it's similar, if not identical, to the Sieve of ...
4
votes
1answer
54 views

What percentage of down votes are users responsible for?

I put together this simple query to calculate the percentage of downvotes each user is responsible for and displaying them in order of downvote percentage. It's generating the desired results, but I ...
-2
votes
0answers
41 views

“Cows and Bulls” game

We are working on an assignment where we have to generate code that will play player one in the game Cows and Bulls. I am working on a function that generates the code based on the values for ...
5
votes
1answer
92 views

CIS194: Risk!-style “battles”

After reading LYAH and using RWH as a reference, I've been doing the exercises from CIS194, which is often suggested to beginners on irc://freenode.net/#haskell and ...
2
votes
3answers
62 views

Calculating a payment price based on a selected phone

The program shows three phones with prices, and you need to select one of them. The program will then calculate the price based on the payment type you selected. I'm very new to the world of OOP, and ...
2
votes
2answers
23 views

Outlook VBA-Macro for to check mails concerning recipients and attachments

Every week I've got to send a report to a clerk. I also have to add his deputy in case the clerk isn't available. For not to forget the second recipient and the attachment I've wrote myself this ...
1
vote
1answer
39 views

Creating a dictionary

I have a Ruby programming task. My code passes all the rspec requirements, but I am not sure if I've done it in the right way. And I'm not quite sure why I need ...
6
votes
1answer
55 views

Simple JavaFX Calculator

Good day everyone, I made a simple JavaFX calculator. It does basic calculations, and works to the best of my knowledge. However, I'm a novice at both Java and JavaFX, so I seriously doubt this is as ...
4
votes
1answer
38 views

Sieve of Eratosthenes in Erlang

I just started learning Erlang. Here is my crack at the Seive, based on (https://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf): ...
8
votes
1answer
100 views

LaTeX code for presentation slides

I'm giving a presentation in a few days. I'm preparing my material in LaTeX; however, I am relatively new to it. How can I make my LaTeX code more concise and less repetitive? Here is a reduced ...
3
votes
1answer
69 views

Implementing a Time class in c++

Design a class TIME which stores hour, minute and second. The class should have the methods to support the following: User may give the time value in 24-hour format. User may give ...
5
votes
2answers
701 views

Reverse an integer, find the absolute difference, then reverse again

Intro For one of my university assignments we were asked to take an unsigned int, reverse its digits, find the absolute difference between the original and reversed, then reverse that, and you ...
1
vote
1answer
80 views

JavaScript Snake game

I recently followed a tutorial on a JavaScript snake game. I tried to improve that game by adding bad fruit which will make your snakes tail incredibly long. ...
7
votes
5answers
681 views

Finding the number of vowels in a string

I'm new to Java and is trying to solve the beginners problem of finding out the number of vowels in a string. I was just wondering if there is any alternatives to any of the steps that can improve ...
5
votes
1answer
51 views

Build all possible phrase pairs from a sentence pair

I have an array for an English sentence (enSentence) and for a German sentence (deSentence). Each value represents one word. I ...
3
votes
3answers
68 views

Simple multiplication quiz

I am learning Python, and would like to learn how to make this code simpler and easier to read. Things I am hoping to learn: What variables might be appropriate? How can I make it simpler? Is there ...
8
votes
3answers
885 views

Replace spaces with '%20'

This is my attempted solution to Question 1.3 from "Cracking the Code Interview", 6th ed. Question: Write a method to replace all spaces in a string with '%20'. You may assume that the string has ...
1
vote
0answers
49 views

Restarting properly

I have an activity with a timer in it, which starts an activity when the timer goes down. Before, when onPause() would get called after a phone call, my activity ...