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.
4
votes
0answers
20 views
Text Based: Player vs Player Tic-Tac-Toe
Just looking for a review on my code, its currently only player vs player, but I'll be working on the AI soon enough. Functions edit_name, tutorial, and AI have been left out as I haven't started work ...
2
votes
0answers
20 views
Android app that listens for commands over a socket
I've just begun programming Java and I'm working on the following code that deals with socket-based communications. Basically it connects to a client on port 8888:
...
3
votes
2answers
34 views
Resets Rows to default values if column A is missing a value
I have this Subroutine that works, but I have recently started updating the sheet and adding new columns. I'm finding updating the current macro to be a bit of a chore.
Is there a way to use named ...
1
vote
0answers
26 views
Student/Class App Java/MySQL
I posted a question about this code yesterday and have made several updates. I'd just like to know if there are any other major errors or spots for improvement. I have three MySQL tables:
...
1
vote
1answer
24 views
Simple calculation program in assembly MASM
I am a beginner in assembly. This program calculates:
(Z+Z)+(X-Y)
...
9
votes
3answers
621 views
Student/Class Project Java MySQL
I have a Java application that uses a few switch statements to get user information about students and classes. I have three MySQL tables:
students
...
3
votes
1answer
60 views
Age Calculations (First Draft)
I found another user asking for an application to be written, it sounded simple enough and a good way to "work out" my C# "muscles" and try to get them into a better "shape". I really liked the idea ...
13
votes
4answers
508 views
Generating formatted multiplication tables in C++
I am self studying C++ from Robert Lafore's OOP in C++. I am solving the first exercise questions of chapter-3 loop and decisions. I've written three different codes using different approaches. I want ...
5
votes
2answers
65 views
Document term matrix in Clojure
This is my very first foray into Clojure (I'm normally a Python-pushing data-type). I'm trying to create a simple term-document matrix as a vector of vectors, out of a vector of strings.
For those ...
3
votes
1answer
43 views
Number-guessing game with betting
I'm really new to programming, currently following several tutorials and guidelines.
After a couple of days of studying, I've learnt the basics of Java and conditionals and took on my first program. ...
5
votes
3answers
154 views
My first finished Python program: a deck of cards
I've recently started learning how to code in Python, and have even more recently learned the basics of object-oriented programming. Feeling inspired, I started on a program that would generate random ...
-2
votes
0answers
18 views
Can anyone tell me why this python code works on my Linux machine but not my Windows machine? [closed]
I'm new to programming and I have started learning Python. I am trying to write a small script that downloads .exe files from the web. The code seems to work on my Fedora 23 machine (running python ...
1
vote
1answer
35 views
Mapping and sorting lists of Haskell tuples
I'm a newbie with Haskell and I'm trying to learn the language and its idioms while working through a small data analysis project. The first step of my analysis is to take a very long list of data, ...
5
votes
2answers
67 views
Electrocardiography simulator
I am tring to learn coding in clear way. I developed easy application to simulate EKG. I would like to ask some experts, if the code is clean and if they have any suggestion, what could I improve. ...
5
votes
1answer
50 views
Given a monetary amount, calculate the equivalent change
I have written a program that takes in some amount of money, and prints the equivalent change (starting at hundred dollars, to fifty, to twenty, down the pennies). Here is the code:
...
-1
votes
0answers
37 views
Laravel 5 package structure
I'm new with laravel and created my first package, which is a simple cms system. The package is nearly finish and I want to know if I followed the right conventions. What did I wrong (in the code or ...
2
votes
2answers
47 views
Program looks for correct balance of ( [ and { in expression
I'm still new to programming. (First exposure was school about a year ago), and for some reason this problem really gave me a lot of problems trying to solve it. Can you help me understand what I ...
3
votes
1answer
37 views
Angular JSON weather app
I'm pretty new to Angular. I wrote a weather app and need my code reviewed. I especially need help on best practices for handling edge cases on the response from the JSON endpoint.
Here's the HTML:
...
2
votes
2answers
56 views
-5
votes
0answers
14 views
C# code I am getting error on the name which is declared in the structure how can i remove this error in c# [closed]
//Structure for reserve words
struct resWords
{
char [] name= new char[8];
Tokens tok;
};
...
5
votes
2answers
359 views
Beginner word-guessing game
I have the following code.
Aim is to guess a four letter string. Each letter can be tried four times. If the letter cannot be guessed, we go to the next letter until the fourth letter is reached.
I ...
3
votes
2answers
28 views
K&R C Exercise 1-14: Histogram of the frequency of types of characters
This is for K&R C Exercise 1-14: basically asking to create a program that prints a histogram of the frequency of types of characters. This is done with very basic C functions/knowledge as covered ...
9
votes
1answer
621 views
Simple one heap Nim game, OOP exercise
I wrote this game to practice some simple OOP. You play against the computer, but be aware that the computer has no real AI, as it just generates its moves randomly. The loser is the one whose turn it ...
3
votes
2answers
71 views
Generating a 2-variable truth table and performing boolean arithmetic
My code currently generates a 2-variable truth table and lets the user select to AND/OR/NOT the variables. I was looking for advice on how to make it more concise, handle bad inputs better, and ignore ...
8
votes
2answers
314 views
Prime factorization of a natural number greater than 1
I am a math student who just started learning Java a week ago.
I want to write a program in Java that return a prime factorization of any natural number greater than one.
After spending some time ...
2
votes
1answer
41 views
My user registration factory for AngularJS + Firebase app
The goal for this code is to provide a semi-secure and privileged method of user registration via a secret code that is stored as a key in the Firebase database.
Subscribers to a mailing list were ...
2
votes
1answer
47 views
OOP shortening class
This is not so much a question about execution as it is a question about improving code. I am a 2nd year student, we started to touch on OOP recently and I am finally getting the hold of it....sort ...
3
votes
1answer
89 views
Clickable and automatic image slider
I created a slider that fades images automatically but you can also click to see the next or previous image. It already works how it should. But I think my code is really heavy. I am not experienced ...
5
votes
2answers
130 views
First Tic Tac Toe game
I've been learning Objective C for a few days so to test my skills I went ahead and made a simple Tic Tac Toe game using the console. I already have some experience with languages such as C++, Java ...
1
vote
1answer
47 views
3
votes
3answers
52 views
19
votes
3answers
505 views
Stack Exchange User Activity Score
About
This is a SEDE query which will calculate your activity and participation on a site. It's geared for Programming Puzzles & Code Golf where questions are values more, but the values can be ...
5
votes
2answers
49 views
Divide a clock signal by 8
I'm a fresh verilog / HDL programmer and I'm writing this post to get some feedback from more experienced verilog / HDL programmers.
My very first task was to divide a clock by eight.
I know there ...
3
votes
0answers
38 views
Python Script to query OSRM (drive-times)
The below script takes two arguments
Path to the OSRM Map
Path to a .csv containing the columns ...
11
votes
5answers
587 views
Replace many Outlook email rules with a script
I as well as several of my colleagues have had an ongoing problem where we get bombarded with hundreds if not thousands of emails each day with come from automated services, such as SQL DBmail and ...
4
votes
1answer
24 views
Search and merge split-archive backup parts
I wrote some code which searches parts of a split-archive backup (it's an Android backup, I used flashfire to backup) and rejoins them. As you can easily see, I've achieved this by ...
5
votes
1answer
64 views
Start of an ATM program
I'm learning Python and have made this start of a ATM program, I'm very new to this so please be gentle..
Is there a better way to rewrite this?
...
19
votes
3answers
1k views
WebTorrent player
I have been working with HTML5 and CSS3 for a long time now, but have avoided JavaScript because of my belief that it's most frequently used unnecessarily while having a tendency to be poorly written. ...
6
votes
1answer
68 views
Retrieves Data From Various Excel Sheets Online, sorts, edits, and Analyzes said Data
This is a routine I wrote to streamline analysis I need to do that originally took 1.5 hours and now takes about 4 minutes total run time.
I'm fairly new to Excel VBA so I welcome all criticism and ...
5
votes
2answers
86 views
Averaging a signal to remove noise with Python
I am working on a small project in the lab with an Arduino Mega 2560 board. I want to average the signal (voltage) of the positive-slope portion (rise) of a triangle wave to try to remove as much ...
6
votes
1answer
80 views
Dialogue system using an FSM
In short - I've started with C# not so long ago (which means you find a lot of poor written code here) and now I'm aiming to create a dialogue system. Though my code is working as it supposed to, ...
5
votes
1answer
57 views
Custom Navigation Bar View Implementation
In one of my app, i m using custom navigation bar view to handle all Navigation Bar Properties.
Is it good practice to use custom navigation in given below way? Any Optimizations need to be done. It ...
12
votes
3answers
4k views
Replacing Skype, reinventing the chat client
I'm creating a chat client and chat server after a several month programming hiatus. The goal is to make one with features I want but it's also a learning project. Although it's mostly because I'm ...
11
votes
2answers
138 views
Forecast maintenance interval for fleet of aircraft
Being new to VBA, and many years removed from college programming courses in Java, I'm seeking opinions about design, implementation, readability and general better practices using VBA to tackle ...
4
votes
1answer
497 views
Persistent login (“remember me” cookie) using PHP
The code below is a attempt to create a persistent login cookie. I am an amateur and not professional so this is the first attempt to have secure remember me cookie. Now I want you guys to review two ...
4
votes
2answers
79 views
Bills dispenser machine
I have just started out learning C++ and I am trying to write out a simple bills' dispenser machine as an exercise.
Upon user input, the system is to check if it can pay out the amount but only in 20 ...
6
votes
4answers
238 views
Numeric integrity check
I'm a beginning C programmer. I need a function that will take a string and determine if it's a number. The data is coming from files created by different people and the number formats WILL vary. So ...
2
votes
2answers
63 views
Keyboard handler for selecting radio buttons
I have got my JavaScript working as seen here:
https://jsfiddle.net/yLg1qs04/3/
But how do I condense/shorten it so that it's not repeating itself so often and taking up so many lines?
...
4
votes
3answers
61 views
Python HTTP Server
This is one of my first times writing Python. I'm most curious about style and whether while 1: x,y = socket.accept() is an acceptable way to wait for new ...
10
votes
1answer
311 views
Implementing a String class using reference count
Design a STRING class. Provide support for:
Assigning one object for another
Two string can be concatenated using + operator
Two strings can be compared using the relational operators
...