Add this tag to your question to indicate that you are new to the language of your code. This will often be taken into consideration by reviewers when assessing your code.
0
votes
0answers
6 views
C++ Hangman Game
I've been working in C++ for awhile now, but always like for others to look over my code as much as I can get them to. My main concerns are if I've made something overly complicated or if I've broken ...
3
votes
0answers
45 views
Please rate my single page website
I learned HTML, CSS, JS, and Bootstrap then I grabbed a PSD and tried to code it from scratch (to get experience and something for my currently-non-existent portfolio). Here's the result. I need ...
1
vote
1answer
41 views
2
votes
1answer
102 views
Tic Tac Toe (Decoupling patterns and component based design)
I'm learning unity with c# programming and trying to learn game design. I know the that the best way to learn games programming is recreate some of the existing games. This is my code to create Tic ...
3
votes
1answer
28 views
Power flow analysis using the PSS/E simulation tool
The intro is a bit long, but I think it's necessary. I'm very interested in any improvements, but you can assume that all calls starting with psspy. are correct and ...
2
votes
0answers
30 views
Drawing app with JS / canvas
Created this drawing app with JS / canvas. JSHint is throwing errors but the app works just fine. Need help with code clean up / refactoring as I'm fairly new to JavaScript.
JSHint in Atom is fine ...
5
votes
1answer
20 views
Testing file IO errors in python
Below is a simple class with two methods: the first calls open() to read in a file. The second calls the first method and does error handling.
There is also a ...
5
votes
3answers
296 views
Button click handlers for a JavaScript text-based adventure game
I'm pretty new to JavaScript, and I'm trying to created a text-based game. I've written a few scenarios and based on the player's decision I have different scenarios written out. As of now I have the ...
3
votes
1answer
24 views
Yum Notification Script
This is a Bash script I wrote to email me when updates are available for my server. I'm new to bash programming, so I don't know if I've done this well.
...
6
votes
1answer
66 views
My tetris implementation
I just wrote a tetris game and I'd like to humbly request for code review especially in terms of code transparency, code efficiency (whether something can be coded in faster way using less resources) ...
2
votes
1answer
24 views
Makefile and object file directory
Ok this is the first makefile I've ever written. I it works and that's about it. Things that I was wondering if if I can specify where the object files go. It looks really bad with all the .o files ...
4
votes
2answers
40 views
Library system manager
I'm new to JavaScript OOP and still playing around with it. I have put together a few specific questions over specific details throughout the code that are bothering me.
I wanted my ...
7
votes
1answer
81 views
Cipher text using a 2D array
I have a simple program which ciphers text using a 2D array. You specify what letters to replace with what and it does it.
I understand the code is very repetitive and that I should probably use ...
2
votes
0answers
30 views
Calculate and plot expected value involving summations and products
I wrote a code to calculate a series of summations and products for a maths assignment I'm doing. The equation is shown below.
$$E(\sigma)=[1-(P(\text{$1^{st}$ rejects}) \times P(\text{$2^{nd}$ ...
4
votes
2answers
176 views
Person Info Manager
In the process of teaching myself JavaScript. Starting to branch off into OOP designs and did not want to continue until I knew I was doing it correctly.
Is this a common or accepted way of ...
1
vote
1answer
31 views
Using the BBC iPlayer API for managing TV programs
I have been learning Ruby by reading books and tutorials, and practising some problems on Codewars to level-up my new skills, when I had an idea for a little Ruby code project. It will store ...
3
votes
1answer
31 views
Emulating super() in Python 3.x using Python 2.7
Depending on the name of the first argument, self.__sup or cls.__sup behaves like super() in ...
1
vote
2answers
28 views
Check if an Array of Arrays contains a value in node js
In C#, I could check if any of the nested List collection has a value. Example of such structure Check a List[]> contains a value using Linq
...
6
votes
2answers
40 views
Todo-list practice code accepts title and list
I am new to OOP principles and best practices. People often say I write "unpythonic code," so give me your perspective on how to do things better.
...
4
votes
2answers
256 views
K&R 2-7 - Invert a bitfield from a number
This is my solution to the Exercise 2-7 of K&R C book. The assignment is:
Write a function invert(x,p,n) that returns x ...
10
votes
2answers
435 views
Project Euler #2: Even Fibonacci numbers
Each new term in the Fibonacci sequence is generated by adding the
previous two terms. By starting with 1 and 2, the first 10 terms will
be:
\$1, 2, 3, 5, 8, 13, 21, 34, 55, 89...\$
By ...
0
votes
2answers
18 views
Streamlining button creation and Handlers
The code below works but I can not help thinking it's to 'clunky' and could be so much tidier! It's the first time I've really used AddHandler so go gentle...
Create button(s) and handler(s)
...
5
votes
1answer
41 views
Simple Version of Bunco Game
Any idea to write this code (fixable part) smarter?
Note: Arrays, pointers, global value are not allowed to use.
The game is played with 6 rounds. At the beginning, each player rolls one dice, with ...
10
votes
4answers
722 views
“Course manager” Java program
As of right now I'm a beginner with programming and Java and I've only had a few months of practice so far. This is a project I've been working on as practice. It's essentially a basic course manager ...
3
votes
2answers
70 views
“Hangman” game in Python
I have been using Python 3 to learn programming, and this is a very basic task, but I want to gain good programming patterns/habits at the very beginning.
...
2
votes
2answers
135 views
Defining an OOP structure for a Student class in NodeJS
Most of my coding experience is in C#. The way object oriented programming is laid out in C# is a bit different from NodeJS, hence this is my first NodeJS OOP for a ...
6
votes
3answers
183 views
Searching files in a directory for a string
I have the following static class that enumerates directories in a folder, then searches each file in the folder (it seems to only work with text files even thought I don't explicitly specify that) ...
0
votes
1answer
35 views
Excerpt from a grocery shopping site using SASS
I am a UI/UX designer. I am working on the HTML of a website, using Sass/scss+bootstrap 3 project. It's my first project in sass/scss.
Now my developer's feedback is: HTML code is not up to mark. ...
3
votes
0answers
38 views
A dice roller in node.js
I knocked out a dice roller in 2 days. I think this is the first coding project I've ever actually completed to a degree where I'm not embarrassed to post it.
This is my first time working with ...
1
vote
2answers
69 views
HTML structure for a wedding website using FullPage.js
I am fairly new to coding and currently trying to write as much as I can get my hands on. I started off playing around with templates but now I've decided to go without and therefore I am sure there ...
5
votes
4answers
76 views
Ruby solution to Project Euler Problem #4: Largest palindrome product
I've solved the Project Euler Problem #4, but I'd like some tips as to how to make this more efficient. I am a beginner to Ruby, so please be nice about the stupid stuffs (but still tell me about it).
...
1
vote
2answers
47 views
PHP script that combines data from two CSV files to produce two new files
I've spent some time looking at various posts on Stack Overflow regarding PHP CSV file manipulation and have devised a script that combines data from two CSV files to create two new files.
The aim of ...
0
votes
2answers
37 views
Exception handling in URL builder method
I have a method which is part of a request-handling class. It creates a URL, depending on the resource send request.
This is a part of the REST service:
...
1
vote
0answers
19 views
Automation script for creating NuGet packages
I've been creating some NuGet packages recenly and to automate the process I created the following script that:
reads the package id from the script name
reads the package version from the nuspec ...
1
vote
1answer
28 views
Product information overlaid on a large image
I've created some full-width divs containing images and text to exposure products.
It did take a lot of trial and error (I do not have any kind of education).
However, it feels a bit clumsy and i'm ...
2
votes
0answers
39 views
Randomizer App as Decision Maker
I am a newbie and self taught in programming.
This is my first attempt to make app.
Appreciate any input or comment to make my code writting skill better.
https://github.com/snufflesrea/Decision-...
1
vote
1answer
112 views
Function to find a substring within a string [closed]
I've just completed an exercise in which I had to create a program that searches for a string within another bigger string.
If the substring exists then it is outputted to confirm and the starting ...
6
votes
2answers
406 views
Beginning Python guessing game
I am new to Python (and coding in general) and after about a week of reading "Thinking Like a Computer Scientist: Learning with Python" I decided to try and build a version the classic "guessing game"....
6
votes
2answers
111 views
Beginners project: calculating area
This was my second project as a beginner in Java programming. Please provide feedback/ tips on my program.
...
3
votes
2answers
921 views
Morse Code Conversion
Challenge
Write a program which reads a file containing Morse Code and outputs the conversion.
Specifications
The first argument is a path to a file.
The file contains multiple lines.
Each line ...
7
votes
1answer
49 views
A Rusty implementation of CowSay
I'm making my first foray into Rust. I wanted to copy a fun and non utilitarian tool so I chose CowSay. It's not feature complete (CowSay has a lot of options) but it's a start.
My primary reasons ...
2
votes
1answer
66 views
Implementation of Queue using Linkedlist in Java
Can someone please review my code? Is it the correct implementation of a queue? If not, please give suggestions on how to implement it using a linked list.
...
1
vote
0answers
16 views
Generate all permutations in Clojure
Given a set, generate all permutations:
(permutations #{1 4 5}) => ((5 4 1) (4 5 1) (5 1 4) (1 5 4) (4 1 5) (1 4 5))
Here's what I cobbled together:
...
3
votes
7answers
212 views
Beginners Java calculator
I am a beginner in Java programming, and I created a calculator as my first Java project. Therefore, can you review my code and provide feedbacks/ tips?
...
7
votes
3answers
105 views
Revised - Game of Fifteen
This is a revised version of a previous post. I attempted to address each aspect of the feedback provided. The key changes are as follows:
Replace the deprecated ...
2
votes
1answer
28 views
Parses XML to return the bus times at specified bus stop
The code uses the XML-based OC Transpo data feed to create a list of the bus name, where it's headed, and the times. Keep in mind that I am a beginner at python so any advice at all is appreciated.
<...
1
vote
1answer
36 views
Password validator using regular expressions
I wanted to learn some regex, but learning regex is super boring so I decided to write a password validator that will validate a password with regular expressions.
How it works:
You enter a ...
7
votes
2answers
126 views
Game of Fifteen - A Sliding Puzzle Game
Update: I addressed the changes and created an updated post.
I'm reviewing C by working through the edX CS50 problem sets. This task was to implement Game of Fifteen aka 15 Puzzle. Project details ...
4
votes
2answers
78 views
Designing stack and queue from scratch in C
As a beginner and curious guy I'm interested in implementing data structures and algorithms from scratch. Here's my implementation of Stack and Queue, the most fundamental data structures.
Are ...
0
votes
0answers
26 views
Moving the HTTP and Request to controllers and Routes
I am new to Laravel framework and I made a project application which is working fine but someone said
You should avoid accessing the Request object in your views.
here is the full application ...