instruction
stringlengths
71
95.1k
I have a list of article titles, where I wish to count the number of occurrences for each word (and remove some words and characters). The input is in a .csv file where the titles are in column 'Titles'. Maybe someone could help me do it more elegantly. import numpy as np import pandas as pd #imports Counter, as we wil...
I have created the code below that compare two spreadsheets . It initially compares the range of value from sheet1 ("Status") to sheet2 ("Interface") . Whenever a range matches with the ranges present in other sheet , it does nothing .When the range does not any matches in the other sheet , then the entire record is co...
GitHub GitHub if it's easier I'm in the process of doing a training course in C#. I've just gone over covering Polymorphic OOP / composition over inheritance etc... The latest exercise I completed in the course was to create two base classes, DBConnector & DBCommand that can be used for any database. The verbatim requ...
I have a list of orders and for some order fields I need get the data that is common among the orders. If the data is not in common, I should indicate null. I collect the common data in a CommonData object. In addition, I also store the order codes and order ids associated with the CommonData. I have two approaches th...
The point of this project is to be able to create an excel configuration file where the user can input search strings and search files, both potentially having wildcards, and search those files for those strings. The problem is that while I have working code, it just simply takes the program too long to run. Based on ...
The task: Implement integer exponentiation. That is, implement the pow(x, y) function, where x and y are integers and returns x^y. Do this faster than the naive method of repeated multiplication. For example, pow(2, 10) should return 1024. Solution 1 function pow(x, y) { if (!y) { return 1; } let tmp = res = x;...
The following code is for a vertical menu, where I needed a marker to slide down next to a link upon hovering over said link. Therefore I needed to change CSS properties of a HTML element (the top-margin in this case). What I've done in jQuery is add a class ('.movedown1' or '.movedown2') to the marker div ('#slide') w...
I work in the population health industry and get contracts from commercial companies to conduct research on their products. This is the general code to identify target patient groups from a provincial datasets, including DAD (hospital discharge), PC (physician claims), NACRS (emergency room visit), PIN (drug dispensati...
I have this sample data: let trips = [ { from: "DEN", to: "JFK" }, { from: "SEA", to: "DEN" }, { from: 'JFK', to: 'SEA' }, ]; and my origin is 'JFK', I want to sort the list by how I have traveled. So for instance, this should be the end result: let trips = [ { from: 'JFK', ...
I'm new to Python, for a school project I created a "fishing simulator". Basically, it is a use of random. I know that my code is repetitive towards the end, but I don't know how to simplify it. import time import random fishing = True a = b = c = d = e = 0 #define multiple variables as same thing print ("~~~~~~~~~~~~~...
It's an extremely simply HTTP server in Python using the socket library, and a few others to get the MIME type, etc... I've also avoided the ../../ vulnerability, although some of the code in the send_file function seems a bit weak. It should also be PEP8 compliant, aside from maybe some trailing whitespace in comments...
Description: The questions are being showed in the console tap with player's score. It's questioning by prompt continually until the prompt input gets 'exit'. If the answer for each question is right then player's scores are counting up. But, if not then it shows the same question over and over until the answer is rig...
I've been implementing MVVM in Swift. I've looked at several implementations, many of which violate some aspects of MVVM and wanted to have a go with my own version that contains a Web request service. View: class BreachView: UIView { var nameLabel = UILabel() public override init(frame: CGRect) { let l...
Curious on how I can consolidate or generally streamline my code here: import random import random #Rolls a certian number sided dice def diceRoll(num): roll = random.randint(1 , num) #print("The roll was: ", roll) return roll ############ print("") ############ #Generates a dungeon with a number of ...
I have this bash script I've been working on and I have updated it. I was hoping for some advice and/or input on the code. This script is run directly after a fresh install of Debian, to do: Sets up syntax highlighting in Nano Sets up iptables Sets up ssh Sets up custom bashrc files ls colors Creates users on the syst...
The task I asked similar questions here and here. Given a string of round, curly, and square open and closing brackets, return whether the brackets are balanced (well-formed). For example, given the string "([])", you should return true. Given the string "([)]" or "((()", you should return false. My solution ...is ...
Currently when the user selects some tags in my app I generate them in a function, like this: // Show tags that are currently used in search var htmlNodes = '<ul class="tags">'; // If no pinned nodes, reset not found nodes if (graphFactory.existPinnedNodes() == false) { graphFactory.updateNotFoundNodes(); } // Add ...
As part of a web-based claims system I have created, there is a view for logging telephone calls. If a call is incoming, the claims handler asks the caller a series of data protection questions to validate who they are. The questions are generated from a database and each question has one or more valid answers. The val...
Context: I'm using the clone pattern for creating copies of polymorphic classes which may use virtual inheritance (I hope to get rid of the latter). So when calling foo.clone() I'm guaranteed to get the same type as foo even though the clone function might return only the base class (say ICloneable) So I wrapped the cl...
The task: Given a list of numbers and a number k, return whether any two numbers from the list add up to k. For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17. Bonus: Can you do this in one pass? const lst = [14, 10, 3, 7, 0]; const k = 14; My solution 1: const addUpTo = (lst, k) => ls...
I have this code I use it for two things connect to lxd instances and emits any operation events it recieves over socket.io to the client Bridge between client and lxd for terminals Its pretty poorly written so any pointers would be great (but it works fine) // This originated from https://gist.github.com/CalebEver...
Task is to read file(input.csv) and calculate each operations commission depending of operation type(cash_in or cash_out). I dont have any specific questions, just want overall feedback, like code structure, naming, readibilty, good practices. Next step would be to write unit tests(still learning) so my code need to be...
I am implementing a data model in python and would appreciate any feedback. Model My data structure can be reduced to the following: { 'source':{ 'name':None, 'website':None }, 'car': [{ 'manufacturer':None, 'model':None, 'yea...
I'm trying to solve Pylons from the 2019's round 1A. Problem Our Battlestarcraft Algorithmica ship is being chased through space by persistent robots called Pylons! We have just teleported to a new galaxy to try to shake them off of our tail, and we want to stay here for as long as possible so we can buy time to...
I am coding a csv file filtering api in ASP.NET Core, which takes a csv file located at a given uri (and retrieved via the query string) convert the content to a collection of records, then apply a business rule to mark some records as pass or fail and then convert them as json/xml as part of another, output stream (th...
I've written up a small wrapper for RSA and AES encryption in Kotlin, and I want to make sure I'm not making any glaring mistakes before use it. This is going on a small project with basically no needed security, but I wanted to try and write it correctly. Here's my Person class: class Person private constructor(val na...
I put together this little memory pool class to help avoid the costs associated with heap allocation and deallocation of objects that are frequently created & destroyed. It creates C++ standard shared_ptrs with custom deleters that return the pointed-to object to the memory pool where it can be recycled. Right now it u...
I am using RxJS to fetch a data structure from a server and cache it, but I also need to be able to overwrite the value locally (specifically, a user operation can change the server state, and the change takes effect locally without waiting for a round-trip communication) Eventually I came up with this solution, where ...
I know this is the simplest code that you have probably ever seen but its the first thing I've ever made. Any ideas on how to improve it or add new functions to it? from random import randint coin = str(randint(0, 1)) if coin == "0": print("Coin flipped! It's tails.") elif coin == "1": print("Coin flipped! It'...
The task: Given an N by N matrix, rotate it by 90 degrees clockwise. For example, given the following matrix: [[1, 2, 3], [4, 5, 6], [7, 8, 9]] you should return: [[7, 4, 1], [8, 5, 2], [9, 6, 3]] Follow-up: What if you couldn't use any extra space? const mtx = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]; My imperative...
I'm extracting a few frames from a video: Comparing the similarity or equality of pixel color (from first two images) Saving to a new image Comparing the new image (conjunction of first two images) and the next image, etc. Can you review my codes for efficiency and best coding practices? Code import sys import os imp...
I have been learning C++ and recently I have started practicing classes. I made this simulation of a banking system with an Account class. I would like to hear feedback on my code, what is good - what I should keep doing, and especially what I should pay more attention to, or if you have any suggestion on how to simpli...
I have a settings.txt file with the following format: property=value another_property=value category.sub_category.property_name=value And a Settings class that reads the properties out of this file and uses reflection to assign values to the corresponding fields within the class and it's subclasses: public final clas...
I'm just starting to learn Julia, I work primarily in physics and am used to writing most of my code in Fortran90 and occasionally Python for Tensorflow (also Mathematica but that's less relevant). Julia has been recommended to me and I started checking it out; I like it a lot in theory as a middle ground between the s...
I created program that generates brainfuck code that outputs given text. Arguments for the program are input file with the text and output file where code will be generated to. Here is the code: #include <stdio.h> #include <stdlib.h> #include <string.h> #define ALLOCATION_ERROR 1 #define FILE_ERROR 2 #define OTHER_ERR...
I wrote a program that calculates the minimum number of coins required to give a user change. One concern I have is: When do we initialize the value of a float to be negative or positive? I recently saw float userInput = -1.0; but what about float userInput = 1.0; Are there differences between the two, and when...
I posted part of this module earlier (here). I implemented that feedback and now am looking for another round of gut checking. Questions/Concerns I have: Does the way I've structured my functions make sense? Can they be broken down more/differently? Is there a better way of doing the error handling? I feel like I'm re...
I have some selects on my html page that I want to populate with the response from my backend API. The response looks like this JSON response [ { "_id": "5cb0673115b6d70016d293e5", "delivery_mode": [ { "_id": "5cb0673115b6d70016d293e7", "name": "Delivery t...
Link to the old question. I tried to learn some new things from the answers and here's what I did: Used Qt Designer so that in Config.h, all member variables and widget positioning are gone User can't set the lower bound higher than the upper and vice versa Replaced obsolete qrand with generators from the C++11 <rando...
We have a large log file which stores user interactions with an application. The entries in the log file follow the following schema: {userId, timestamp, actionType} where actionType is one of two possible values: [open, close] Constraints: The log file is too big to fit in memory on one machine. Also assume that the ...
I had to create a report which presents the salary structure of a firm. The data needed was provided by the client as CSV-files. I used PHP for the reading and preprocessing of the data. The actual presentation was done with HTML, CSS and JavaScript. The markup and PHP which I have created: <html> <head> <meta c...
I've written a class for square numerical matrices (of doubles, in this case), in C++11. Since I intend to use this class later for implementing an \$LU\$ decomposition, I also subclassed the main Matrix class with LowerTriangular and UpperTriangular matrix classes. Taking advantage of the fact that an \$n\$ by \$n\$ t...
I’m having trouble understanding an SBCL compiler note about unreachable code in the following function. The referenced code is attempting to push a value into an Lparallel queue: (lparallel.queue:push-queue :stop problems) which appears in line 9 of the function. Commenting out this line produces a clean compile of th...
This program performs a matrix-vector multiply using MPI to split the computation up. It is not extremely robust (for example, it doesn't handle the case where the number of MPI processes does not divide evenly into the dimensions of the matrix), but I mainly wanted to get some practice using MPI. Is my use of the func...
The task Given a list of words, find all pairs of unique indices such that the concatenation of the two words is a palindrome. For example, given the list ["code", "edoc", "da", "d"], return [(0, 1), (1, 0), (2, 3)]. const lst = ["code", "edoc", "da", "d"]; My functional solution const findPalindromePairs = lst...
I would like to write a function that computes a cartesian product of two tuples in C++17 (the tuples can be of type std::tuple or std::pair, or any other type that can be used with std::apply). The tuples can be of different types and sizes, and the resulting std::tuple has to contain all std::pairs of elements, where...
I wrote a program that receives 2 strings (Input and Search) in the Search string. The sign '+' indicates that if the substring before the '+' exists in the Input string. (The search string cannot start with '+' and there cannot be a '+' followed by another '+'). Can you review it for best coding practices and efficien...
I'm trying to write a generic mean function for all values within an Vector of generic numerical primitive type. Could the following implementation be possible more efficient, yet still generic enough for all the possible numerical primitives? Is the num crate really needed? extern crate num; use std::iter::Sum; use st...
Description: Haku has been newly hired by Chef to clean tables at his restaurant. So whenever a customer wants a table, Haku must clean it. But Haku happens to be a lazy boy. So in the morning, when the restaurant is opened, all the tables are dirty from night before. The customer don't leave the table unless they...
My name is Ethan and I am trying to build an API for scaping technical papers to use for developers. Right now it only works for ArXiV but I would greatly appreciate some mentoring or a code review of my repo. I am a new developer and want to get my code to professional quality. Repo: https://github.com/evader110/ArXi...
A problem on leetcode asks the coder to write an algorithm to take a bunch of coordinates in the xy-plane and return the minimum area of a rectangle made from four of these coordinates (or return 0 if no four of these coordinates describe a rectangle). Admissible rectangles must have sides parallel to the coordinate ax...
Goal This is very basic beginner script, only for prototyping, probably never to reach alpha/beta prototyping/production, is being designed/tested for performance. Its performance quality might be somewhere around 1-2% now and at least requires another 60-70% for reaching a reasonable version. Function It scrapes equit...
#include <iostream> #include <cmath> using namespace std; int s = 1; //Serial No. Should I use recursion for the factorials function? int Factorial(int n) { int k=1; for(int i=1;i<=n;++i) { k=k*i; } return k; } How I can go about doing this in a single for loop instead of the 3 while loops...
I've implemented the following algorithm (From "Computational Geometry : Algorithms and Applications"). The code is below: (All the code actually is here: https://github.com/lukkio88/ComputationalGeometry/tree/master/Point, but the relevant bits for the algorithm are the .h and .cpp below) The algorithm is quite com...
Windows keylogger in C++ Known issues: Not implementing rule of five Having to use hack to use member variables, out_, in static method Pressing caps-lock won't capitalize letters (I will fix this later) keylogger.h #pragma once #include <string> #include <Windows.h> class keylogger { public: keylogger(std::ost...
The task ...is taken from leetcode Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same element twice. Example: Given nums = [2, 7, 11, 15], target = 9, Because nums[0] ...
I have this tic tac toe game which is very old project of mine, though I made some changes on this to improve the script to perform better. This game is functional, Any logic improvements or other suggestions are greatly appreciated. // tic tac toe v0.2, revised on 20th October, 2018; var turn = 0; //is used for che...
This is an implementation of C++17 std::allocator under the name my_std::allocator, with deprecated stuff omitted for simplicity. // A implementation of C++17 std::allocator // with deprecated members omitted #include <cstddef> #include <new> #include <type_traits> namespace my_std { template <typename T> class ...
I'm practicing C++11/14/17 and am teaching myself the STL multithreading library by writing an asynchronous dispatch queue for my simple use case. It seems to "work ok" but I want to know if it's actually correct and if there are any improvements that I can make for any aspect of my code, including performance. The int...
Problem Statement: You will be given a list of integers, arr, and a single integer k. You must create an array of length k from elements of arr such that its unfairness is minimized. Call that array subarr. Unfairness of an array is calculated as: max(subarr) - min(subarr) Where: max denotes the largest intege...
I've been working on an edit/update button that will toggle a modal that looks like this: Is there a better code for this JavaScript code that I made? <script> $('body').on('click', '.editButton',function(){ let edit = $(this).val() console.log("Edit this : " + edit); $('#updateEmpModal').modal('toggle')...
I have 2 sheets setup: Exclusions and Issues Issues has a list of CASE ID's and Columns that list the "Issue" Exclusions will be populated with CASE ID's that are to be excluded (and removed) from the Issues sheet. My question is 2 fold: Is my current code handling this correctly? Are there any ways to improve this? I...
Problem Statement Alice is taking a cryptography class and finding anagrams to be very useful. We consider two strings to be anagrams of each other if the first string's letters can be rearranged to form the second string. In other words, both strings must contain the same exact letters in the same exact frequency. Fo...
HTML & CSS .route-checklist { display: flex; align-items: center; flex-wrap: wrap; } .route-checklist.uniform { width: 1000px; } .route-checklist:not(.uniform) { justify-content: center; } .customer-checklist { padding: 10px 30px; margin: 15px; border: 1px solid black; border-radius: 10px; vert...
This is a homework project (Soft. Eng.) which I have completed. My teacher gave me a 91, but I am unhappy with this grade because my code is quite messy. (Please excuse incomplete Javadoc, the code is fully functioning.) In particular, I am worried about checking the win condition in a view: TilePanel.java's paintComp...
I dont know why my code is not working at all. In my Eclipse there's no errors shown at all. I want to use the id to print the name of my customers, and that's my goal Customer[] custArray = { new Customer("Chen",35), new Customer("You",36) }; public Customer searchCustomerByID(int custID){ for(Custo...
I've created a 2-player tank battle game. The code however seems like it could be greatly simplified and there are a few issues. One of which is the hitboxes of the tank seem a bit unreliable. Sometimes when a bullet is fired, it will hit the empty space next to a tank and count as a hit, but other times it will pass s...
Computing Easter for a given year is a classic computational problem. It is also one of the few cases when code seems to just have to live with magic numbers. Alternative to magic numbers: Decoding Gauss' Easter Algorithm So I thought today, I'd do something positive and make an Easter bar graph. C99 Review goal: Gener...
How to flatten a list of lists in more pythonic way? This is the code I tried. input, output = [[1,2], [3, 4]], [] for e in input: output.extend(e) print output # [1, 2, 3, 4]
I have a macro in Excel that updates a recordset using WHERE a primary key in MS Access matches a primary key in a UserForm label value. The macro is called from a Userform command button, this command button also writes about 10 different UserForm textbox values back to MS ACCESS and to a Sheet in Excel. My query in M...
I currently use this code to extract the required GPU data. Can you review this method for efficiency or best coding practices? Code import wmi c = wmi.WMI() def gpu_check(): gpu_ouy =["fu","7"] gpu_a ="" gpu_b ="" ass = str(c.Win32_VideoController()[0]) asss = str(c.Win32_VideoController()[1]...
To gain a broader insight in things many (high-level language) programmers nowadays take for granted, I decided to study some of the more basic ways of storing data in memory. I wrote a program which stores dynamic sized (integer) arrays in a chained hash table. A possible application could be the indexing of lines on ...
The task You are given a list of data entries that represent entries and exits of groups of people into a building. An entry looks like this: {"timestamp": 1526579928, count: 3, "type": "enter"} This means 3 people entered the building. An exit looks like this: {"timestamp": 1526580382, count: 2, "type": "exit"} Thi...
I am teaching programming (in this case - 1 on 1 tutoring of a teenager interested in programming) and this code will be a final stage of a progression toward program generating a maze. Any comments how this code can be improved are welcomed! But problems with unclear code that break standard practices are especially w...
I'm trying to implement properly search functionality for database table. I tried this approach: Controller: @GetMapping public Page<TransactionDTO> find(TransactionFilterDTO filter, Pageable page) { return searchRepository .findTransactionsByFilter(mapper.toFilter(filter), page) ...
My code does exactly what I want it to. However, being relatively new to VBA, I feel it could be a lot more efficient - namely I think I have overused loops and worksheet functions which are slowing it down. At the moment it takes around 3 minutes for ~15k rows of data. Currently it's more of a combination of separate ...
I have a dataframe that has 3 columns, Latitude, Longitude and Median_Income. I need to get the average median income for all points within x km of the original point into a 4th column. I need to do this for each observation. I have tried making 3 functions which I use apply to attempt to do this quickly. However, th...
Following approach uses more Functional approach (non OOP), each method is passed DataSource as dependency. I've written this piece and I'm wondering if there's something that can be improved. I wish to add ResultSet to try block but not finding any option. Is there a way? Also please review the class MySQL. public sta...
I have an ASP.net MVC5 project which involve different domain services, and one of it are EmailService which will send email if entity is updated. public class Project { string ProjectType {get; set;} string Name {get; set;} } public interface IProjectService { event void EventHandler<ProjectEventArgs> Upd...
I was working with twitter data, and extracted every emoji from the data. But, when I passed that data through CountVectorizer, colons where substracted from the strings. So, the string emoji :ok_hand: :thumbs_up: turned into ok_hand thumbs_up. I wanted to re-add those colons so then I could emojize them back. I manag...
Yet another exercise in converting values between the decimal and roman number systems. I have tried the functional way. Any comments are welcome - but I'm especially interested in answers focusing on the F# specific functional approach and less in if I obey each and every rule for roman numbers. A type definition: mod...
We would like for a code review for our Python code. The code is written in Python 3.7 and is part of a class handling HTTP cookies. The code: class CookieJar(object): def add_cookie_header(self, request): w_r = WrappedRequest(request) self.policy._now = self.jar._now = int(time.time()) # t...
The task You are given two non-empty arrays representing two non-negative integers. The digits are stored in reverse order and each of their items contain a single digit. Add the two numbers and return it as an array. You may assume the two numbers do not contain any leading zero, except the number 0 itself. E...
As an exercise, I decided to try implementing a Mandelbrot Set viewer that produces ASCII images. Small Example: .. ....... ...
Some of the classes in my multi-tenant Asp.Net Core application depend on database repositories which in turn depend on a delegate called GetCurrentTenantKey. In the normal request pipeline, the GetCurrentTenantKey delegate will be resolved to a Func that returns the tenant key found in the current users auth token. Bu...
In my site: Users have many Activities Each Activity has encoded_polyline data I display these encoded_polylines on a map I want to use IndexedDB (via Dexie) as an in-browser cache so that they don't need to re-download their full Activity set every time they view their map. I've never used IndexedDB before, so I don...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> typedef int STATUS; #define ERROR -1 #define OKAY 0 struct version { unsigned char major; unsigned char minor; unsigned char build; unsigned char patch; }; STATUS is_less_than(struct version * original, struct version *com...
Continuation of this post I wrote a program in pygame that basically acts as a physics engine for a ball. You can hit the ball around and your strokes are counted, as well as an extra stroke for going out of bounds. Recently, I added a few things like air resistance, and rewrote my movement physics to make it easier to...
I developed a simple command-line roulette game. Your only options are betting on color, but you can bet multiple times in one round import copy import distutils.core from time import sleep from random import randint red_slots=(1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36) black_slots=(2, 4, 6, 8,...
There are plenty of examples of using the FileSystemObject to recursively search for a file in subfolders. I thought that it would be interesting to write one using the Dir() function. I was wondering if there is a way to return the found file without using the extra FoundFile parameter? Function FindFile(ByVal fold...
I came across below interview question and I am working on it: Build a queue class with the enqueue and dequeue methods. The queue can store an UNLIMITED number of elements but you are limited to using arrays that can store up to 5 elements max. Here is what I was able to come up with. Is this the right way to do...
Please review and let me know which version is better. I'm just trying to find any caveats or better ways to accomplish the a version comparison independent from Android and iOS. Formats accepted: '1.0.0' or '1' formats and an operator, e.g: compareVersion('1', '1.2.0', '>') export function compareVersion(version1, ver...
This is what the function is doing: it gets two arrays of tuples with 5 items each - hand = [H1,H2,H3,H4,H5] and board = [B1,B2,B3,B4,B5] What I need to do is check all arrays formed by 2 items from hand and 3 items from board, like combination = [Hn,Hm,Bi,Bj,Bk] (100 combinations in total) Then I need to compare each ...
def prob_1(): sum_mult=[] #Create an empty list which will take sum of multiples of 3 and 5 check_sum=0 for i in range(1,1000): #Take numbers till 1000 #if(i) if( (i%3)==0 or (i%5)==0 ): #divisor condition sum_mult.append(i) return sum(sum_mult) #return sum of list I am jus...
I am trying to solve this InterviewBit question https://www.interviewbit.com/problems/search-for-a-range/. My code for this seems to be working properly and it does give me the correct answers on my IDE and on all the sample test cases online but it gives me a TLE on the online judge. It runs in O(log n) time, just a v...
We are displaying two radio buttons in page. Click on Radio buttons, it will change background color. Is there any way to improve the quality of the code? html, body { width: 100%; height: 100%; margin: 0; padding: 0; text-align: center; } body { box-sizing: border-box; padding-top: 180px; backgro...
I'm new to C++ and while learning, I wrote a simple program that asks for a word, shuffle sthe characters and then asks another person to find the original word, given the shuffled letters. I would like to know what is right and wrong in this code, what and where can I improve. #include <iostream> void shuffle(std::st...
I have a function that checks two reference objects. They both have the same properties. The purpose of this method is to ensure that any non-null old values are not overwritten with null or empty values after an API call. I'd appreciate any feedback. evaluateEmptyValues: function(reference, originalReference) { v...
I've written a simple program that reads barcodes from a page and will ask the user to select one to use. I have a few methods that use the results of that form and I was wondering if there is a better/cleaner way to execute the following code: string barcode = ""; if (barcodes.Count > 1) { using (var form...
Basically, I've got a GUI where the user can select text files, enter in strings (that may or may not contain wildcards) and search those files for those strings. Currently, I take the user inputted string(s) and divide them into two groups: regularly searchable strings, and strings that have wildcards (either * for 1 ...