Skip to main content

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.

5 votes
2 answers
105 views

Compare two files in 16-bit DOS assembly

The task is to do a byte-by-byte comparison and print whether the files are equal or not. Code: ...
Madagascar's user avatar
  • 10.1k
5 votes
2 answers
85 views

Command-line Tool That Reads a Text File and Calculates Basic Statistics

TLDR: First time dev in Go moving from Java and I need feedback on my simple CLI Tool. I wanted to get competent in Go as a very junior developer, so this is my first basic project in go. I set a goal ...
Magd Aref's user avatar
6 votes
3 answers
391 views

Function which returns arithmetic expression based on an operator

For the following code, I have trouble improving it. I need to write a function getExpression(level, operator) which has one integer parameter representing a level ...
nathan007's user avatar
4 votes
1 answer
62 views

IBM File Processing and PDF Conversion App Using PyQt6 and FPDF

I am trying to convert a 111MB TEXT file to PDF quickly. I'm currently using the FPDF library, and large files take about 40 minutes to process. The text file is an IBM carriage control (ANSI) file ...
cessy's user avatar
  • 41
1 vote
0 answers
30 views

Evaluating an expression with shunting yard algorithm

I'm learning Scala and wrote a simple infix expression evaluator using the shunting yard algorithm. As opposed to the wikipedia example, this implementation evaluates the expression in place instead ...
TorbenPutkonen's user avatar
9 votes
2 answers
239 views

Blackjack game for assignment

I’m a first-year IT student, and I’ve completed a working Blackjack game in Python as part of an assignment. I’d love to get some feedback on my code structure, readability, and comments to improve my ...
Goose's user avatar
  • 91
6 votes
7 answers
1k views

Filter non-even elements from an array

I have a method that returns an int[]. The array is made by filtering out only the even values of the array passed into the method. It works, but it's really ugly ...
Otaku's user avatar
  • 161
3 votes
0 answers
39 views

Project of chrono, countdown, interval timer and custom timer

I created a project with visual studio, in V language. Since I am a beginner, I would like to improve the code by making it lighter and less repetitive, and more performing, and suitable to be run ...
Ros's user avatar
  • 39
4 votes
1 answer
233 views

I2C serial communication protocol for university project

For now, I have only implemented a simple I2C protocol where only the master transmits the data. Also there is ack_bit for the I2C Address only. For state 5, i.e.,...
Ayush Mritunjay's user avatar
5 votes
1 answer
118 views

Default methods for embedded structs

I am learning Go by working through programming puzzles. There is shared boilerplate between puzzles that I want to factor out into into some kind of helper structure: Read the input (always the same,...
user289146's user avatar
9 votes
2 answers
1k views

"Weird Algorithm" (Collatz) from CSES Problem Set

I had to solve the following problem: Consider an algorithm that takes as input a positive integer n. If n is even, the algorithm divides it by two, and if n is odd, the algorithm multiplies it by ...
user23259461's user avatar
10 votes
3 answers
1k views

Basic Terminal Calculator in C++

I'm a freshman Computer Science major looking to build projects for my portfolio. I'm new to C++ and programming in general. Is there any way I can improve this basic calculator I've made? Also, what ...
Rajah Williams's user avatar
5 votes
1 answer
77 views

Advent of Code 2015 "Not Quite Lisp", in Common Lisp (Part 2)

I asked for feedback on part 1 of this Advent of Code challenge: Advent of Code 2015 "Not Quite Lisp", in Common Lisp I have read everyone's feedback and done a lot of further reading. I ...
Mountain Man's user avatar
5 votes
3 answers
174 views

C# string forming ballots

I'm a junior developer currently working on a C# project. There is a lot more for me to learn so here I am looking for some advice on my code snippet. I have a function that executes a number of ...
Johann Jamaluddin's user avatar
5 votes
2 answers
117 views

Advent of Code 2015 "Not Quite Lisp", in Common Lisp

I've been toying around with random programming languages for about 15 years. I'm just more of a sysadmin type than a programmer, but I've always wanted to do programming, so here I am. I know a bit ...
Mountain Man's user avatar

15 30 50 per page
1
2 3 4 5
505