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.
0
votes
0answers
11 views
Basic C# calculator (+, -, =) [on hold]
Before I start, I have checked for questions with C# calculator. Most of those seem to be a console excercise or are too advanced for me.
I'm currently stuck on what I think is my math. I've got the ...
2
votes
2answers
25 views
Compare Two Files
One of the K&R exercises is to write a small piece of software to compare two files and print the first line in which they differ.
Here is my attempt:
...
4
votes
1answer
21 views
Ranked beginner quiz program
I have been trying to learn JavaScript for the past few days and decided it was time to put what I had learnt into practice. Here is the program I created. It's a five-question quiz which counts the ...
3
votes
0answers
14 views
After Effects Expression to prevent objects to lay on odd pixels when a Keyframe is applied
I made a scripted Expression for After Effects a while ago. This script is preventing objects to lay on odd pixels when a Keyframe is applied.
...
1
vote
1answer
37 views
Genetic algorithm to fill timetable for school
I wrote a program to fill a timetable for a school. There are some simple rules:
Each subject has a preset number of blocks (blocks are 2 hour periods).
Professor provide a valid hours they have ...
4
votes
1answer
44 views
Simple Breakout/Arkanoid clone with SFML
I'm doing this small Breakout clone for school, and I've looked at heaps of people's takes on Breakout and tried to combine bits and pieces that I liked. Only problem that I'm having is getting the ...
4
votes
0answers
28 views
Using Rails concerns for validation in models
This is my first Rails project. I have read about concerns which are a great tool, but I am confused about how I should redesign my models.
Some models have similar fields, but the validations are ...
2
votes
2answers
42 views
Simple easy to use AutoTyper
I have created a auto typer that runs through a simple little GUI, this was my first ever Java program so it's pretty simple and not anything special, but I'm curious to know if there's anything that ...
4
votes
1answer
36 views
Word Counter Project
I recently read K&R The C Programming Language and wanted to write a small program to count the occurrence of each word in the input (std-input - I piped a file with all shakespeare pieces in ...
-1
votes
0answers
15 views
advice on my current progress in battle simulation [on hold]
I would love to hear any feedback on the current status of my game. Any advice on how to better utilize classes and any other tips would be greatly appreciated.
...
5
votes
0answers
27 views
Example script for teaching DDL and CRUD/DML operations
I have taught some SQL to others before, and I thought of making a script that has these attributes, for the purposes of teaching:
Fully functional to run on local DB instance with no fuss
Easy to ...
4
votes
2answers
57 views
Email checker ('@' sign, provider, domain extension)
To learn about classes, I chose to create a little something that checks if you have included the following:
@ sign
Provider (e.g. 'hotmail')
Domain extension (e.g. '.com')
It also checks if you ...
3
votes
3answers
269 views
Merging two files into one .CSV
I'm relatively new to Python scripting. I made a script that takes two raw data files and merges them into one CSV file, but it takes a long time to complete. Are there any logic problems in this ...
2
votes
3answers
83 views
Algorithm to add all lucky numbers under [N] to a Vector
A lucky number is defined as a positive integer whose decimal representation contains only the lucky digits 4 and 7. For example, numbers 47, 744, 4 are lucky and 5, 17, 467 are not. I need to ...
2
votes
1answer
60 views
Find the number of quadraples (a,b,c,d) from 4 respective arrays such that a+b+c+d=0
Given four lists of numbers, calculate how many ways there are to
choose one element from each to get a sum of zero.
The input is given on stdin, first ...
2
votes
3answers
285 views
Sum of digits in Clojure
I wrote a simple program to sum the digits of a number in Clojure for learning purpose. Not very complex (I hope) so not adding any explanation. I am a beginner in Clojure so please don't mind ...
8
votes
2answers
190 views
Scoring and grading answers against an answer key
Intro
I won't lie this is for a university assignment (don't worry the code is in working order), and while I could hand it in as-is and receive full marks I feel like there is probably a more ...
5
votes
1answer
71 views
Simple adventure game
I'm new to programming, became interested in learning a while ago and only got to it recently. I'm working on a very simple text-based adventure game using Python, and would like some tips on ...
4
votes
2answers
75 views
Read firewall logs
I am still a Python beginner and would appreciate some help with this code.
I am looking through some firewall log files, more specific all lines with Deny in them. For those files I am extracting ...
0
votes
0answers
42 views
Toggle functions for drop down for a clock time widget
I'm fairly new to JQuery/JavaScript and I'm trying to refactor the following code:
...
1
vote
3answers
71 views
Removing punctuation and lowercasing a string
I am very fresh to python. As part of an assignment, I've written the following code to remove punctuation from a string and convert it to lowercase.
...
3
votes
2answers
54 views
Practice with dictionaries
Post a cursory read of this I implemented a simple dictionary and an interface to assign, replace, look up, and redefine its terms to apply the concepts.
It's simple, but I'd still like to know any ...
2
votes
2answers
49 views
FIFO getch/ungetch Functions
I'm currently working myself through K&R and just read about implementing getch() and ungetch().
In K&R these ...
2
votes
1answer
40 views
Calling getter or setter with expression tree
I have some part of my code that uses reflection and there is some slowdown issue that I have to fix.
After some research I found that expression tree seem to be a good candidate to fix it also it ...
0
votes
2answers
85 views
Programs for different language learning - Perl
I've created a program for my own purposes in three different languages, Perl, Python, and Ruby. Each program will be posted in with their own tag but I will add links to them through on each post. ...
1
vote
1answer
71 views
Programs for different language learning - Python
I've created a program for my own purposes in three different languages, Perl, Python, and Ruby. Each program will be posted in with their own tag but I will add links to them through on each post. ...
2
votes
1answer
43 views
GitHub Auto Copy Committer via API
I did write the GitHub Auto Copy Committer.
The purpose is to copy an existing public GitHub repository to in
another repository - commit per commit. It's reason is not a full copy
of a ...
6
votes
0answers
40 views
Unity3D native iOS plug-in to read pedometer data
I've made a plug-in for Unity3d for iOS. The plug-in's job is to get the Pedometer data from history within a specified period of time and return that to Unity for later use. I am confident in my C# ...
5
votes
1answer
56 views
Auto-complete using Tries in Python with OOP
I am working on a problem to develop auto-complete functionality to practice different applications of Tries. The auto-complete function will return all the possible words in the wordlist given a ...
3
votes
1answer
21 views
My own twist on the classic “Guessing Game” script in Python
This is a (letter, or whatever the user decides to change it to) guessing game I wrote which implements both a mechanic to randomly change the order of elements in a list, as well as limit the number ...
3
votes
1answer
50 views
+50
Binary trees in Rust: more iterators! (non-consuming variant)
This is a follow-up to Binary trees in Rust: iterators, where Shepmaster suggested that I implement a non-consuming iterator.
This was relatively straightforward.
I chose to mirror the design of the ...
-4
votes
0answers
14 views
Getting Error in the program of displaying date and time [closed]
#include<iostream>
#include<ctime>
#include<crtdefs.h>
...
8
votes
5answers
520 views
Simple Java calculator with two operands
I am new to Java. I am taking a lynda dot com course online to start off. The course asks you to write a simple program:
Ask the user to input 2 values
Ask the user to input an operation
use the ...
5
votes
1answer
47 views
Binary trees in Rust: iterators
This is a follow-up to Basic binary tree manipulation in Rust, where Shepmaster suggested that I implement the Iterator trait for the binary tree.
This ended up ...
1
vote
2answers
60 views
Python API Query + Email Notification
I wrote this to query the Trello API to find the cards that haven't been updated in 7 days and send an email notification to the card's members as a digest.
I'm a Node.JS & client-side JS dev, ...
7
votes
2answers
52 views
Meet Results Displayer
I decided to dive into the world of JS/JQuery by trying to build a simple web app to display all of my various meet results in an easy-to-view manner. For this stage of the review, all it does is ...
4
votes
1answer
33 views
Basic binary tree manipulation in Rust
The goal here is to implement a basic binary tree with values only on leaves, with depth, mirror, and ...
2
votes
1answer
47 views
Caesar Encryption-Decryption Tool
I'm a beginner in Python. I wrote this code which encrypts and decrypts text using Caesar chipher. I wrote it in many days and optimized it many times. But how it can be improved more?
I've used ...
4
votes
2answers
76 views
Find all distinct palindromic sub-strings for a given string
I was solving a question where I had to find all possible unique palindromes of size greater than 1 for a string.
I was able to come up with the solution shown below. If I am not mistaken it is an ...
2
votes
3answers
43 views
Calculator using Tkinter
So this is my first project.
I made a Calculator using Tkinter.
For the next version, I will try adding
oops concepts
Custom parser for input
Here's the code
...
10
votes
3answers
877 views
Password Strength Detector
I'm just a beginner in Python.I wrote a simple code that detects the user's password strength,but I feel that it isn't very efficient.How can I improve it?
...
4
votes
3answers
143 views
Cipher decryption and encryption
I'm brand new to C# and I've started to make a cipher decryption program. The code works and runs fine, apart from the odd exception. I'm just looking for ways to improve my code and make more ...
2
votes
0answers
39 views
Movie torrent-site web scraper with IMDb info and streaming
I'm completely new to Javascript and NodeJs and functional programming in general. The code below scrapes a torrent-website containing movies, gets info about the movie from the OMDb API and lets a ...
2
votes
0answers
25 views
Suggested improvements for C++ 14 event bus implementation
I would like to know if there are any improvements I could make to the following event bus code I have written (I am reasonably new to C++ but am experienced in other languages).
A brief explanation ...
3
votes
2answers
82 views
Python 2.7 Payroll Calculator program
This is a calculator I'm working on. The ultimate goal is to calculate multiple payrolls before selecting to end the program, please review current version in that context. PSA: I'm a beginner.
...
2
votes
1answer
51 views
Bidirectional map
For fun and to learn a bit, I decided to implement a bidirectional map in Ruby, relying on Ruby core libraries where possible.
Its behavior is intended to be that of a Ruby Hash, but one in which ...
0
votes
0answers
18 views
Sanitization and phpmailer security
I'm trying to set up a contact form using phpmailer. Are there any security holes in my code? I want to be sure as I feel there might be some kinda exploit I may not be aware of.
...
3
votes
1answer
48 views
Battle simulator RPG
I just learned about classes today and wanted to find a way to implement them that interested me. I whipped up this little battle simulator and would like any feedback and critiques as well as any ...
4
votes
3answers
55 views
'Learn projects the hard way': logfind project
I'm a new programmer, who has just finished his first small project.
It's a sort of basic imitation of the grep command from Linux. I'm learning from projects the ...
7
votes
1answer
74 views
Breakout game in JavaScript
I decided to make a Breakout game in JavaScript. Is there a way of making it cleaner? For instance, creating objects for the ball and the paddle.
...