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
18 views
Argument parser
I'm fairly happy with this script so far. I feel like my Python is getting cleaner and cleaner as I write more scripts. I'm ~6 months into Python since graduating from college, so I'm sure it's still ...
2
votes
1answer
41 views
Checking for vowels rewrite
A few days ago I posted a little program that would check for vowels within a given word. I have rewritten this program, it can only find vowels in the English language still but, it will now tell you ...
0
votes
2answers
29 views
Getting and posting data use PHP OOP and mysqli
I am not very experienced in php oop. Moreover, when mysqli comes with php oop, it make me more confused about using it in best efficient way. Anyway, first look at my connection class:
...
-1
votes
0answers
12 views
Linq to Xml - Update existing xml document [on hold]
Hie everyone. Im tring to update an existing xml document that is part and parcel of the application. The xml document contains instructions for the application. I have been searching how to save and ...
8
votes
1answer
105 views
Calculating word-wise CRC
This is a small program to calculate the CRC for an STM32 program image, compatible with the CRC on the STM32 hardware. It's a word-wise CRC, and the bin file is encoded as a series of 32 bit little ...
1
vote
1answer
30 views
Support multi functionality in server.js
i've node app that having the main function server.js(entry point)
Following is the server.js file code
...
1
vote
0answers
34 views
Dynamically call a function in a given module
I use the following code that is working as expected and I want to get some feedback from the community how I can Improve it...
The code does the following:
Get Some request with specific ...
-2
votes
3answers
75 views
Generating a very long random string of letters
I was trying to fill a file with about ten million random characters (a-z,A-Z,' '). To my surprise the code is extremely slow. I inserted this print ...
6
votes
2answers
231 views
Card-fighting game Part 2
Information:
This is part 2 of the game I am building. After some good feedback on my first post I decided it was time to post my updated code. The differences in this part are: Updated code after ...
5
votes
2answers
61 views
Movement around a large map
I'm trying to make a small shooter game, where you can only see a small portion of the map around you. The map will also be much larger then the actual JPanel (The panel is 1000 by 1000, the map ...
0
votes
1answer
49 views
Probability Chance
I'm creating a game and I need some properties to work as percent chance to hit/dodge. I implemented a small testing program that takes percent chance and the amount of hitting attempts as input and ...
4
votes
2answers
78 views
Guess a number, any number, between 1 and 10
I am learning Ruby and would like to know how I am doing as far as writing the actual code.
Please keep in mind that this is my first Ruby script program, but I am trying to learn ruby in a very ...
3
votes
1answer
40 views
Building blocks of Life
I'm learning Clojure, and decided to write a Conway's Game of Life clone as my starting project. I ended up dicking around for a bit before diving in, and came up with a few functions that I'd like ...
23
votes
1answer
2k views
Charmander Brainfuck interpreter in Haskell
I just started learning Haskell and this is my first big project (ie not factorials, fibonacci or graphers). This is kind of a gift for somebody so the language is a bit different. The program works, ...
7
votes
1answer
97 views
Basic C# calculator code
I have not had any experience with coding before, and after beginning to learn I stated working on this calculator which runs different functions on the console. I'd like to hopefully be taught what I ...
4
votes
1answer
35 views
LEB128 in Haskell
I have implemented the LEB128 encoding for unsigned integers. I'm fairly new to Haskell so I have some doubt about the coding style I'm using, particularly the definition of ...
10
votes
1answer
129 views
Card-fighting game
I am currently building my first game/app in javascript. It is a very simple script that has about 130~ lines of code. I feel like what I did so far is not optimized, can anyone please help me ...
7
votes
5answers
1k views
Checking if a string contains vowels
I'm just learning C# and wrote a little program to check if a word contains vowels, it's fairly simple and not to exciting but I would like to know if there's ...
4
votes
3answers
112 views
Pythagorean triplet adding up to 1000
Project Euler problem 9 says:
A Pythagorean triplet is a set of three natural numbers, \$a < b < c\$, for which, $$a^2 + b^2 = c^2$$
For example, \$3^2 + 4^2 = 9 + 16 = 25 = 5^2\$.
...
2
votes
2answers
83 views
Simple TicTacToe game in C++
I just started learning C++, and this is one of my projects. It's just a simple 2-player (No AI) TicTacToe game that runs from the console. The project was to familiarize myself with arrays, so review ...
-1
votes
1answer
13 views
Query multiple values before displaying all results [on hold]
I'm very new to Python, and programing in general, but have been trying to learn the ropes for a little while now. I know I can use WMIC to fine the information I'm after in the Python code below, but ...
3
votes
4answers
38 views
Beginning guessing game in Python
I've just finished work on my guessing game. I'm still fairly new to Python, so I'm looking for feedback and criticism on the code.
...
1
vote
1answer
23 views
Speed-Distance-Time Calculator in Rust 1.8
Whenever I try a new language I always try to write a speed-distance-time calculator as well as possible. I did this with C++ a while ago now. This is a similar question but this time in Rust.
The ...
0
votes
0answers
22 views
Infinite monkey theorem [closed]
I'm trying to learn python and that's my first programming language.I was reading 'Problem Solving with Algorithms and Data Structures' by Brad Miller and David Ranum, and there was an exercise about ...
3
votes
3answers
422 views
Finding the tree height in Python
I'm trying to get an efficient algorithm to calculate the height of a tree in Python for large datasets. The code I have works for small datasets, but takes a long time for really large ones (100,000 ...
1
vote
0answers
74 views
Snake game in C++ for Windows console
To give you a simple background, I've been programming in C++ for about a week and decided I wanted to build a simple snake game.
I made one over the course of a day and this is the end result. What ...
5
votes
1answer
58 views
Random playlists program
This is the first program I've created without help from a tutorial. Written in Python 3.4, it gathers a specified number of media files and opens them in the default player (I use VLC on Windows ...
0
votes
0answers
27 views
Project Euler #9 through #12 in Haskell [closed]
I'm new to Haskell and practising with some Project Euler. These solutions all return the correct result in a reasonable time, but I'm looking for advice on making my code more readable, cleaner, and ...
3
votes
2answers
78 views
Obstacle-spawning and movement scripts
I have these scripts I made that work absolutely perfectly as I need them to. Is there any improvements that can be done to these scripts and make them more efficient for Mobile Platforms? Or even ...
4
votes
2answers
30 views
Adding dynamic column names to a table
I'm using Microsoft SQL Server 2014 Express.
I found myself wanting to add the Columns CompanyNameChangeDate (1 through 10) and ...
13
votes
3answers
599 views
C# Program that checks on the status of the Capslock with each character insert
The following is my first successful running C# program.
The lessons that I personally learnt through this include:
The value of asking for help after having tried several times
The advantages of ...
2
votes
1answer
74 views
Finding the two largest three digit numbers missing from a text file
Hear this problem: Write a C/C++ program that reads all the values from the "BAC.TXT" file and determines which are the two largest three digit numbers that are missing from the file using a ...
3
votes
4answers
93 views
A simple command-line calculator
I created a simple command line calculator, and then after some reading I made a few tweaks and then remade it with a friends idea to make it more simpler. I'm wondering if this can be more optimized ...
1
vote
1answer
73 views
Reading from text files in C/C++ [closed]
I'm writing a program that has to check which are the two largest three digit numbers that are missing from a text file. I'm writing this in C++ and I'm trying to solve the mystery in a ...
4
votes
1answer
52 views
How can I enhance my linkedlist implementation in java?
I recently implemented Linked List on my own. I did not use generics as I am still learning. How can I improve it:
...
4
votes
2answers
121 views
Python 3 NetScanner Daemon
I’m pretty new to programming and python in particular. This is a simple ICMP/TCP scanner that dumps output to a terminal and/or csv file. My goal was to make a daemon that could do simple scanning ...
3
votes
2answers
52 views
Simple 'Evolution of Text' app
I'm a complete beginner to Python, and wanted to get some feedback on my first app. I tried to make a clone of the 'evolution of text' app found on the Using Python website.
Enter some text, and ...
4
votes
1answer
53 views
Tic Tac Toe using WinForms
I have made a simple tic tac toe game and need help tweaking it to fit the bill of object oriented design. Any suggestions most welcome. I basically want it safer, and more "best practice-like" It is ...
2
votes
1answer
41 views
Median of 3 Quicksort in C
I'm trying to re-implement the C stdlib function qsort using a median of 3 quicksort.
...
3
votes
1answer
49 views
Wall-runner type game
I'm working on a Wall-runner reaction based game. As I know my way around a lot of the features Unity provides, I'm still in the beginner phase when it comes to working with several classes and ...
5
votes
2answers
412 views
Pig Latin Translator in Python
I am a relatively new Python programmer and made a simple Pig Latin to English translator and vice versa. I would just like it if someone reviewed my code and see if anything can be done to make it ...
2
votes
1answer
52 views
Clojure counter
I'm learning clojure ref types and was trying to make a robust counter generating function. Is there any error or improvement on the code? is there a simpler way?
(I want the function to be ...
5
votes
4answers
296 views
3
votes
1answer
43 views
Memory game using Python and PyGame
I am a beginner in Python and PyGame and wrote a memory game. I think there are lot of things I could have done better. I am looking for some advice on how I can improve the design and refactoring of ...
1
vote
1answer
46 views
Simple name-drawer using Python and Tkinter
I am a beginner playing around with Python and Tkinter. I wrote this program to draw random names given the students in my classes. I tried to follow PEP 8, but I was wondering if there are any ...
-1
votes
0answers
54 views
SPOJ prime generator problem in Python 3
I am trying to solve an SPOJ problem using Python 3: print all prime numbers in a given range (as large as 109).
...
2
votes
1answer
46 views
Linkedlist visualization using html5 canvas
I have written a simple linked list visualization program in JavaScript:
I am just a beginner in html5 canvas. I am pretty much satisfied with how it works, but I´d like to know if I made some ...
1
vote
2answers
235 views
Simple Tic Tac Toe
I have written a simple Tic Tac Toe game in WPC C#. I am just a beginner and learning. Could you tell me if there is something wrong with my code / could be done better? I am pretty much satisfied ...
5
votes
2answers
555 views
Hangman from a beginner
I'm trying to learn programming with python by myself and I've made a hangman game for exercise purposes.
...
4
votes
1answer
55 views
12/24h Time format converter
I am really new at this and I was wondering if there is a more efficient way of writing this code, which converts time format to 12-hour from 24-hour format, and vice-versa.
For example ...