2022 Developer Survey is open! Take survey.

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
1 vote
0 answers
17 views

Scala & Kafka: Getting the producer and consumer offset difference and log it

I'm looking to compare kafka's producer and consumer ...
user avatar
  • 111
0 votes
0 answers
37 views

Ballerina service resource methods

I'm playing around to find out idiomatic way to write service resource methods for HTTP API so that the actual program logic is separated from the resource methods. Currently the (simple) program ...
user avatar
1 vote
3 answers
66 views

Calculating square roots using binary search

I'm trying to find the square root of a number (num) using binary search in Rust. I'm new to Rust, but I've done quite a bit of programming in other languages, ...
user avatar
  • 111
0 votes
0 answers
31 views

Calculate the number of burgers that can be made from the given ingredient inventory [closed]

Posted this on Stack Overflow and got recommended over here. I have, so far, found no errors in the code but it looks a bit complicated and I would like some feedback. This is my second project in my ...
user avatar
0 votes
1 answer
21 views

Show/hide depending on ID and Class

I have written some code that shows a div class, based on what ID is clicked. I'm a beginner, so not sure how to make this code compact, it seems way too long at the moment. Can anyone suggest a ...
user avatar
2 votes
2 answers
36 views

Simple non balancing indexed binary search tree

The following code represents a simple indexed binary search tree of integers. The insert method inserts an int. The indexed lookup looks up the ith smallest element (0 indexed). I'm trying to write C+...
user avatar
  • 21
4 votes
1 answer
96 views

Blackjack game in C++

I developed a blackjack game. I am relatively new to c++ and OOP, so I am asking for feedback on what could be improved. This game features betting, taking a card, standing, and splitting a hand. ...
user avatar
1 vote
1 answer
19 views

Sidenav menu that appears when click on button

I have a side menu that appears when click on button, which works fine. But now I want to clean up my code, shorten it if possible. I was wondering if there is an easier and cleaner way to achieve the ...
user avatar
  • 11
-2 votes
0 answers
22 views

Photo repository class in Kotlin [closed]

I am very new to kotlin and is still learning. I am looking at this class and have a feeling that this class is too long and should be better designed. But not sure how should i design it or what are ...
user avatar
2 votes
1 answer
41 views

Python CLI math game

I'm a self-taught programmer starting out with Python and my latest project is this game: It runs in the console, displays an equation, takes the user's answer, and increases your score if it's ...
user avatar
  • 23
1 vote
1 answer
31 views

Clojure Prime Numbers from 1 to 1000

I am a beginner to Clojure and I made a little script that prints out every prime number from 1 to 1000. Let me know if there are any improvements that I can make: ...
user avatar
1 vote
1 answer
56 views

Passwords with C++ Console

I am really, really new to coding in general and especially c++. To get more familiar with c++ I am trying to do a series of projects with c++ console apps. One of my projects is with a database that ...
user avatar
1 vote
0 answers
35 views

Timer with input, sound and flashing ( Just timer :) )

I know that this program is not very outstanding, but I'm learning "Python" and decided to publish this code in order to get some advice and parting words and overall evaluation of the ...
user avatar
  • 41
4 votes
2 answers
740 views

Battle terminal-based game

I'm new to learning OOP in python and played around with it, making this quick battle terminal based game-ish, but I'm wondering how I can optimize this to maybe less lines of code and just overall ...
user avatar
0 votes
1 answer
24 views

Modify a string by identifying a substring, and replace it and the characters following it with a newly computed substring

I'm working on a string manipulation code in C++ for my internship project, where I have to find a substring within a string and essentially replace it and some characters following it with a newly ...
user avatar
3 votes
1 answer
147 views

Automate the Boring Stuff CH 10 - filling in the gaps

This exercise comes from Automate the Boring Stuff CH 10 - second edition. The exercise is called "filling in the gaps," and the instructions are as follows: Write a program that finds all ...
user avatar
  • 117
9 votes
3 answers
1k views

A Simple Tic-Tac-Toe Game

I wrote a simple tic-tac-toe game in Python. I'm pretty much a novice, but I do have some experience with coding other things in Python. I just wanted to see if I was capable of writing a simple tic-...
user avatar
  • 143
1 vote
1 answer
58 views

Register/Login for Rock/Paper/Scissors

Recently I have been learning Python after years of putting it off, and I am having a really fun time with it. However after I spent a few hours making something that I thought was pretty cool, I ...
user avatar
  • 11
3 votes
2 answers
60 views

Pascal's triangle solution in Python code

I have solved the pascal's triangle problem. I am not good at writing efficient programs, hence any suggestions/ comments shall be welcomed. ...
user avatar
2 votes
2 answers
60 views

Partitioning a list so that even numbers appear before odd numbers

I started learning Rust today and figured, I could ask for some code reviews to learn to make my code idiomatic and learn about its code generation. I spend my days writing highly optimized Java and C+...
user avatar
  • 33
2 votes
0 answers
22 views

Sudoku trial buttons

This button's code in gdscript 4 uses selector modes- only one possible at a time. It is attached to the 9 children small buttons of the main button. There is singleton code that is just an array with ...
user avatar
0 votes
0 answers
42 views

Component to apply FABRIK in Unreal Engine

I read the FABRIK and implemented it to study Unreal syntax. Update the position in the FABRIK Segment component. It is used to update the relative position of the static mesh using the updated ...
user avatar
2 votes
1 answer
72 views

Automate the Boring Stuff Chapter 5 Project - Chess Dictionary Validator

First post, very new to programming. This is my solution for the chapter 5 project of Automate the Boring Stuff and I wondered if I am making any mistakes and is there a way to make it more efficient ...
user avatar
  • 97
1 vote
1 answer
81 views

Three efficient JavaScript functions that converge to pi extremely fast

I am learning JavaScript and decided to translate my Python scripts into JavaScript. Approximations of π are extremely popular programming challenges and I am sure they must be a staple of the ...
user avatar
1 vote
1 answer
87 views

JavaScript function that generates Fibonacci like sequences of given order

Generalizations of Fibonacci numbers Fibonacci numbers of higher order A Fibonacci sequence of order \$n\$ is an integer sequence in which each sequence element is the sum of the previous \$n\$ ...
user avatar
6 votes
1 answer
62 views

Tic Tac Toe Module in Rust: Implementing "new"

Intro In order to get familiar with and improve my Rust skills I coded Tic-Tac-Toe. I want to write good Rust code, any feedback regarding why my code isn't in a Rust style or improvements that could ...
user avatar
3 votes
0 answers
79 views

Simple python quiz

I'm learning python and i'm trying to practice what I learned recently. I wanted to make a quiz game using pandas. What do you guys think? Is there anything I could do better? ...
user avatar
  • 31
1 vote
1 answer
47 views

A simple JavaScript function that does prime factorization

This is a simple JavaScript function that does prime factorization. I wrote it on an Android phone with online editor (I don't have access to computers in night time): Code: ...
user avatar
2 votes
2 answers
118 views

FizzBuzz in JavaScript (node.js), my first JavaScript program

I had just decided to learn JavaScript, so I wrote this program. I am sure you know what FizzBuzz is so I wouldn't describe it here. Console output: ...
user avatar
6 votes
2 answers
415 views

Word Analyzer: Counts total characters, names starting and ending letter, determines if my initials are present in the word

I wasn't sure where to post this, but I'm just looking for a brutally honest critique of a program that I built. I'm new to coding and am taking my first course on it. I'm just trying to determine if ...
user avatar
1 vote
2 answers
151 views

Tic-Tac-Toe vanilla JS Pseudo OOP

I'm working on building a simple game in vanilla JS (tic-tac-toe). Some weeks ago I created a functional MVP and asked some questions about it (Vanilla JS Tic-Tac-Toe). The code worked, but it was a ...
user avatar
  • 119
1 vote
0 answers
32 views

2-player Tic Tac Toe in Python using tkinter

I am somewhat a beginner programmer, and this is my first project using tkinter. Any advice, tips or feedback to improve would be appreciated. ...
user avatar
1 vote
0 answers
17 views

Wrap an ssh2 connection neatly and pass commands

I want to structure this better but don't think I'm handling results well. I'm used to python and I think my flow is way off. Is this bad design? Should my results be Result<String, Error>? I'm ...
user avatar
2 votes
2 answers
86 views

Console guessing game in Python

What would make it better? This is my first Python project. Do help in making it better, for me to learn something new. ...
user avatar
6 votes
1 answer
123 views

Binary search algorithm (Python 3.9)

New to using this platform and would like to familiarise myself with it so would just like to ask if I am exhibiting good practice with my programming. Started the online CS50 course today and thought ...
user avatar
2 votes
1 answer
100 views

Implementation of an algorithm to calculate a check digit for a five-digit number

I'm a newbie in programming, just started about 6 months ago and just finding my way around in C# (clean) code. This is the toy task we have received from our teacher. This is what it should do: New ...
user avatar
  • 23
2 votes
1 answer
76 views

Text RPG in Python

I'm a beginner in python and my code looks a little cluttered and a lot of lines are being duplicated, so I was wondering if I could get some suggestions on how to declutter and improve? ...
user avatar
  • 29
1 vote
0 answers
29 views

Console Tic-Tac-Toe game in Rust

While having experience with other languages I only recently started learning Rust and I was hoping to get some feedback on my little beginner project, especially regarding style (stuff like too many ...
user avatar
1 vote
1 answer
54 views

Tiny Validity class

Here is a part of my new code replacing the old and deprecated old-school one. Let's get to business right away: I document everything with Documentation comments, which are proving very useful so ...
user avatar
2 votes
1 answer
63 views

A Rust beginner's Hangman game

I have been learning Rust for a few days (This is my third) now, and I've really fallen in love with the language, this is my first real project, Hangman. I was wondering what I could do better / what ...
user avatar
  • 43
1 vote
0 answers
39 views

F# thumbnail Scraper

Thumbnail Scraper I'm a C# programmer learning F#. For my first program I created a console youtube thumbnail scraper. It parses command line arguments with argu and then downloads the thumbnails, ...
user avatar
4 votes
1 answer
75 views

This function creates dynamic multi-choice questions

I'm into Python from only about a month, coming from nothing. I didn't make any complex program yet, but I'm almost there, as one is almost ready to be used, like if I'd sit there for another hour or ...
user avatar
0 votes
0 answers
32 views

Python one-line binary search

...
user avatar
6 votes
2 answers
89 views

First JavaScript project: number guessing game

I wanted to share my first experience with JavaScript. I've been taking JS courses for the past 2 months and finally got the first chance to code a small guess-my-number project. (Everything is ...
user avatar
  • 61
5 votes
2 answers
186 views

Truth or dare program in java

I wrote this code in Java as a "Truth or Dare" game where if you type "truth" or "dare", it will pick a random number from the switch and then output the truth question ...
user avatar
2 votes
0 answers
34 views

Variable speed video playback using OpenCV according to frequency of mouse clicking

Here's my code - I've a lot to learn so any advice, tips etc would be welcome! A few notes: I'm using OpenCV and numpy for other features in this code, not just for this snippet. The main readon for ...
user avatar
0 votes
1 answer
69 views

Vanilla JS Tic-Tac-Toe

During 2021 I was learning to code but I left it because I didn't have enough time and energy. Today I started my come back to coding so I created a simple tic-tac-toe game. I didn't use objects, ...
user avatar
  • 119
2 votes
1 answer
56 views

Linked List Implementation in C. Looking for feedback

I am new to C programming and DSA. This is my implementation of a Linked List. I am looking for feedback and tips to improve the code design. ...
user avatar
  • 21
0 votes
0 answers
52 views

Looping Through Arrays to Test a Postman Collection

I am relatively new to Javascript and I'm looking to improve the overall flow of the below code. For some reason, I feel as though it can be improved but I'm not really sure how, or where. To me it ...
user avatar
  • 101
5 votes
3 answers
64 views

Creation & pixel manipulation of 24 bit TARGA

I wrote this code to get familiar with structs in C. It allows the creation and exporting of a 24 bit TGA image and changing the color of individual pixels. My concern is the ...
user avatar

1
2 3 4 5
145