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.

377 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
16 votes
0 answers
195 views

Encoding the problem domain of products and prices into the typesystem in F#

I'm trying to design a model for purchasing amounts of products in F#, following the ideas for designing for correctness (source). The idea is to use the type system to capture the different legal ...
Morten Christiansen's user avatar
14 votes
0 answers
960 views

Django on virtual machine - watching changes in static files and autocompiling LESS without inotify

I'm setting up a Django development environment using Vagrant to run an Ubuntu virtual machine on VirtualBox. As this is a student project run mostly by very amateur coders and I want everyone to be ...
Waiski's user avatar
  • 378
7 votes
1 answer
154 views

BingWallpapers: Fetches and applies the image of the day from Bing as the wallpaper

I have written a small desktop program nabeelomer/BingWallpapers in Haskell. This is my first time writing Haskell. I was wondering how I can make the code use more functional programming features/...
1 -_-'s user avatar
  • 71
6 votes
0 answers
99 views

Chapter 8 Challenge: Add employee names to a department

The boring but exciting challenge: Using a HashMap and HashSet, create a text interface to allow a user to add employee names ...
lml's user avatar
  • 61
6 votes
0 answers
488 views

Xero API Client in Django

I'm not actually that new to writing Python. But I've no formal training and have only learnt to build applications to solve problems for my job out of necessity. Starting to bring my existing skills ...
Simon's user avatar
  • 61
6 votes
0 answers
206 views

DSL for Makefile generation for dotfiles using symlinks

As I explain in my rant, I have been searching for a replacement to hand-crafted POSIX-make-compatible makefiles to manage my dotfiles (which use symlinks). I ...
D. Ben Knoble's user avatar
6 votes
0 answers
296 views

Generating integer partitions

I've tried to implement integer partition algorithm as described in blogpost below (author implemented it in Python): Generating integer partitions I'm still trying to learn best practices in ...
Kamil Niski's user avatar
6 votes
0 answers
116 views

Read stock files, gets the candles sequence and makes a report - follow-up

My first question: Read, calculate, write The only thing I kept is the function try-block. This is still a work in progress, that's what I have done so far. Source: ...
DiDi's user avatar
  • 307
6 votes
0 answers
2k views

Gin web framework middleware

As a beginner in Go, I'm seeking feedback on a web framework middleware I wrote up. I reckon that knowledge of the web framework is not needed for the code review. The goal of this middleware is ...
ChrisR's user avatar
  • 181
5 votes
0 answers
76 views

CLI reading logger in Python

EDIT Updated code This is my first real project in Python, and also my first time using sql databases. The purpose was initially to provide a very simple interface to track my reading hours using logs,...
user avatar
5 votes
0 answers
270 views

Pi Calculator Using BBP (Bailey–Borwein–Plouffe) - Written in Cython With MPFR

I wrote a Pi Calculator using the BBP Algorithm in Cython. My specific goals are make the code more legible and more performant. This is a purely academic script in order to teach me how to implement ...
Alexis Evelyn's user avatar
5 votes
0 answers
339 views

Rabin-Karp algorithm implementation

This code uses the Rabin-Karp algorithm to compare two text files. It takes a few minutes when both files contain around 1000 words. How can it be improved? ...
Chua's user avatar
  • 51
5 votes
0 answers
85 views

Butter side up?

I've written a piece of code that determines if a piece toast with butter lands on the butter-side or not, depending on its initial velocity and the table height. The code is written in Mathematica ...
Sito's user avatar
  • 394
5 votes
0 answers
230 views

Tkinter application to manage school tasks

I'm a beginner in OOP programming and I'm wondering what is the best way to put all the windows and functions of a window application in the code. My biggest questions are: Am I using classes and ...
Wilson Cazarré's user avatar
5 votes
0 answers
436 views

HashMap exercise, Rust book Ch.8

I'm learning Rust by learning the Rust programming language book. I'm now implementing the solution for the third challenge. Using a hash map and vectors, create a text interface to allow a user to ...
afgomez's user avatar
  • 151
5 votes
0 answers
88 views

"Backend" of custom app made for editing Google Spreadsheet file

I've been learning some basics of python for few moths now. My friend, who works as salesman at company which sells hookahs, asked me if a could write a simple app which would help him maintain a ...
Michal Vöröš's user avatar
5 votes
0 answers
13k views

(Python) Use IMAP lib to download attachments and email details

This is my first approach to programming in Python, so I hope you will "destroy" my coding! Idea is to use SSL connection to my mailbox and use IMAP to download attachments from emails with ...
Tomek's user avatar
  • 203
5 votes
0 answers
105 views

Console based file fetcher from URL with embedded file downloader

I'm new to programming. I wrote this following console based app in Python. It's a simple python script to fetch size, type and extension of a file from a given URL. it also includes an embedded ...
A J's user avatar
  • 478
5 votes
0 answers
162 views

Multiple rusty Sieves of Eratosthenes

To get more familiar with the multi-threading aspects in the Rust language I decided to multi-thread my earlier implementation of The rusty Sieve of Eratosthenes. I have to say that it is probably in ...
skiwi's user avatar
  • 10.6k
5 votes
0 answers
895 views

Recursive factorial calculations in Rust

I am trying to calculate very large factorials. I am looking to speed it up as 10000! takes approximately a minute and a half. ...
Jared Mackey's user avatar
4 votes
0 answers
70 views

Google App Script to take form responses submitted by teachers on their students and produce formatted PDF student reports

I'm not a programmer but, with help, I managed to make a Google Apps Script which takes reports, submitted by teachers on their students, to the Form Responses Sheet, and then selects all responses ...
StreetSavvypub's user avatar
4 votes
0 answers
53 views

Printer install script

I am attempting to clean up my code as best I can, but I am new to powershell and would like other's opinions on if there is anything else I can clean my code up with and any tips to overall improve ...
RyanHallCoder's user avatar
4 votes
0 answers
212 views

First Lua program - Print external IP and VPN status

I started learning Lua yesterday and wanted to write a quick program as a practice. It queries an external service for the IP address and country code, and naively check for the existence of network ...
luanoob's user avatar
  • 41
4 votes
0 answers
534 views

Simple RESTful counting API in Golang

Description This is a simple (and hopefully) RESTful API in Golang that uses Redis. I have next to no prior experience in Golang and absolutely no prior experience with Redis. The API is a simple ...
FromTheStackAndBack's user avatar
4 votes
0 answers
586 views

Looking for more efficient VBA to Move data from Teradata to Excel

I have a simple macro moving data from Teradata to Excel. The process normally takes me 10 minutes to perform manually, however the macro can run for hours sometimes. This is making the macro seems ...
Pumpkin's user avatar
  • 51
4 votes
0 answers
183 views

C program to sort files based on information within

I have written a C program to sort files (on Windows) into dynamically created subfolders based on information found in their data headers. I am a newb at C, especially memory management. The code ...
Allister's user avatar
  • 171
4 votes
0 answers
172 views

kenken solver, python

I have written a series of functions to solve kenkens. The general strategy is to eliminate possibilities until only one remains for each cell. This first function eliminates all possibilities that ...
Dan's user avatar
  • 41
4 votes
0 answers
163 views

HSL Guessing Game in Svelte

The objective of the game is to guess the hue, saturation, and lightness values of a given color swatch across ten rounds. https://github.com/shreyasminocha/guess-the-hsl https://guess-the-hsl.now.sh ...
shreyasminocha's user avatar
4 votes
0 answers
335 views

C# Dictionary Wrapper for VBA

I am a technical reviewer/writer and I use VBA for Word a lot to manage issues in Word documents I receive. I have frequently come across niggles when using Collections, Scripting.Dictionaries or ...
Freeflow's user avatar
  • 645
4 votes
0 answers
72 views

Importer for binary datafile of PI88 Nanoindenter

As an exercise, I want to rewrite a C++ program to import measurement files (and later create excelsheets, reports ...). The measurement files split in 2 files, a binary file, and a xml-file. Because ...
natter1's user avatar
  • 288
4 votes
0 answers
125 views

Molecular .pdb File Reader in Rust

I am new to rust and wanted to get going with a medium-sized project to help learn. I've settled on creating some basic quantum mechanics code which starts with this bare-bones file reader. It takes a ...
QuantumChris's user avatar
  • 1,385
4 votes
0 answers
125 views

React - pomodoro clock

I'm looking for some feedback on a pomodoro clock that I recently wrote with React. I'm pretty new to React and coding in general. I followed a couple of online courses, but I'm mostly self-taught. ...
Sara's user avatar
  • 41
4 votes
0 answers
171 views

Swift iOS app for showing motivational quotes, with multiple screens

I'm one month into self-learning Swift, and I would like some advice to improve my coding skills. I have listed 2 situations that I think I need to improve. I'd like some feedback focusing on my use ...
andy's user avatar
  • 61
4 votes
0 answers
111 views

Sorted LinkedList

A linked list is a data structure that has a beginning, and an end. The only way through the structure is to go to the "next step", like stepping stones. This linked list works the same way, but in ...
KGlasier's user avatar
  • 141
4 votes
0 answers
590 views

Simple routing in Rust

After my last attempt, I started to learn Rust again. This time I wrote a simple HTTP router. I would appreciate it if you could help me to fix my mistakes. Here is the link of the repository main....
Saeed M.'s user avatar
  • 433
4 votes
0 answers
58 views

Translating Python to Rust: reading a Salesforce ID from a string

As a first project in Rust, I'm translating an existing, working piece of Python code. This code's purpose is to convert a 15-character Salesforce Id (which is guaranteed to be ASCII, exactly 15 bytes ...
David Reed's user avatar
4 votes
0 answers
113 views

Download and analyze PDFs of Congressional records

This is built with Python 2.7.15. The goal of this script is to count the number of words spoken by each Senator on the floor of Congress between given dates. It pulls from the Congressional Record, ...
Sebastian's user avatar
  • 141
4 votes
0 answers
470 views

Move-generation for chess in rust

In the last couple of days I have been programming a chess move generator in Rust from scratch. While it's intent is to be later used in a fully functional engine, where the speed of the move-...
Fabian v.d.W's user avatar
4 votes
0 answers
276 views

Morse Code Blinking through Caps Lock in PowerShell

I'm new to writing PowerShell scripts, and this would be my first relatively large undertaking in the language. Any feedback regarding style and readability would be greatly appreciated. Particularly, ...
Conor O'Brien's user avatar
4 votes
0 answers
204 views

Recreated Microsoft's Console Registry Tool's query functionality in C++ (REG.exe)

I decided to try and recreate Microsoft's REG.exe query functionality."Reg.exe" is Microsoft's Console Registry Tool. I used Microsoft's documentation of "reg query" to recreate it's functionality ...
user36278's user avatar
  • 347
4 votes
0 answers
990 views

Game of Life simulator, Python 3

Using Python 3.7.0, I've programmed a 'Game of Life' simulator. The output is displayed using tkinter. It's not meant to be limited to just Game of Life, though, as it's meant to also be used for a ...
Rubaiyat Khondaker's user avatar
4 votes
0 answers
4k views

Compression/decompression using Huffman Coding Algorithm

I am writing a program that compresses and decompresses data using the Huffman Coding algorithm. About compression: this program will export 2 files: header file (contains characters' frequency for ...
Harry Nguyen's user avatar
4 votes
0 answers
56 views

Parsing λ-terms using a very simple grammar

This is my first Rust program. It parses a string into a λ-term using a very simple grammar. Please evaluate style and use of ownerships / borrowing. ...
MaiaVictor's user avatar
  • 1,101
4 votes
0 answers
671 views

Scraping website and print them via routers

I've been working on a personal project for a while which simply extracts some information from a website and save them as JSON files. Then I've decided to move those scraping functionalities to the ...
kondanta's user avatar
4 votes
0 answers
803 views

Sound recorder, based on sdl2

This is my first Haskell program, a command-line sdl-based(so, hopefully, cross-platform), parameter-less sound recorder. Tutorials, articles or chapters that concern mistakes in my code are just as ...
Vorac's user avatar
  • 454
4 votes
0 answers
4k views

Creating Android layout with GridLayout

I'm trying to create a Layout with two columns which are next to each other (I'm accomplishing this behavior with a LinearLayout). Inside each column, I have two TextViews and two Buttons, which I ...
Larpee's user avatar
  • 143
4 votes
0 answers
182 views

Attempt at Idiomatic Hangman in Clojure

I am pretty new to Clojure & am loving it so far. After going through a few resources, I decided to make a hangman game. I'm wondering how idiomatic is my code & where can I improve it ...
AnEnigmaticBug's user avatar
4 votes
0 answers
380 views

A GUI program for a Buzzer system using arduino

At the outset, I am a beginner at python, having started out about 2 weeks back. Aim- To create a GUI program, that can adequately work as a buzzer-management system. A buzzer, like those used in ...
stochastic13's user avatar
4 votes
0 answers
91 views

Duplicate vote checking

I am new to Django and added a vote duplicate check to the tutorial application. I set a cookie in the vote view: ...
user avatar
4 votes
0 answers
148 views

Dynamically creating login screen on Android devices

This has been an experience. I'm well above "hello world" java is not a language I use often when programming and I don't program too much. I find myself a lot on Google.... basically just about for ...
Nolan Robidoux's user avatar

1
2 3 4 5
8