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

-1
votes
0answers
32 views
2
votes
0answers
23 views

Final Java TicTacToe MVC Program

After my previous post, I decided to work on the project myself for a while (two weeks) to see how far I could get after reading a few of the really helpful answers to my previous posts. I read up on ...
6
votes
3answers
346 views

Storing hashed passwords

I'm a beginner and am self taught and was hoping I could get help from others more educated than me to show me what bad practices I might be forming before I go on further. P.S. This program is just ...
2
votes
0answers
18 views

Stack based esoteric language interpreter in Ruby

For a while now, I've wanted to write a stack-based "Turing-tarpit". This is the perfect excuse to learn Ruby, which I have never used before, so I wrote Brain-flak. The language only uses these ...
1
vote
0answers
23 views
1
vote
1answer
48 views

FIRST and FOLLOW sets calculator in Haskell

I found myself wanting to brush up on some notions about parsers and grammars and, at the same time, to exercise my Haskell - I am a Haskell newbie; moreover, I haven't touched the language at all in ...
7
votes
4answers
1k views

Simple python calculator

I'm very new to Python, and so I'm trying to learn it by doing simple programs, like a calculator. But I don't know if this is the "Pythonic" way to do it, or if I am making beginner errors. So ...
4
votes
1answer
50 views

Bubble Sort in C

I am trying to learn C coming from Python. Below is an implementation of bubble sort, slightly optimized. Any advice on best practices, readability, use of macros, and edge cases would be greatly ...
3
votes
1answer
56 views

Chopsticks Game in Python (Version 2)

This is another iteration of my previous question. This program plays the game Chopsticks using the Minimax algorithm. I search the tree using recursion. The problem, however, is that it is just ...
0
votes
0answers
17 views

Simple program that copies just new files from one directory to another

I'm doing a Python course for beginners, and the last assignment was to create a program using shutil and wxpython that can copy new files (created in the last 24 hours) from one folder into another, ...
2
votes
2answers
35 views

Print how many times a sequence of characters appears in a string

Given a string, count how many times a sequence of characters (in this code, the sequence is "ei") appears until the user types '#', then print the amount. I would like to know how to improve the ...
2
votes
0answers
23 views

Picking seats in a matrix

I'm trying to write a Python class that creates a matrix of zeros, then uses a random number generator to pick 'seats' on the matrix. It changes the zero in that seat to a one, until the matrix is all ...
4
votes
2answers
43 views

Counting from 0 to a number and back to zero, and space-padding the result to be a given length

I completed a task: The objective was to create a method with 2 arguments: a number to count to, and how many char/numbers in the resulting string. Result: Let's say that "number" is 5, so it will ...
2
votes
0answers
47 views

Retrieves Remote Certificate, displays Validity

I'm a Windows sysadmin who is new to C# and "professional" coding. My background is in VBScript ("get it done") and I've apparently built up a number of bad habits. I'm hoping a review of the ...
3
votes
1answer
28 views

Haskell Pig Latin Translator - v2

Thanks to Gurkenglas for the help with the previous iteration: Haskell - Pig Latin Translator! Given the constraint that the newtypes are required, what ...
4
votes
4answers
263 views

Data type detection for a CSV file parser

I am building a CSV file parser, and in order to get the appropriate Object to represent different data types found on the parsed files, I wrote the following function: ...
0
votes
1answer
40 views

Bundling JavaScript resources for an MVC app

This is my first MVC app. I'm looking for best practice feedback on how to best bundle the files that I need, the order to bundle them, the placement of the @render ...
0
votes
2answers
35 views

Array that defines product information and generates the html for the product

Is there a more productive way to do this? Is my code up to standards or up to best practices? ...
1
vote
1answer
38 views

Printing chessboard with *(asterisk) and .(dot)

I have written a program in which user enters total number of conditions (cases) and then that many number of inputs to print chessboard. For example: ...
3
votes
2answers
88 views

beginner TICTACTOE game for my school projet

I just wanted to know how can I code more efficiently with my project. I'm pretty sure that all these nested "if's" can be done easier and with less code. I made a TicTacToe game with 3 difficulty ...
3
votes
1answer
81 views

Tic-Tac-Toe game in C++

I'm new to C++ and made this basic Tic-Tac-Toe game from scratch. I would like to know if there are simpler or more efficient ways of doing the things that are covered in the code. As I said, I'm new ...
0
votes
1answer
63 views

Tic Tac Toe (Player vs Computer)

Hi I am looking on how I can improve my writing style and/or how to simplify how I write my code. Thanks in advance! ...
-3
votes
0answers
59 views

Speeding up code (beginner) [closed]

So I've written some code that I'm sure can be done quicker and more effectively on my micro, but I just can't my head around it. (using TM4C1294xl in CCS) I have an interrupt which I want to read the ...
6
votes
1answer
51 views

Simulating character selection with JOptionPane

I am writing a program to simulate some parts of the popular game Hearthstone by Blizzard Entertainment in Java. The first thing that happens in any game is the selection of the character each player ...
1
vote
0answers
30 views

Searching a Maze Using DFS [closed]

I am new to recursion and searching algorithms and am trying to implement a maze searching program using DFS. I have tried troubleshooting the issue, but there seems to be an error with my code. Any ...
7
votes
2answers
119 views

Decides the mechanism of organic chemical reactions based on user input

I'm new to programming, and I would appreciate any constructive criticism on my code and if there may be a more efficient way to code this. ...
6
votes
2answers
50 views

End of day receipt emailing process

The following functions/routines are an automation of an end of day receipt emailing process that formerly would take up to an hour, but now takes less than a minute. Things to note: I changed the ...
7
votes
1answer
107 views

Button-clicking UI for a game

I've been working on this game for a couple weeks now as a purely personal project to help myself learn Java. I'd like to know if I'm on the right track with my project. Items I'd like specific ...
3
votes
0answers
38 views

Golang Tour Web Crawler Exercise

In the last few days I've played around with Go a little and took the language tour. The last exercise (text here) requires you to crawl a graph that simulates a set of Web pages with links, using ...
0
votes
2answers
59 views

Currency converter in Python 2.7

I'm a beginner and it is my first project in Python 2.7. My goal is writing a script that I can run with two or three arguments. If run with two arguments like ...
7
votes
1answer
116 views

Chopsticks game in Python

As a beginning project, I decided to code something that plays the game Chopsticks in Python 3. I'm using the Minimax algorithm, and exploring the tree using simple recursion. One of the main problems ...
16
votes
5answers
2k views

Word Inverter in C

I've just made this program and I want to know how to improve it. It just receives a word and prints it backwards. Sequences of numbers are also accepted, but not white spaces (that's why I used ...
4
votes
1answer
227 views

Beginning of simple rogue-like RPG (in console) in C++

I've started to learn programming recently and it's my first more or less "big" project. But coding this project for me is quite hard. I spent a lot of time to understand what I've done and my coding ...
4
votes
2answers
82 views

Convert integers into binary

I've made a very simple program that takes integer number arguments either with plus/minus sign or without them, and print the number in binary format. binary.c ...
2
votes
2answers
57 views

Designing a sorting algorithm from scratch

I'm taking a Python course and the current assignment is to create an algorithm that sorts numbers in ascending order (without using built-in sorting functions). I've had no programming experience ...
4
votes
2answers
47 views

Alphabetic Pattern Pyramid

I want to know if I can improve this program. Its goal is to print a pattern in a pyramid form, by first receiving a letter. The first row is always 'A', only. Then 'ABA', then 'ABCBA'. Increasing ...
4
votes
1answer
49 views

Mendelian inheritance

I started out with the Rosalind problems a while back. Turns out it's a great way to learn a new language. I'm still trying to learn Ruby, and while I haven't managed to use regular expressions as ...
4
votes
1answer
48 views

K-means clustering in Rust

I've implemented K-means clustering in Rust. It's my second Rust project (my first one is here: Randomly selecting an adjective and noun, combining them into a message) I would like advice on ...
2
votes
1answer
41 views

Optimizing quicksort partition method/function for duplicate elements

I'm a newbie and interested in learning different data structures and algorithms. While implementing quicksort, I found this code works pretty well for partitioning. ...
2
votes
1answer
405 views

Thread class for exercises

I just felt a sting as for the first time, I copy-pasted code blocks, and made very little change to it, to overload it. It works fine, but I have 3 constructors that are basically copy-pasted. I'm ...
2
votes
0answers
22 views

PySpark Dataframes program to process huge amounts of server data from a parquet file

I'm new to spark and dataframes and I'm looking for feedback on what bad or inefficient processes might be in my code so I can improve and learn. My program reads in a parquet file that contains ...
1
vote
0answers
27 views

Pong game with 8x8 matrix LED display in Arduino

I was working on programming an 8x8 matrix LED display. In particular, I am trying to make a basic version of Pong, controlled by two switches, one switch for each paddle. A ball is generated and ...
3
votes
1answer
49 views

Haskell - Pig Latin Translator

What improvements can I make to the following Pig Latin translator? So far, I've been wondering about the FlexibleInstances declaration, but I can't think of how to ...
6
votes
2answers
57 views

Creating a family hierarchy

Requirement: For the input list of tuples to create single line output showing father of the family|spouse|child1,child2.... Input: ...
0
votes
0answers
42 views

Pac-Man-ish Game(Maze)

I am a freshman in university. This Pac-Man-ish Game is my final Computer science homework. I know my code is not perfect and has so many to be improved. However, Compared to corrections of this ...
6
votes
2answers
227 views

First program: a simple calculator

I'm reading this very good book, C# Player's Guide, to learn C#. I then plan to make video games with Unity 3D after. In one of the chapters, he asks us to make a (really) simple calculator as a ...
4
votes
2answers
71 views

Number guessing game

i'm a beginner and this is the second program that i have written by myself from scratch, i wrote a basic snake game with PYgame but i didn't do it by myself, so anyway, what do you guys think of ...
5
votes
0answers
62 views

Simple Conway's Game of Life implementation in Java

I wrote a simple implementation of Conway's Game of Life in Java using 2 arrays and for loop and used StdDraw library for plotting generations. It turned out that ...
3
votes
1answer
67 views

Sleeping barber problem in Erlang

I'm learning Erlang. It's my first time with a non-imperative programming language. I've written a code and I want some thoughts about it: Is my logic easy to understand? Is my code idiomatic? Is ...