Questions tagged [beginner]

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.

Filter by
Sorted by
Tagged with
6
votes
3answers
441 views

Rock-paper-scissors in C++

I'm relatively new to C++, and have attempted a Rock Paper Scissors game, and it works. Here and there I added some countdowns so that the program doesn't run instantly. Any tips for improving the ...
2
votes
0answers
62 views

Download and parse XML data from a URL every minute with F#

The purpose This code is intended to achieve the following goals:- Create a hard coded list of lifts, this is pretty static and I add some extra info so I'm ok with this being in the code but I may ...
10
votes
3answers
871 views

Text-based role-playing game

I created a text-based RPG. game.py ...
1
vote
0answers
37 views

Changing game mode in Tic Tac Toe [The Odin Project] [closed]

I'm posting this here mostly as I posted it over at stackoverflow because the user that answered me recommended it: I'm learning to code with The Odin Project. So far, I've been doing every project ...
3
votes
3answers
187 views

Third and second degree polynomial equation solver in C++

I'm quite new to C++, so as a beginner's project I decided to create a program that can solve second degree polynomials and (some) cubics using this lengthy formula I had found online. I would love to ...
3
votes
2answers
67 views

Staff Manager Windows APP -Python

Below there is a full code for my app Staff Manager. The app does allow basic staff management, like adding, removing or changing details of employees. As it is one of my first GUI apps and I am self-...
2
votes
4answers
941 views

Fantasy Character Creation Tool (early prototype)

I recently started studying C++ programming; while attending the course I'm writing a program on the side as a personal project to familiarize with what I'm learning. It is still very basic and I'm ...
1
vote
1answer
63 views

Optimizing Code for Project Euler Problem 04

I just finished Problem 04 on Project Euler, and I was looking at ways to optimize my code, just started learning functions too, so I'm pretty sure it's very bad, hopefully you guys can help me. ...
3
votes
2answers
165 views

Online Judge 10189: Minesweeper (C++)

I'm new to C++ (not to programming in general), which I want to learn to participate in some programming contests. I solved the Online Judge Minesweeper Challange. Since I'm not familiar with C++, any ...
1
vote
2answers
67 views

Improving Project Euler code problem #10

So, I just finished Problem 10 on Project Euler, but it took about 3 to 4 minutes for my output to come out, due to bad coding, I guess, any suggestions on how could I optimize my code? Question The ...
2
votes
1answer
50 views

Garden simulator [closed]

I tried to write the program so that it runs without error but I want to improve the program so that it follows the Single Responsibility Principle. What changes can I make to improve this program? I ...
3
votes
2answers
106 views

Prime number finder in Python3

The problem I am working towards improving my Python coding. I am checking that I am doing the best in terms of the Python code, not necessarily the algorithms. Having looked at one of my previous ...
6
votes
3answers
732 views

Remove repeated numbers from a list

So, I just managed to finish a problem that was proposed to me, and I find it very difficult since I started learning looping with for and using lists recently, I ...
3
votes
1answer
54 views

Simple Swing tool which displays a few procedurally generated dungeon levels

I've been teaching myself Java programming. I thought it would be an interesting exercise to program a simple utility for procedurally generating dungeon levels. This program creates a small, random ...
10
votes
5answers
3k views

C++ code for calculating the cost of carpet

I have written the following code for the question (from Problem Solving With C++): A store sells carpet for $2.75 per meter. If a customer buys more than 10m of carpet, they get a discount of 15% on ...
2
votes
1answer
71 views

Simple lightweight CSV reader in C++

My coding background is mostly from C and I've noticed that I tend to "use C++ as it was C" quite a lot. So this is a very small project I've written to improve my understanding of best ...
3
votes
1answer
210 views

Generate possible combinations by range and length

I am learning Haskell and I implemented a recursive function that generates possible strings by length and array (e.g. ['a'..'z']): ...
0
votes
2answers
71 views

Sort table with ascending or descending order without a library

This is my first day coding, and I need help with sorting a table in ascending/descending order. The idea is that when a column is clicked it will sort in ascending order, and then it is clicked again ...
0
votes
1answer
109 views

Linked List Implementation in C#

I wrote an implementation of the Linked list data structure. I mostly did this because it's the simplest collection data structure (at least the simplest to implement), and I wanted to practice ...
1
vote
1answer
64 views

JavaScript change calculator

I'm new at coding and I'm learning it on freeCodeCamp, that's the most hardest problem that I have already do at that site. After finishing it (after I vibrated as if I had won a world competition of ...
5
votes
4answers
181 views

Create a little adventure world

I have just recently picked up coding and am trying to improve my coding. I've written this bit of code to create a little adventure world. I haven't completed the code, everything runs how I want it ...
2
votes
4answers
113 views

My tic tac toe minimax implementation

This is my first time using StackExchange. I did not have any idea what this website for, but I guess is a place to review the code? So, I'm just going to give it a shot. ...
2
votes
2answers
102 views

Variable length array

I just started learning java and wrote this variable length array as my first program. I wanted people's opinion on how "java" this code is. For example coding conventions, idioms that I ...
2
votes
2answers
71 views

Number guessing game in Ruby

I am a newbie in Ruby. I want to learn Ruby and I want to learn clear code in Ruby. I coded a number guessing game but my code is smelling bad. How I can do better code? ...
4
votes
2answers
362 views

War card game with random play

I'm trying to learn C++ with a background in python. This is my first program besides general practice. I wanted to remake the war game. I'm looking to get feedback on the C++ equivalent of its ...
5
votes
2answers
170 views

Caesar cipher using Python

I am just beginning to learn Python, this is my own take on a Caesar cipher just looking at Python docs. I would like to know how I could have made it better and how would you rate this. Is it any ...
1
vote
2answers
57 views

Ask 2 terms from user and add them

I'm making a program that can add 2 terms that the user types. I think I've got identifying or evaluating the terms down. I used classes because I just recently learned it and I also heard it was good ...
1
vote
1answer
79 views

Expanding on a problem from Automate the Boring Stuff

Note: this is not the solution for the "Character Picture Grid" problem from Automate the Boring Stuff. Instead, this is an expansion of that problem simply for the sake of understanding ...
4
votes
1answer
177 views

Cloud storage using python Socket library

One year ago I learned some Python 3 in Highschool, but I haven't really programmed anything since then. I decided to start a new project to try and practice a bit before entering the first year of an ...
8
votes
2answers
134 views

Simple debug logging

I'm new to C++, and I wanted to add a way to log in a fancy way. As such, I created a small bit of code to do so, but I'm wondering how I can improve my code, especially the fact that ...
1
vote
2answers
71 views

WaitFor method for website automation testing with Selenium WebDriver

I am trying to use Selenium for website automation testing tasks and I am new to Selenium testing framework. The the situation I faced is to wait the website components loading and then do the related ...
5
votes
1answer
49 views

Cisco equipment troubleshooter tool

I am a network engineer and started playing with Python as a way to supplement some downtime in the job. We have no automation at the company so I was playing around with making a GUI to run simple ...
1
vote
1answer
79 views

Scrape from Craigslist

I'm new to Python and just started to learn about scraping and pandas library. Here is a little scraper I wrote. I'd like to know what's a professional code for this would look like. I have a sense my ...
2
votes
2answers
85 views

Markov text generator program in Python

This is my first non-trivial program in my Python. I am coming from a Java background and I might have messed up or ignored some conventions. I would like to hear feedback on my code. ...
2
votes
1answer
76 views

Todo App with JavaScript

I am learning JavaScript and this is a simple todo application I made which uses local storage. It is currently running at: https://koraytugay.github.io/vanillatodo/#. The code is as follows. I am ...
0
votes
0answers
24 views

Batch Insert Multiple Figures into Powerpoint Slides with VBA

This is a follow-up question for Batch Insert Figures Into Powerpoint Slides with VBA. I appreciate PeterT's answer. Besides the single image replacement, I am attempting to make ...
-1
votes
2answers
107 views

Find the matrix row having the largest sum

...
9
votes
4answers
3k views

Criticize my Sudoku solver for improvements (C# beginner)

I recently started programming and chose C# as my first language. After a couple of weeks/month now I tried to make my own Sudoku solver in a console application. I'm happy with the result, and tried ...
3
votes
0answers
49 views

Tic Tac Toe in Ada

I'm new in Ada and made the following Tic Tac Toe implementation. It works as intended. tictactoe.gpr ...
2
votes
0answers
83 views

How to speed up the VBA scraping process

I want to scrape 25000 addresses using Column A cell values as search strings. I'm using the following code, it is working fine but it's too slow to extract 25000 results. Is there any way to speed up ...
0
votes
0answers
96 views

Multilingual React Application using typescript

I'm learning react-typescript programming. Developed a sample application, which supports in multi language. github Souce: https://github.com/phanivaranasi/sownikbackend.git Review the code and share ...
1
vote
1answer
67 views

Select 3 items from list, print different messages based on selection order [closed]

I want to see if I can find a way to have the system work the same way when it runs, but condense it, as if I don't I will be constantly writing a lot of code that I believe I could just write in a ...
5
votes
3answers
445 views

Refactor JavaScript nested if-else

I'm really new to code optimization and JS. I would like to ask for help on optimizing my code. Thank you in advance. Here is my code: ...
1
vote
1answer
78 views

Scoring system for events

A newbie here. I have done this assignment that my university gave. Requirements Participants may enter the tournament as individuals or as part of a team** It is expected that will be 4 teams each ...
1
vote
2answers
94 views

Java dependency injection and hiding details of methods in "Database"-class

I recently posted a bunch of code of my to-do list application and after getting some very helpful and good suggestions on how to improve, I took a shot at it! Here's a link to the former post I made -...
5
votes
0answers
59 views

Find and replace text in a webpage with JavaScript

I am new to web development and would like to get feedback on a JavaScript library that automatically finds and replaces text on a webpage using the MutationObserver interface. EDIT: Seeing that this ...
1
vote
1answer
34 views

Printing one to ten in (GAS/AT&T x86/x64) assembly

I've started my journey of learning assembly on my Mac. As a start, I've decided to write a program to print the numbers one through ten to the console, then a final string signifying the end of the ...
2
votes
1answer
186 views

A to-do list application written with Java

This is the first project I have ever undertaken and now that I've gotten it to a point I feel comfortable with, I would love to get some review and tips for any improvement on it! I am especially ...
4
votes
1answer
83 views

Enigma Implementation by Python newbie

I want to learn Python, so I ported a C# Enigma implementation of mine. It got UnitTests and is running. I'm looking for a review, telling me, where I don't know best practices, where I break naming ...
4
votes
2answers
104 views

Enigma Implementation by JAVA newbie

I want to learn Java, so I ported a C# Enigma implementation of mine. It got UnitTests and is running. I'm looking for a review, telling me, where I don't know best practices, where I break naming ...