instruction
stringlengths
71
95.1k
I have basically ended up with 2 versions of a PDF-Selector. Both versions do the same thing. I'm not sure which solution is better. Maybe someone could give me a code review. I use: PDFSharp-Nuget-Package, Visual Studio community 2017, Resharper My program takes 4 inputs: source path destination path starting page nu...
What my function does: Safely sets object properties with dot notation strings in JavaScript. That is to say, it allows setting a nested property on an object using a string such as "a.b.c". For example: set(obj, "a.b.c", value) would be equivalent to a.b.c = value Some notes on intended behavior When setting a proper...
This is a simple flashcard app. With flags to control the sides of the flashcards and the number of flashcards in the session. All the flashcards without any input at the prompt, are deleted from the map. And ones with an input, remain. The idea is that, the user marks the flashcard that they want to revise in case the...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; use Auth; class ProfileController extends Controller { public function __construct() { $this->middleware('auth'); } public function index($id) { $user = User::find($id); $photos = $user-...
I was reading about anemic data models and rich domain models in DDD. I don't want to follow DDD completely but take rather pragmatic approach and just take some concepts out of it because clean ddd seems like an overkill. What I'm building is Web API (using ASP.NET Core and Entity Framework Core). I don't want to mai...
I am new to Python/Pandas. Consider the following code: import pandas as pd import numpy as np df = pd.DataFrame({'Time': [0.0, 1.0, 2.0, 0.0, 1.0, 2.0, 0.0, 2.0, 0.0, 1.0, 2.0], 'Id': [1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4], 'A': [10, 15, np.NaN, 11, 16, 25, 10, 15, 9, 14, 19]}) print(...
I have been learning Python 3 for about a year now. I have been looking for a project to do instead of just going through tutorials and completing some Code Wars challenges. One website suggested that a text game would be something good to work on. So, I tried to come up with a story line and did a basic map design. Bu...
In jQuery, I have been reluctant to create a better form validation, and I feel the time has come for me to do so. With that said, I have been using this particular type of form validation, and I would like to simplify it. $('#saveSubmit').on('click', function() { var criteria = { company: $('#company').val(),...
Each day I receive files from different customers relaying the same information, but the customers use proprietary formats. For example, Customer1Data = {'User':['BobJones','BobJones','BobJones'], 'UserSong':['Song1','Song2','Song3'], 'UserSplit':[0.50,0.25,0.50], 'UserEarnings':[100,200,300]} Customer2Data = {'Name':...
I am making an IOT weather station based on a particle photon that sends data via webhook to one of my other projects. I am very new to c++ and programming in general. What can I do better with my code? What can be optimised? And what are industry best practices that I can put into place? Here's my code: #include <Ad...
I had a thought last night on how I could easily write a Pascal's Triangle generator basically just using partition and map. I tried writing it this morning, and it got slightly more complicated than I originally thought it would, although it's still pretty nice. My main concern is the wrap "hack" that I'm using. I fou...
This is an iterative review of this question: 3D 1st Person Snake Game #1 The next iteration can be found here: 3D 1st Person Snake Game #3 Here is a snippet of the code: <html> <style> canvas{ position:fixed; left:0; top:0; width:99%; height:99%; } * { padding:0px; ...
I am practising interview questions from here. Problem : You are given a read only array of n integers from 1 to n. Each integer appears exactly once except A which appears twice and B which is missing. Return A and B such that output A should precede B. My approach : Sum(Natural numbers) = Sum(given numbers) - A...
I am a beginner programmer(solo learning). I know the basics of c/c++, but I would not consider myself too experienced. Recently I decided to make this calculator which takes an array of characters as input and then decodes the operations. I would like to know if I can improve it in any way and an overall review. #incl...
Here is the function to convert hex string to byte array in the defined order. Any improvements? #define CHECKINVALID 0 size_t FromHex(const char *dump, void *buff, int order) // order: 1 - normal, -1 reverse { uint8_t *cpos; char *digit; int cnibble; size_t len = 0; #if (CHECKINVALID == 1) int n1,...
I was recently tasked a programming assignment with a prospective company, unfortunately I didn't pass the assignment and didn't receive any feedback on what I could have done better. I would appreciate any and all feedback on how I could make the program below better. Task: Write a class or module that has a function...
I have this code: foreach($list as $id => $item_array) { if (($item_array['approved'] == 1) || $is_admin) { include('item.php'); } $temp = $item_array; while(!empty($temp['child'])) { foreach($temp['child'] as $id => $item_array) { if (($item_array['approved'] == 1) || $is_ad...
I made a short program which checks if a number is a power of 2 without using any loops. The idea: A number which is a power of 2 must have only one bit "1" ( ex: 8= 1000, 4=100 and so on). Suppose we have a power of 2:nr = 10...000 (in binary), if we subtract 1 we will get something like this:nr-1= 01...111. Now, if ...
I am just starting on my journey of learning clojure (I have just read to the end of chapter 3 in clojure for the brave and true). So for practice, I wrote some parser combinator functions. I am quite familiar with several imperative and object oriented languages, but this is my first time using a lisp language, and my...
This program created by me spells a number in the standard notation (Billions, Millions etc). I was wondering if there is a better way to do the same thing, or if I have been a victim of some of the bad practices in this language. I am fairly new to Python and have only been learning it for the past 20 days. Any other ...
Final iteration of an iterative review. The previous iteration is here: 3D 1st Person Snake Game #2 Note: For the snippet, click run, "Full page", purposely lose, and then type r. Here is the snippet: <html> <head> <style> canvas{ position:fixed; left:0; top:0; width:99%; ...
I'm pretty new to C and I'm trying to implement a hashtable with chaining for a struct I created: HASH.h: #ifndef HASH_H #define HASH_H #include <stdio.h> #include <stdlib.h> #define MAXNAME 8000 /* Utilizing separate chaining and hashtables to * save the informations about objectives */ typedef struct { unsigne...
Trying to complete an add user script. Nothing out of the ordinary, however I have transitioned over to using prepared statements, and I am trying to get better at creating my own functions. <?php include("../include/sessions.php"); if(isset($_POST['criteria'])) { $value = $_POST['criteria']; $firstname = htmlspec...
I created this double bar chart using d3.js. The blue chart bar grows upwards, uses a linear scale and the corresponding data is testData1, the orange one is developed downwards, uses a sqrt scale and the corresponding data is testData2. testData1 and testData2 are: var testData1 = [ {country: 'FR', year: '2017', ...
I did a simple dice game using what I learned about separating the 'view', 'model', and 'control'. I am quite clear on what the model is (it's the data and state). But I'm a bit confused on the difference between the View and Controller. Here is a Codepen This is the revised Codepen (following some suggestions) var mod...
A Translator in the Terminal using Golang. It uses Google's API. Currently, it only translates en (English) to es (Spanish). package main import ( "bufio" "encoding/json" "fmt" "io/ioutil" "net/http" "net/url" "os" ) func (item *Result) UnmarshalJSON(data []byte) error { var v []interf...
At work they use a format similar to JSON but without quotes that looks like this: {foo:{qux:1,quux:0}, bar:{}} The reason they don't just use json is because the C# package Newtonsoft.Json can deserialize this like if it was regular json and it works. I need to use it in Php but json_decode is not as forgiving. So he...
Background: Motivation behind writing the following code is originated in the area of computer vision. More specifically – image rectification. In order to obtain rectified images, one has to find a set of matching features/keypoints on both images beforehand. My code is supposed to operate on these points. When cal...
For the purpose of becoming better at C++ programming, I wanted to program Ultimate Tic-Tac-Toe as a console application for Windows in C++. However, I thought it would be sensible to create the plain version of Tic-Tac-Toe first. So I made this simple program which I'll later extend/modify for the Ultimate version. I'...
I have the following code which is working fine, however I am concerned around the security of this code and considering I am relatively new to php I was wondering whether the below code is secure? I have a standard form page which submits the data to the table (testing.php). This is accompanied by another page that ac...
I was told to have my code reviewed here as I am a total beginner to Python. I made a small Tkinter script that generates a 4x4 field of buttons and randomly recolors them when clicking on any button, but I was told that the code is not clean. If someone could point out a few flaws and some possible enhancements that w...
Python 3.6.5 Is there any better solution than this one? Particularly the last line. I don't like it. import re s = "my_separator first thing my_separator second thing" data = re.split("(my_separator )", s)[1:] data = [even+odd for i, odd in enumerate(data) for j, even in enumerate(data) if i%2==1 and j%2==0 and i==j+1...
I'm writing a small C program for elimination of chain rules from a context-free grammar. My idea is to rewrite the rules of the grammar in a specific useful order: making groups of productions that start with the same non-terminal, the group of the axiom being the first one in the list. In each group, chain rules are...
I was looking for how to use MessageFormat.format() in Java with named parameters, as a similar option exists in Python, and found this question. Some functions are presented there, although they use internal cycles and StringBuilder, and apparently they can fall into infinite loops (comments there suggest that, and it...
I wrote this code for inclusion in a repository of encryption code examples. The cryptographic primitives in use are required for compatibility with the other code samples. It's been a long while since I've used C, so I expect I will have made many mistakes. What can I do to improve the below code? It is quite lengt...
I am solving interview questions from here. Problem : Given an integer array, find if an integer p exists in the array such that the number of integers greater than p in the array equals to p. If such an integer is found return 1 else return -1 Approach First remove all the negative numbers from the given array and...
I am trying to implement a recursive count of inversions in a list of integers by using merge sort and counting the number of split inversions on each recursion. My code works but runs painfully slowly above a list of about 100 integers, and I need to count for ~3 orders of magnitude greater. Can anyone see what I'm do...
I've written binary search with only my own efforts without glancing at anywhere. I stuck on finding base case. At final, I think that if last checking is less than first index or first checking is greater than last index, it stops. But, I'm still suspicious of its performance and righness. I could return Integer.MA...
My code is determining the difference between two iterables in terms of items that have been addded, removed and kept. The items are assumed to be sortable and there are no duplicates. def diff(before, after): """Return diff between iterables of sortable items `before` and `after` as tuple of three lists of ite...
We have a winforms application with a lot of grid views. These grids have some basic layout functions (text color, font weight, font style, ....). I need to make sure that other developers can make customizations to the layout of the grids without touching the base code. So this is the solution i came up with. I creat...
I have written the following script to scrape data from the U.S. National Library of Medicine website ClinicalTrials.Gov based on an NCTID. def clinicalTrialsGov (nctid): data = BeautifulSoup(requests.get("https://clinicaltrials.gov/ct2/show/" + nctid + "?displayxml=true").text, "xml") subset = ['study_type', '...
This is an iterative review. The next iteration is located here: Utilities for Various Builtins #2 This code puts several builtins (And a few non-builtins) into the base classes. const XtraUtils = {}; class Utility { constructor(ofWhat){ this.utils = {}; this.aidsIn = ofWhat; } activate() { ...
I am working on a compiler that does a pretty heavy work on strings in order to get them correctly displayed. So far I have an algorithm that transforms a given string like (In plaintext): "This is a \"string\"" After matching the complete token I get something like the following (C string): "This is a \\\"string\\\""...
I wanted to make use of the speedtest-cli while also incorporating pandas into the project. My initial goal, which I am posting here, was to take the values of the speed test and incorporate them into a CSV. I've been learning about Pandas and figured it would be a good way to accomplish the project. import speedtest ...
I've written an implementation of the Hindley-Milner type system as a "Core" language for use in writing compilers of typed functional languages. This is meant to be used as a library by compilers of more complex languages, providing an in-memory intermediate representation after parsing, type inference, and typechecki...
I want to make factories that can chained together to create a pile of layers. One of the advantage of chained factories is that later factories can pass specifications to earlier factories. For example, if I want to make a tree on top of an array, I wouldn't know the correct size of the array until I know the size of ...
I'm trying to use sockets to create a simple client and server architecture and I'm wondering if there is any other way to create non-blocking, 'async' sockets instead using fcntl(), select() or Boost Library? How can I implement this in a C++ style? I'm using threads to accept new connections and receive data, but in ...
After providing an answer on this question, I decided to try writing my own version of a console based tic-tac-toe game that will later be converted into an ultimate tic-tac-toe game. My goals for this code are to keep it simple, readable, and well-organized. Hopefully it's not too bad. I'm not completely familiar with...
This code returns an array that consists of two copies of the input array. Can you review this algorithm? //input: [1, 2, 3] output: [1, 2, 3, 1, 2, 3] function duplicate(arr) { let copy = []; for(let i = 0; i < arr.length; i++) { copy.push(arr[i]) } return copy.concat(arr) }
I am solving interview questions from here. Problem : Given an array of integers, sort the array into a wave like array and return it, in other words, arrange the elements into a sequence such that a1 >= a2 <= a3 >= a4 <= a5. Note - If there are multiple answers possible than return the one that is lexicographically...
I have census data that looks like this State County TotalPop Hispanic White Black Native Asian Pacific Alabama Autauga 1948 0.9 87.4 7.7 0.3 0.6 0.0 Alabama Autauga 2156 0.8 40.4 53.3 0.0 2.3 0.0 Alabama Autauga 2968 0.0 ...
Frustrated with the solutions that I found online I decided to write my of Icon Browser. From the onset I decided that my Icon Browser should work from the VBEditor and not show any of the thousands of blank button faces that I've been sifting through. CommandBarButtonCallBack:Class Description: Hooks the CommandBarB...
Please review my code below. I am studying the Visitor Design Pattern and I think I have implemented it correctly. Please check. I have tried to split the method definitions and the prototypes as much as possible so there are many files. Any comments are welcome. And no, this is not homework. AsteroidBase.cpp #include...
This is a simple TicTacToe game which allows 2 human players to play together. This involves no AI. I am fairly new to programming and have only been learning python for 20 days. I need to know if the code which I have written is efficient in terms of approach, variable naming, commenting practices, typical conventions...
Just joking guys, Brainfuck is an awesome, challenging language. I've tested the following code with bf-x86 compiler and rather big JSON file. I believe code is fully functional on a valid (!) JSON input. That's my second JSON formatter and my first code in Brainfuck. I know nothing about best practices and code style,...
I have created a basic ATM application where we can deposit, withdraw money from our accounts. It works, but I want to improve the coding standards. Kindly suggest what coding standards im breaking and why I should change my code. package Standaloneapplication; import java.io.*; import java.util.ArrayList; import ja...
This code is within a ViewModelBase class. I have a custom attribute defined that is meant to trigger methods when a property is changed. The following runs as the ViewModel is being constructed. The idea is to catalog the methods that should be triggered upon a property changed event based on the property name. It ...
I upgrade an old MFC multi-threaded C++ project (from year 2002) to VS2017 Windows 10 x64. I rewrote the mutex sections (MFC's CMutex m_mu). I preferred, of course, to use C++11 std::mutex m_mutex and std::lock_guard<std::mutex> guard(m_mutex) but it throws an exception. I decided to add my own CLockGuard class (code b...
My first python program top to bottom used for work. First it converts units from imperial to metric and vice versa, then adds the dimensions to a shipment and prints the shipment. When you do a new conversion/addition it adds it to the shipment so I can see what the final shipment is. I have already done some pythoni...
So I've been working on learning c++ and have created a file browser for the popular "Dear ImGui" framework (Immediate mode GUI). I'm looking for any feedback on its layout / code correctness. (It works well enough but maybe I'm doing something dumb?) One of the things I'm specifically wondering, is it ok/proper to hav...
So I wrote a card game in Java/JavaFX but I don't particularly like this solution and I was wondering if you guys have any better solutions: public static CardNode get(Card card, double nodeWidth, double nodeHeight, double imageWidth, double imageHeight) { if (card.isMonster()) { MonsterCardNode cardNode = ...
I need to write a custom reducer utility. It should take a dictionary of reducers and a publish subject to return a state, with a dispatch method to dispatch actions and notify the publish subject. It should be 100% type-checked with TypeScript, compatible with strict compiler options, and should only use type-inferenc...
Does this code calculate the retention rate per acquisition channel correctly? $$ R = \frac{E - N}{S} * 100 $$ Where \$E\$ is the number of customer at the end of a period, \$N\$ is the number of new customers acquired during that period, and \$S\$ is the number of customers at the start of that period. +-------------...
I have recently been working a lot on a project for a system that represents an inventory and item usage in a game, with one of the important features is that it should be reusable in multiple projects. I think I managed to do this quite well, keeping the required interface as minimum as possible. I have come to a poin...
I'm looking for a review of the Javascript code which has this specifications: Given two objects, the function "extend" adds properties from the 2nd object to the 1st object. Notes: Add any keys that are not in the 1st object. If the 1st object already has a given key, ignore it (do not overwrite the property value)...
I'm learning rust with mostly a background in managed languages. I have a little C background. As a learning project I am re-implementing a linear-transformations library I've been working on in C#. This is my first reusable library I've tried to make in Rust and I'd like feedback on creating and using modules, as...
Playing with https://ocaml.org/learn/tutorials/99problems.html#Miscellaneous-Problems I wrote a backtracking solver for the n queens problem, then the knight's tour, and realised I could generalise the backtracking algorithm to be shared between both. How's my code? Is is F#-onic? Could any of it be simplified? Is the...
I'm very new to Haskell as was hoping to get some feedback on my code AND I have some specific questions. I've posted code below or you can see it here. I'd welcome ideas on how better to calculate the Maclaurin series. Ideas on how better to do the math itself are welcome but I had in mind what Haskell ideas am I miss...
Given the adjacency list to represent a tree from the root (node 0) to the leaves, I want to write a function that takes this adjacency list as a parameter and return whether the tree is balanced. Definition: a tree is said to be balanced if a path from a root to any leaf has the same length. I should be grateful if yo...
I had been still using BackGroundWorker and decided to learn async Task. My test project is a simple timer that can be canceled. The target project is to read instruments with a delay for sampling. Please review for style and anything else you see. using System; using System.Collections.Generic; using System.Linq; ...
I recently attempted to prove that given two lines, they intersect at one and only one point in Idris. Here is what I came up with: interface (Eq line, Eq point) => Plane line point where -- Abstract notion for saying three points lie on the same line. colinear : point -> point -> point -> Bool coplanar : point ...
The reason I used fields instead of automatic properties is because I am using tryparse which can not use properties... I know the Title setting could have been an automatic property but I decided to go with consistency and create a field for it. Is it ok to do so? Do you see anything else that could go wrong? Is it o...
Stroustrup states [CPL 4, pg 118]: The correspondance between the shared data and a mutex is conventional: the programmer simply has to know which mutex is supposed to correspond to which data. Obviously, this is error-prone, and equally obviously we try to make the correspondance clear through various language means....
I need to call some functions and clean up some resources acquired after those calls. I can't just call some determined Cleanup function in the end, because during the execution of the functions exceptions may be thrown, so the precise cleanup action depends on the point at which exception is thrown (it may be thrown i...
Can I somehow refactor this into one class? Some things are common here like Metadata property. public class Resource<TEntity> { public TEntity Data { get; set; } public Dictionary<string, string> Metadata { get; set; } public Resource(TEntity data) { Data = data; } } public class Resourc...
I'm writing a static class to log my application errors into a text file. I am planning on using this as a library on any application I intend to develop in the future. Please let me know how I can improve this more and what could be changed so it would perform better. public static class Logger { public static voi...
I have a class that I am using to generate 10 character alphanumeric 'tokens' (Strings) and writing them to a txt file. I would like to be able to generate as many as possible as quickly as possible without producing any duplicates. This is what I have so far: import java.io.BufferedWriter; import java.io.File; import...
This is a python program that automates skipping through users on a chat website called talkwithstrangers using the Selenium Webdriver and BeautifulSoup modules of Python. The first part uses Selenium to open the browser: from selenium import webdriver driver = webdriver.Chrome('C:\SeleniumDrivers\chromedriver.exe') us...
I wrote a simple multithread server to use as a base class for other different types of multithread servers. I haven't had a lot of opportunities to get code critique from other people, so I wanted to post here to see how much coding style was. Any constructive feedback on how to improve my code would be appreciated! I...
I am fairly rusty with assembler, let alone the AT&T syntax. I would appreciate it if someone with more experience could please review the following memcpy implementation. Note that this will only ever be called with aligned data. inline static void alignedMemcpySSE(void *dst, const void * src, size_t length) { #if def...
The problem I am trying to solve is this. Apples fall at various offsets relative to an apple tree at position a, and oranges fall at various given offsets relative to an orange tree at position b. How many of each kind of fruit lie between positions s and t? I pass 8 from the 11 test cases, I fail 3 tests due to tim...
I want to implement a custom Writer that allows the native go logger to do log rotation, and I also wanted to be able to write tests for it. The general idea was to create FileOpener File interfaces that can be mocked in the tests, but because I have no experience in go I wonder if this solution is too verbose or not e...
I'm implementing paging for the first time and have the following code which achieves what I want. There are just a couple of things that feel a bit weird to me and would like if somebody could give it a once over and see if it's okay. At the moment, I call a service to retrieve objects from a DB using a repository cla...
This question was presented to me, adapted from Project Euler #8. The goal is to find the N adjacent digits in the 1000-digit number that have the greatest product. Range of N: 10 <= N <= 50. Not only I have to find the max product of 13 consecutive digits in a sequence, I also had to find the max product of 19, 35,...
I am trying to make a fun, easy game of tic-tac-toe, but my code editor is very limiting. If anyone has a suggestion to make this better, or a good, free code editor, I would love to know. By running this code, you play a very simple game of tic-tac-toe, but it doesn't show any pictures. You need to remember all the mo...
This is a ledger kind of table, initial amount is when the movement is null and all transactions on it is based on the Waste_Seq the query take the last entry (id) based on the movement and change the initial amount this query seem to work for my scenario and seem fast, is there a better or alternative way of doing wha...
I'm writing a simple class to manage a warehouse, so it's supposed that it will use a database connection. All works fine for now, and I'm actually working to finish the UI. Since I think to be a newbie in PHP OOP, I would appreciate much if anyone can review my code to help me improving it. Here is the class code: ...
Short intro So, I've been using Django for a while now and thought it would be nice to start a simple application. In an ideal World, each app must have a way of letting its users register and that's what I'm gonna do below. Description I've used the latest Django version for this project -> because of this, I couldn'...
I m new in java and created a small project in which you have to solve random math problems there is three levels in it Easy, Medium , Hard, if you win or loss in game the message for three level will be different Flaws in my program:I didn't use float as data type so there is no question on division and % is not avail...
I'm designing a new esoteric language, and the interpreter is in Python3. It is going to use Prefix Notation, so as part of the interpreter, I need a function that evaluates a string as prefix notation and returns a number. Here is my code so far: import re import math class Operator: def __init__(self, arity, fun...
This is Merge Intervals problem from www.interviewbit.com Problem : Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initially sorted according to their start times. Example 1: Given intervals [1,3],[6,9] insert and merge...
Introduction Watching this talk, I thought may be I could apply it on parsing smaller numbers, like std::uint16_t. I augmented it though, by using a fallthrough switch statement. Basically, it starts from the back of the std::string_view, and then keeps falling through towards start of the std::string_view. constexpr s...
I built a class which uses an HttpClient instance for downloading the content of a page. This is working pretty well but I'm not really satisfied about my implementation of redirect. In fact, I handle the redirect manually as you can see: /// <summary> /// Web request handler /// </summary> public class NetworkHelper ...
Divisors of 42 are : 1, 2, 3, 6, 7, 14, 21, 42. These divisors squared are: 1, 4, 9, 36, 49, 196, 441, 1764. The sum of the squared divisors is 2500 which is 50 * 50, a square! Given two integers m, n (1 <= m <= n) we want to find all integers between m and n whose sum of squared divisors is itself a square. 42 is suc...
The script should be a single python file that takes an excel file (or csv). Each row represents one switch. For each switch, there will be one or more interfaces. The objective is to output a script of commands to execute to configure each switch, as specified. For example, Row 1 is below: switch1 Eth1 trunk ...
I have implemented what is know as a countSketch in Python (page 17: https://arxiv.org/pdf/1411.4357.pdf) but my implementation is currently lacking in performance. The algorithm is to compute the product SA where A is an n x d matrix, S is m x n matrix defined as follows: For every column of S uniformly at random sel...
I have a Memory style card matching game. The project is big enough that I want to break up the review. The first part that I am giving you is the data model. If you are interested the full project can be found on github. The first file I am sharing holds all of my constexpr that I use to eliminate magic numbers. It al...
I'm trying to implement isSorted method checking whether given array is sorted recursively. I've written two types, one is similar to merge sort logic, the another is like loop. Can they be made more efficient? Is there any thing I overlooked? class SortedRecursive { public static void main(String[] args) { ...
Trying to create a simple Course Management application using SOLID principles and best practices for Object Oriented Programming. Looking for feedback on the library I created in src/main/lib of the github project below. Example usage is shown in src/main/app if you are curious, but I am less concerned with feedback o...
I have the following code. It looks through an array, called items, and checks to see if there are any items in that array that also exist in a certain set of strings, called stringSet. Set<String> stringSet = new HashSet<>(); stringSet.add("A"); stringSet.add("B"); stringSet.add("C"); String[] it...