instruction
stringlengths
71
95.1k
The below post is a follow-up of Generic stack implementation. Below follows a header-only implementation of a generic stack (inspired by stb-libraries, following these guidelines: stb-howto.txt). After incorporating @Coderodde's advice into the code, I am left with: #ifndef STACK_H #define STACK_H /* To use, do this:...
Wrote this script after having some problems with clients on Win10 and consequent necessity to ship ultra-bloated .exe file of Python project over the Web to them. This is my first try to write Powershell scripts (mostly used Linux & Shell scripts before), thus I guess code is not optimal and/or bloated and/or missing ...
A friend of mine directed me to a variety of programming memes regarding the Greek question mark (;) and its similarity to a semicolon. This inspired me to create an incredibly cursed project (ironically in Python) that converts semicolons into Greek question marks in hopes of inducing as much programmer frustration as...
I've been working on a Swift project that involves a seedbox app for my NAS, and I would appreciate some feedback on the code structure and especially on the placement of my observer. I've implemented a DownloadListViewModel and a corresponding DownloadViewController to display the list. The DownloadListViewModel fetch...
So this morning, I decided to create a SEDE query that answers the age-old question "How close am I to being Unsung?" because I recently polished up my first SEDE query and I realized that I had enjoyed learning how to code in SQL. I have tested that the code works as intended1, however there I would like to know if th...
I've created a simple algorithm which I've implemented in Rust and published it as a crate on crates.io. https://crates.io/crates/randevu While I do think my code is pretty clean and idiomatic, I would like to know if there are any suggestions on how to improve it further, including tests and documentation. I have some...
I am trying to solve Combination Sum II on LeetCode. I was able to derive a recursive solution for the problem but it is not optimised as it only beats 10% of the solutions. Combination Sum II Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidat...
Given a balanced parentheses string s, return the score of the string. The score of a balanced parentheses string is based on the following rule: - "()" has score 1. - AB has score A + B, where A and B are balanced parentheses strings. - (A) has score 2 * A, where A is a balanced parentheses string. Based on the Pyth...
I have a transaction table let's call it Offers Table. Please don't read too much into the business but let's say a customer wants to buy a car and the customer searches variety of websites but at the moment for simplicity sake let's assume they search only 4 websites. Let's say the customer searches WebsiteA, websiteB...
I've made an awk script that does the same operation and has the same parameters as Python's pandas.DataFrame.pivot, for 2D tables. It reshapes a table from "long"-format to "wide"-format. In a "long" table, some variable names are specified by a field for each row. E.g., Temperature and Humidity below are specified ro...
I'm reaching out to share a recent project I've been working on – an HTML Treeview code with JavaScript integration for search functionality. This code enables users to search through the tree structure, with filtering capabilities that dynamically refine the tree as the search progresses. I've invested time and effort...
Are there any issues with this class template? It is supposed to provide an easy-to-use object solution to initialize an object of class type after the declaration of the variable. One nuisance is the implicit cast operator. In my opinion, it’s a necessary evil, otherwise the usefulness of the object is reduced, but if...
I was trying out leetcode's Steps to Make Array Non-decreasing As per the challenge's description: You are given a 0-indexed integer array nums. In one step, remove all elements nums[i] where nums[i - 1] > nums[i] for all 0 < i < nums.length. Return the number of steps performed until nums becomes a non-decreasing ar...
The SQL Server version I am using is SQL Server 2008. I've got an SQL query/script I've written which is to help simplify some things while our API is being rebuilt. Essentially, this script allows the user to provide a short list of images (of varying dimensions), and a ProjectID to which these images will be associat...
A sloppy code featuring algorithms to efficiently randomize the characters of a string "Hello C" and then print out in the console the re-arrangement process for every character. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> int main (void) { char characters[8] = "Hello C"; /* K...
This is pretty horrible code, but it works. I don't code in bash , usually code in Python. This is a learning exercise for me, so that's why I'm using bash + that's why I don't use libraries. I obviously don't expect anyone to correct the whole thing, but any main points on how to make this more bash-like would be grea...
This streams lines of information over the internet using BufferedReader::lines. However, what makes this special (and thus, extraordinarily complicated imo) is that ALL resource management is done internally -- the end user does not need to handle the resources at all. So, no try-with-resources, no try-catch-finally, ...
I've created a smart contract in Solidity and would like to ask for some review to highlight any potential issues. The primary goals of this contract of this contract are to: Allow users to deposit both ETH and whitelisted ERC20 tokens Allocate "points" to users based on their deposit amounts and the length of time th...
Although I've used assembly quite a bit for some simply things, I feel like I've never properly learnt how to write it idiomatically, by which I mean: which variables to use where, how best to structure loops and conditionals, how best/when to preserve registers over procedure calls, etc... I wrote a small program whic...
This solution has a total of four classes. Main.java: Class with main method. Execution starts here. BoundedBufferV2.java: The class representing a thread-safe queue of limited capacity. ProducerThreadV2.java: A class representing the producer thread. It produces a random string and tries to push it into the queue. Wa...
I want to copy or delete a Path object, whether it is a file, a symlink, or a directory. I don't want to monkey patch Pathlib so I created some surrogate functions for those operations: def copy(src: Path, target: Path): """ copy the file, symlink or path (empty or not) file/folder is replaced if already existi...
I have a spring boot project with JWT being used for Spring Security. I want to implement Access Management in my project and I'm using this approach. In my project, whenever a user is created, a list of Departments is assigned to to the user. The user should be able to view and edit data that is related to the departm...
Related: Autocorrelation of a vector series (2) The given C# source code computed autocorrelation of a vector series. The listing gives accurate results, but is horribly slow. How can I optimize it to make it fast? public class TimeSeriesAnalysisForVectors { private static double C(int t, List<Vec3> vectors) { ...
So I have a large application that I've been writing. One part of that application is responsible for displaying images taken from a camera and plotting two graphs. I've successfully stripped out the entirety of the application that is not relevant to this portion of the application. It works, what I'm doing with the g...
This is my first self-guided programming project, and all the math used in the program is self-taught. I wanted to get a better understanding of how computer graphics worked, but I just feel more confused. Please tell me what I could do better in my next attempt programming something like this and how to learn more. No...
I have made a very basic login/registration form in React.js. The inputted data is send to a Java Spring Boot Rest-API to create an user or to authenticate using JWT. But in this question I want to focus on the React.js code. import React, { Component } from 'react' import axios from "axios" import Cookies from "js-co...
Binary Visualization based on Christopher Domas talk: youtube link and this Russian programmer where I discovered this talk: youtube link. Algorithm: Scan the pairs of bytes of a file with a sliding window. (AA BB CC DD ... -> (AA, BB) (BB, CC) (CC, DD) ...); Interpret the pairs of bytes as coordinates on a 256x256 2D...
I found that Array.Find(T[], Predicate) Method is only support one dimensional array. I am trying to generalize it to multi-dimensional array in this post. The experimental implementation The experimental implementation is as below. Find Method Implementation public class Infrastructures { public static T? Find<T>...
Related: Autocorrelation of a vector series The given C# source code computes the autocorrelation of a vector series using a Fast Fourier Transform. Can you review this code for correctness? using System; using System.Collections.Generic; using System.Numerics; public class TimeSeriesAnalysisForVectors { private s...
Inside of this navigation function, I have a click event that scrolls to sections which are offset by the fixed header height. I also have a scroll event which changes the links' color when the scroll section top is reached. Inside of the click even I am referencing sections using id and element. Inside of the scroll e...
My program will clear the screen to a 24bit RGB color; in other words, it will fill a buffer with a repeating pattern of 3 bytes. So I wrote patternMemcpy to perform this operation efficiently*. It works by doubling the size of each memcpy. // Fills a buffer with a repeating pattern of N bytes int patternMemcpy(uint8_t...
I'm developing a webapp where some parts that repeat, so I made source code to generate source code. I had a lot of fun using Spring-Roo and Grails in the past but was sad that the difference between script and template becomes mind-blowing. So, for fun I created my own compressed language and scaffold to Typescript, L...
I am trying to use the practices that I have learnt from the rust book. Any advice is welcome. Please feel free to be as nitpicky as possible. use std::fmt; use std::io::{self, Write}; struct Item { name: String, done: bool, } impl fmt::Display for Item { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Resul...
I have an implementation of the Miller-Rabin prime test, coded in Python 3. I want to use that as a comparison to a prime test which I coded myself. Unfortunately I have no idea how "fast" the Miller-Rabin test should be on my machine. With my code I can test the number n = 2¹⁰⁰⁰⁰+1 in less than 4 seconds. But I don't ...
State in a Fluxor app can be updated many times per second, with each change triggering a render in Blazor. I wanted to write a class that would throttle these notifications so they don't occur more than X times per second. The rules are. All calls far apart enough in time should be executed immediately - this will av...
The frontend has a table with hundreds of rows. Each row consists of different inputs (text, file, checkbox etc.). The user can change any row and any input he wants before clicking the "Save Changes" button. It then needs to update the data in the database. I want to only send the modified data, or at least only the m...
I started coding a week ago. I played a bit with the turtle module and I am looking for ways to improve my code. Please feel free to share improvements. Here is the shape it creates: #I created a mathematical envelope by connecting points laying on straight lines forming with the x-axis angles of 60, 90, 120, 180... d...
I listen to a lot of music (~4k h/y) and managing thousands of songs is a bit of a challenging. To improve my listening experience I want to better organize my collection. One thing I want to do is sort my songs, as then I can do cool things with dynamic playlists. For example, I want to listen to songs I don't like as...
(This post has a continuation post.) This one is my attempt at LSD radix sort: Code com.github.coderodde.util.LSDRadixsort.java: package com.github.coderodde.util; import java.util.Arrays; /** * This class provides the method for sorting {@code int} arrays using * least-significant digit (LSD) radix sort. */ publ...
I have a project where the user supplies a date, time, and timezone, and my code will calculate a bunch of coordinates on the Earth. There are four sets of coordinates setA, setB, setC, setD. Coordinates setA and setB make up a great circle around the Earth. Likewise for coordinates setC and setD. The user is intereste...
Inspired from Literate programming in Haskell. Below follows a Literate script filter. A literate script is a program in which comments are given the leading role, whilst program text must be explicitly flagged as such by placing it between \begin{code} and \end{code} in the first column of each line. litc is a filter ...
I have a Java Spring Boot Rest-API which is authenticated using JWT-tokens. Currently the API only contains Users and CashflowCategories. An user can have many CashflowCategories. When the user makes a request to GET /cashflowcategories I want the API to return all the CashflowCategories of that user. Currently I have ...
I made a Poker-Hands tracker. The 52 cards of the game are in this program represented by their value and their type. For example Ace-heart is stored as "Ah" and 7-spades as "7h". In order to check for a simple Straight I have generated this code, where the array cards is a sorted array with the cards on the table and ...
I am trying to convert a SQL Server stored procedure to Pyspark code. This is my SQL Server query: WITH A (ID, CHILDMSF, PARENTMSF, TOPPARENT, TYPE, QUANTITY) AS ( -- Base case: Select distinct rows from #BO satisfying the condition SELECT DISTINCT ID, CAST(CHILDMSF AS ...
Use case The user is interested in supplying a timestamp of a particular moment in time. This python application will perform two astronomy calculations for a set list of planetary bodies: Calculate the longitude of the body's subpoint Calculate the boundary on the earth that separates the visible portion from the not...
Description is at the bottom Here is a link to all the code: Link <body> <h3>Timetable</h3> <form id="dataForm"> <table id="table1"> <tr> <td>Week A</td> <td>Monday</td> <td>Tuesday</td> <td>Wednesday</td> <td>Thursday</td> <td>Friday</td...
I'm new to C, and made this program that parses a string expression into a linked list post-fix expression, and then evaluates it, without parsing the string beforehand. Wondering if there is anything to improve/fix (I feel like my implementation is kinda big...) main.c #include "util.h" #include <ctype.h> #include <ma...
I continue to share portions of my Dynamic Gateway project This time, I want to publish the types relating to its "parameter initializing" functionality. The idea is simple: if my gateway notices that a discovered Swagger endpoint of another service expects, say, param-one, and it has a ParamInitializer that is capable...
I've pasted here a basic implementation I've done of a Minesweeper game. This is not the full functionality, only the populating/revealing of squares. The idea is that the user inputs rows,cols,list-of-bombs as a string, and the game generates a board of the input dimensions, with bombs at the input indices. I'm specif...
My project explores some ideas i've had regarding alternate data structures to the unorderd_map and map, and aiming the exploration to key sets with a non uniform distribution and key sets with common prefix's. I've posted the code to GitHub in full. see -> FlashRadixTree. As you can see below for an ordered data struc...
I implemented the Miller-Rabin-Primetest in python3. But I have the feeling it is very slow. I know that there are faster version in gmpy2 package, but I want to compare it with another code I have in python. So I don't want to use an existing implementation. I used the Pseudocode from Wikipedia. What am I doing wrong?...
I want to be able to distribute a total reward among network, where the distribution diminishes according to the depth of the network but the total sum of distributed rewards equals the initial total reward. I have attempted to model this with: \$S = a * (1 - r^n) / (1 - r)\$ The below Python snippet presents this seri...
We use masstransit and sagas. But I also wanted to correlate some messages without the need for a saga since the syntax for those are pretty verbose if all your need is to sync on a correlation id. First I wrote a little handler that does the close to the metal stuff internal sealed class SyncedScope : ISyncedScope { ...
This post elaborates on Efficient least-significant digit (LSD) radix sort for int keys in Java. This time, I made mild corrections to my code and provided the radix sort for long keys too. Code com.github.coderodde.util.LsdRadixsort.java: package com.github.coderodde.util; import java.util.Arrays; /** * This class ...
I'm currently in the process of replacing an archaic multithreading solution using some of the newer C++ standard library features now that our software has been updated to use C++20. Previously, most of our multithreading was implemented using thread managers that controlled the flow of the threads and allocated tasks...
Please take a look at my code for (simply) formatting/wrapping a text. Is there something to improve? Here are the properties the method should have: (updated) Every space character (i.e. " " or "\n", etc.) that occurs at least once should be replaced by exactly one space character. A line of text should not be longer...
I've written a simple text tokenizer in JavaScript which works in my specific case, but I do not think it is maintainable (for example, if the requirement ever changed to allow newlines when surrounded by double quotes). How can I simplify the algorithm or abstract it better? It should: strip out single-line comments ...
This is a follow-up question for An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++ and Three dimensional gaussian image generator in C++. I am trying to make a Gaussian fisheye image generator in this post. The example output: Image Input Output The experimental imple...
I want to be able to distribute a total reward among referral network, where the distribution diminishes according to the depth of the network but the total sum of distributed rewards equals the initial total reward. I have attempted to use Graphs as a way to solve this. With the assumptions that: Give a fixed percent...
While practicing for a school coding challenge, I came across this problem. My code got the right answers but exceeded the time limited. Any tips for how to reduce the time complexity? https://pctc.cuttle.org/index.php?action=user_question&grq_id=946 Problem Details My code: x = int(input()) c,a,mx,ct,og,mx = 0,0,0,[...
This is a very tiny implementation of Rust that uses redis serialization protocol (RESP). I implemented it as one of code crafters challenges. I have less than a few month experience in Rust, so it may not seems to be a very advanced Rust program. But I appreciate any feedback to improve my implementation and also to m...
I'm trying to implement a MD5 hash function in C. I've read the RFC, and done the following, and am trying to figure out what's wrong in here. I know that I should probably be using a library like OpenSSL for it, but I just wanted to learn how to do it myself by reading the RFC. It would be really helpful if I could ge...
How can I improve this code's readability and function, for finding crude death rate and age specific death rate? Given are the death rates from chronic pulmonary obstructive disease in 2019, the populations, and the World Health Organisation standard population rates. import numpy as np us_death_rates = np.array( ...
I wrote this code to get all possible arrangements for an array containing 3 elements: let a = ["A", "B", "C"]; let b = []; function change(A) { let x = []; for (let i = 0; i < A.length; i++) { x.push(A[i]); } for (let i = 0; i < x.length; i++) { A[i] = x[i + 1]; if (i == (x.len...
Language: The Brainfuck programming language consists of eight commands: > Increment the pointer. < Decrement the pointer. + Increment the byte at the pointer. - Decrement the byte at the pointer. . Output the byte at the pointer. , Input a byte and store it in the byte at the pointer. [ Jump forward past the matching ...
In the process of creating my first toy language, I have created the base grammar for it (which can surely be improved upon, feel free to comment). I am emitting C at the moment. \begin{align} program &\rightarrow (declaration | stmt)^* \\ declaration &\rightarrow \textbf{let}\ assignment\ |\ \textbf{let}\ iden...
This question is from the PCTC 2022 R2 Past Paper and is a follow-up on my previous question. Previous question I have implemented several solutions suggested, such as creating an array with pages already visited (@J_H) and ignoring dead-ends (self-referring pages) (@aghast), as well as stopping the loop if the algorit...
Note: It's Part I of the User Management System project, focused on the backend. See Part II here. I made this app about a year ago. I was a fledgling developer who didn't have a lot of clues to what he was doing but who nevertheless tried to do his best. For developers with decades of experience behind them, this sent...
Note: It's Part II of the User Management System project, focused on the frontend. See Part I here. Here's the frontend part. I want to note that I realized even back then that copy-pasting a huge block of HTML into JS was a bad idea, but couldn't find a better solution without page reloads. I haven't practiced fronten...
This script is a further development of Finding crude death rate and age-standardized death rates from data. In reflection to the kind reviews I created a module for the data; saved the data in dictionaries, with the age groups signified as keys; improved variable names; added function definitions and typing; a descrip...
The container should be thread safe and provide lazy load of data, and cache the data for set period of time. public class TimeBasedExpirationCache<T> { private static class CacheElement<T> { private final Future<T> data; private final Instant created; private CacheElement(Future<T> data) {...
Whilst writing an interpreter for Brainfuck, I had collapsed sequences of .......... to a single instruction OP_PUT (10) (Note that the . instruction in Brainfuck corresponds to a putchar() call in C. Say the byte at the current cell in Brainfuck was 'h', OP_PUT (10) would print h to stdout 10 times). In doing so, I ha...
Please offer suggestions to my below Rust approach for solving AoC 2023 Day 3, Part 1. The code is functionally correct, so I'm interested in understanding how I could have solved it in a more idiomatic Rust way. In quite a few other solutions people heavily use iterators. Is this preferred? For those not familiar with...
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 which pertain to each student, and generates that student's report, inserting the school's logo into the header and the Pr...
Specific areas in which I'd love to get feedback: Is it good to have the Command struct own the Strings (description field)? Or since these strings aren't really meant to change, should I rather have them as &'static strs? I initially used String but then switched to &'static str, and then I saw this SO post and swit...
Looking to build a terminal based game. I am assuming X-Term like terminal. This means: I can use the X-Term control codes to clear and move around the screen. I can use tcsetattr functions to make standard input none buffered (I think). I know this game loop runs as basically a busy wait. I will sove that at the sel...
Does my code for game of life look good enough? What changes can I make to optimize the code? I am a beginner to java and I've coded the Game of Life! For those not familiar, the game entails creating a grid of specified dimensions with each box in the grid being either dead or alive. The grid starts with a random dead...
I'd appreciate any help people can offer to make this process more efficient and less goofy. I've created a process to loop through a folder of approximately 100 files, add a new sheet with a base template to each one and add in data that is pulled from several saved reports via XLookup. It works! But, it's now taking ...
A small utility to print data in an ascii table TextTable public class TextTable { private TextTable(){ } public static List<String> getLines(List<TableRow> items){ return new TextTableFormatter(items).createTableRows(); } public static void print(List<TableRow> items, PrintStream stream){ ...
(This post has part II/II.) Intro This time, I have this GitHub repository. The idea is that if the graph node expansion is slow (for example, in the case where you ask a web server to return some data), it make sense to have multiple threads to do the graph crawling. Benchmark output Random seed = 1710824771814. Sourc...
Intro This post follows Thread pooled bidirectional breadth-first search in Java for graphs with slow node expansion - part I/II: the algorithm. Basically, these are build patterns leveraging fluent APIs for constructing the pathfinder in question and invoke the search method. Code com.github.coderodde.graph.pathfindin...
Background Saw this problem on TheJobOverflow which seems to be a LeetCode question. It bothered me that the "challenge" of this problem was to recognize the need for a specific data-type (in this case a MaxHeap/PriorityQueue). I did another, more complicated solution, that uses folding Problem You are given a list ...
I have recently worked on a quiz application using the MERN stack. The application incorporates various features such as user authentication, quiz creation, scoring functionalities, and data management. While I have put significant effort into implementing these features, there may be areas for improvement. I am seekin...
(The entire project is in GitHub.) Introduction This project provides facilities for generating in-coming or out-going links in a given Wikipedia page. Code com.github.coderodde.wikipedia.graph.expansion.AbstractWikipediaGraphNodeExpander.java: package com.github.coderodde.wikipedia.graph.expansion; import com.github....
I am using the java stream API to handle incoming requests my employee service. A few questions I had are: Does using the streams API in the way I'm using it below affect the performance of the application? I have not seen any tutorials using the streams API in the way I am using it. So is it bad practice to use stre...
I have wrote my own simple version of NEAT and want to improve the code for mainly performance (training and runtime of a generation). This simple version of NEAT aims to perform somewhere near as good as NEAT-python. When I tested it against NEAT-python this was the result with similar configuration (population 200 ot...
Follow up to: Terminal based game Finished up the framework. Still sticking with the X-Term based version. As I want a very simple framework to use for teaching (not this part initially). But my next question is the snake game implemented using this class. #ifndef THORSANVIL_GAMEENGINE_GAME_H #define THORSANVIL_GAMEENG...
Based on this Framework Terminal based game: Part 2 A game that uses std::cout to print the board and std::cin to get keyboard input dynamically (using the framework linked). Allowing absolute beginners to quickly correct a simple text based animated game. Here is my version of the snake game: #include "ThorsAnvil/Game...
We have a list of \$j \in \{1,\ldots,N\}\$ jobs with a processing time \$p_j\$ and a demand \$d_j\$ between 0 and 1. These are real numbers. Jobs require the fixed demand over the entirety of their processing time. We should not sort this list of jobs. Our scheduling algorithm should do the following: Take the \$i^{th}...
I have already written two solutions to the N Queens Puzzle problem, so I might as well write another one. This one is in Dart: void main() { var NDEBUG = true; List<List<int>> myStack = [[]]; int n = 8, counterOfSolutions = 0; while (myStack.length > 0) { var currentChessboard = myStack[myStack.length - 1]...
Given a graph G(V, E) with vertices V and edges E, where each vertex is associated with a single color from a set of colors C={1, 2, ..., k}, we define the following problem: Problem Statement: Input: A graph G(V, E) and a set of colors C, with a constraint that each vertex v in V is assigned exactly one color from C....
I came from C# background with strong OOP approach. I've decided to learn Python and Breakout game is a way to cover the basics of Python. I'll be really glad for any feedback and general opinion about my coding style and me using Python. Game also on github: https://github.com/bartex-bartex/BreakoutClone Running game ...
I am trying to write a program that creates a Trie from a list of all English words, and then when run provides completions for a given prefix. Basically for each node I allocate a list of 255 null chars, and if a node has a child at a certain character, I set the node at index of the character as an int to have a valu...
Following this post, I have a PowerShell script that aims to interact with the Python Package Index (PyPI) to find the latest release of a specified package that is compatible with the current Python environment. The script has several key functionalities: Determines the currently installed Python version and adjusts ...
Intro I have this GitHub repository. Basically, it is a command-line utility for searching automatically for shortest link paths in the Wikipedia article graph. The game in question is sometimes called the Wiki Game. The idea is that a player chooses two random Wikipedia articles (call them source and target) and the p...
I've written this code for use on a form in the Epicor ERP environment. The code is doing what I need, but since I'm still learning I would imagine that there are better ways of coding. I'm here looking for feedback to help my growth. Example: "I see you're naming your button epiButtonC1, but a better practice would be...
I'm writing tutorial code to help high school students understand the MuZero algorithm. There are two main requirements for this code. The code needs to be simple and easy for any student to understand. The code needs to be flexible enough so that students can implement it for their own game projects without changing ...
For a script, I came up with a shell function that might be generally useful. Before I add it to the code base, I’d like to hear someone’s opinion on this. I don’t write shell scripts often and had to look up a lot of things. The idea of this function is to copy stuff from a source folder to a destination folder with t...
Working from previous posts In this post: Terminal based game: Part 2 I introduced the concept of a Game object. To build a game like Terminal Base Snake you could derive from Game and override 4 functions to get a simple terminal based game running. But my thoughts are that for beginners they need to already be famili...
I'm new to rust, and this is my very first rust program. I'd like to write a simple CLI app to help me running some Git command on multiple repositories. Since my goal is learning rust, I force myself not to use any dependency so that I have to implement the tools I need. I started writing a very small API for parsing ...