instruction
stringlengths
71
71.9k
I wanted to know if my A* algorithm is well-implemented and if it could be optimized in any way. #include <iostream> #include <cmath> #include <list> #include <vector> #include <algorithm> class Vector2 { int x, y; public: Vector2(int _x, int _y) : x(_x), y(_y) {} Vector2() = default; Vector2 operator ...
In my version of the Partition Problem, I have a set of weights that are all powers of three (1, 3, 9, 27 etc.). I only have one of each weight. There is some object (the weight of this object is input) on the left side of a scale and I need to add weights to either side to balance it. I can choose not to use a weight ...
This question is a follow-up to this question. This is a year later, but it has the same context: I wanted new reviews for the updated code from the original question, but this time I wrote the code from scratch. I did this, not because the project is of any value or interest to me any more, as much as I wanted to comp...
My code reads a .csv file, looks for a couple values to create its key, and then wraps up the data based on a few business rules I have. I'm trying to learn "the right way", so I'd really appreciate some tips and hints. import csv import sys # add DictReader with open(sys.argv[1], 'rbU') as csvinfile: myreader = c...
NOTE: I'm only including the snake class (only one file) here because the rest of the code doesn't need reviewing. If you need to see the complete code for whatever reason, it is available on GitHub here (unless I delete it). I decided, since I never seem to finish my own original projects, that I would create a Snake ...
I need to test a specialized input stream class that takes input from a TCP/IP network connection. I particularly need to ensure that the blocking and availability behavior is correct. To help me with this, I wrote this "white box" input stream so that test scenarios can provide the necessary test conditions to exercis...
Given a strings like 'param1.param2.param3' and a value that should be set on the last parameter, is there a better way than the following to dynamically create an Object and reuse the function to create more parameters on the Object, some which may share a parent parameter? This function also assumes every parameter o...
This is a follow-on to my previous question: Enforcing set environment variables While learning more about JavaScript, node, and the bluemix environment, I have been using the loading of process environment variables as a starting point for understanding how the systems work. This part of the system checks to see if a ...
I decided that I wanted to add some spice to my bland looking city maps, so I created a couple of algorithms to add water to the map. I also added a "marshlands" setting that would just randomly sprinkle water throughout the map. Here is an example of the river generation: Here is the world generation method in its en...
I am learning how to implement Bootstrap modals in AngularJS. I can do it when the modal code (the actual popup window code) is on the main page, but I want to be able to display external files so that my SPA isn't super-cluttered. I am implementing this on a much larger scale, but for simplicity's sake I'll keep the ...
I have worker code that looks like this: class VerificationWorker include Sidekiq::Worker def perform(panel_id) members = MembersAPI.members.fetch members.each do |member| survey = Survey.find_by(number: member.data_number) next if survey.nil? if survey.id != member.data['survey_id'] ...
Any suggestions, corrections and advice would be very nice and much appreciated. public class Download { public event EventHandler<DownloadStatusChangedEventArgs> DownloadStatusChanged; public event EventHandler<DownloadProgressChangedEventArgs> DownloadProgressChanged; public event EventHandler DownloadCom...
The first revision is available here and the code is available on GitHub. I modified the method reversePairs and added mSize to convert my singly linked list to an array. Now my main question is the following: do I test all possible types of input for this problem? SinglyLinkedList package com.reversell; public class...
I'm working on a class to parse RSS feeds using SyndicationFeed. (related to Downloading data using HttpClient). I'm trying to write this so it can be unit-tested, but there's an awful lot of boring setup boilerplate before I get to the important stuff. My data source sometimes sends invalid RSS XML according to XmlRe...
I wrote a function that generates an image like: The function is as follows: /** Draws a texture wherein are spots of "heat" where a pixel's spotColor is of highest alpha, fading as distance from heat * spots increases. * @param width * @param height * @param spotColor The color of the spots, i...
I have made a basic program using AngularJS that displays data from a JSON file, and filters it according to the user's selection (specifically FIFA 15 chemistry cards). I did plenty of CSS work to it; mainly to test myself as I have barely used it. I have done some (minimal) work to make certain aspects respond to dif...
I had perceived an uptick in new reviewers around here, and I wanted to see if the data backed that observation up. It's been a while since I've written any SQL, so this was a nice little exercise in using the Stack Exchange Data Explorer. The query finds the first question and first answer from every user, and then gr...
I was practicing working with classes and the static property included with them and came up with a simple ID counter and max number list. I also added a quick debug error throw if it goes over. Here's what I came up with: #include <iostream> // A class that has static variables to save information for the ID's of its...
I recently had an interview question: Write a method that counts all comments in a single external file. It was a timed question and I wanted to know if this is the best way to accomplish the task. I'm also open to improvements, advice, etc. (I didn't pass the interview.) class Program { static void Main(string[]...
I'm an advanced beginner Haskell programmer. I implemented a set data type in Haskell and I wanted to find out if I made correct choices when writing it. Would there be a way to improve some of the algorithms like intersection etc. data SET a = E | Add(a, SET a) deriving (Eq, Ord, Read, Show) --test data setx = listT...
This is a programming challenge I set for myself a while back to create an AI that starts with no knowledge of anything whatsoever, and learns as you talk to it. (It can learn stuff like your name, how to say hello, goodbye, etc.) I tried to use the least amount of hard-coded responses as possible. I'm happy that it wo...
I am building a Metro-themed WPF application with MVVM approach using Prism and MahApps.Metro. I have to show a custom dialog from view model. Currently, I am using InteractionRequest and a custom TriggerAction to accomplish it, but I don't know if this is a good way. MainWindow.xaml <Controls:MetroWindow x:Class="...
I have a scenario to find the CategoryId which all have the mentioned Mode values. The schema of the table ModeTester: CREATE TABLE ModeTester ( ModeId INT IDENTITY(1, 1) NOT NULL, CategoryId INT, Mode CHAR(1), ModeValue VARCHAR (20) ) The dummy values: INSERT INTO ModeTester (CategoryI...
I'm learning about algorithms and have been recently experimenting with insertion sort via recursion in Python. My code works fine, but I was wondering if there are any possible improvements that can be made. I am especially interested in ways to reduce the actual content of the code (i.e. make it shorter) or improve ...
Given a list of numeric intervals in the form of (a,b), where a and b are integers, it finds a set of disjoint intervals that cover the same numbers by splitting the original intervals at the points where they intersect. For example: disjoint [(1,2),(1,3),(1,3),(30,31)] gives [(1,2),(2,3),(30,31)]. Please help me make...
Is there a way to make my code simpler? Given three int values, (a, b, c) return their sum. However, if any of the values is a teen -- in the range 13..19 inclusive -- then that value counts as 0, except 15 and 16 do not count as a teens. Write a separate helper (def fix_teen(n)) that takes in an int value and ...
The aim of this class is to set rules for including navigational properties on Configuration level and then apply where needed in the code. I've decided to store expressions in the list for different entities and then invoke System.Data.Entity.QueryableExtensions Include method to get proper JOINs for my navigational p...
I'm trying to work out a way to create a combination of OR and AND filters in RxJava. Here's what I've done so far: public interface IFilter<T> extends Transformer<T, Boolean> {} public class OrFilter implements IFilter<T> { private final Observable<IFilter<T>> filters; public OrFilter(Iterable<IFilter<T>>...
I have been programming a maths quiz that can be used for teachers and I have have been trying to make the code as short as possible so it is easier to understand. If there is any way I could make it more concise, please tell me and explain the programming behind it. import sys import random def get_bool_input(prompt=...
I have been programming a maths quiz that can be used for teachers an I have have been trying to make the code as short as possible so it is easier to understand. If you have seen my previous post you maybe be wondering why I am re-posting as I already have received feedback, when trying to act on this feedback I seeme...
I have this piece of code which given a list returns another list which combines every element with every other element (without repetitions) using a given function as a combiner. I came up with three different version (2 of them listed below, fastest to slowest), and now I'm asking for help to optimize it/them even fu...
Parent has list of Children. I only have access to the list of children. I need to get list of unique parents from the List of Children. Is there a better/faster/more efficient way of doing it than this? var temp = new HashSet<Parent>( (from child in program.Children sele...
Given a C# string which is a set of hexadecimal numbers such as: string HexString = "202048656c6c6f20576f726c64313233212020"; Where those hexadecimal numbers represent the ASCII text: " Hello World123! " I need to convert the HexString to a String and I have the following code which works, but looks so excessive! s...
I have a utility called ZipFileCombiner that combines zip archives into a single archive. Part of the implementation is using an Enum called CollisionStrategy to deal with entry collisions. It's a nested Enum. It seems kind of ugly to me. It feels like embedding that much code within the Enum seems wrong. I could cr...
See the next iteration. I designed and implemented this adaptive heap sort in Java. It works as follows: Copy the range to be sorted into auxiliary array \$A\$ Create an empty run heap \$H\$ Scan \$A\$ from beginning to the end and whenever we have counted a longest possible run (a run is a longest ascending or descen...
I've been reading Item 6 from Scott Meyers' Effective Modern C++ and noticed that he mentioned a technique called expression templates. I've decided to give it a try and implemented a vector that supports addition and subtraction: #include <iostream> #include <vector> template<typename T> class Vec { public: std::...
With the help of some nice folks at Stack Overflow, I wrote an algorithm that will give a user three buttons: option a neither option b Clicking on a button will add one to the score of a object, and it will systematically go through each match-up to get an equal amount of questions for each character. Here's the meat ...
I feel like there must be a better way to do the following. I would really appreciate any feedback/pointers so that I can improve my code and skills (or lack thereof!). The goal is to allow users to query our imapala database using a python script, so that they don't have to learn SQL. I'd like to take the following ...
Lately, I've been part of a team working on a utility library for iOS called Thundercats (on Github). We're about to start working on some changes and upgrades in preparation for a 2.0 release, so we figured it might be a good time to get some of our code publicly reviewed. The library is written in Objective-C and is...
A few years ago there was a need to add a FIFO queue between 2 threads into my project. At that time I've got some interesting idea how to do that without any atomics and locks. (There was a discussion about this algorithm but it is in Russian.) The idea is the following: We have 2 threads: writer and reader. Queue cla...
I have a serial device (RS232) from which I am requesting (binary) data. This interface answers with a sequence of 5 bytes, or 17 bytes when it has some new data. I figured out, that I have to turn the RTS pin of before sending, and turn it on to receive. But the problem is, that in 1 of around 30 cases I receive only ...
Over the past couple of days I have been working on a super-basic text editor with Tkinter. It can: Open new files Open files (general) Save files Obviously you can edit any file you open or make. This is very similar to this question, though I did not see that until I checked for duplicates of this question. I did n...
I have written this code for the question: Finding k largest (or smallest) elements in an array My approach uses a temporary array. Please suggest any improvements for readability or better performance. public static void kLargest(int[] array, int k){ if(k < 0 || k > array.length){ return; } ...
I am trying to find the number of string pairs in an array that are palindromes. import java.io.BufferedReader; import java.io.InputStreamReader; class TestClass { public static void main(String args[] ) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line =...
I'm developing a Go REST service that uses JWT (JSON Web Tokens) for authentication. I've written a JWTHandler which validates the token using a Validation Handler. If validation succeeds, the request is passed on to a Token Handler. If the request fails, it is passed to an Error handler. All three of these handlers a...
The following description is taken from CodeChef.com's Lapindrome problem. Lapindrome is defined as a string which when split in the middle, gives two halves having the same characters and same frequency of each character. If there are odd number of characters in the string, we ignore the middle character and check fo...
Here is a snippet from my python script where I am performing: a dictionary lookup a cartesian multiplication of a list of len=500 against a list of len=60, calculating a cumulative addition for each multiplcation combination repeat this down a 20,000 rows This is slowing things way down and making it hard to debug w...
I set myself the task to calculate the average of a list, but with two conditions: negative numbers are ignored numbers greater than 100 are counted as if they were 100 So the "skewed" average of the list '(1 -3 42 297 14) should be (1 + 42 + 100 + 14) / 4 (157/4). I wrote 2 functions that do that. Please review and ...
Here is my solution for Project Euler Problem 42, which is described in the following: The \$n^{th}\$ term of the sequence of triangle numbers is given by, \$t_n = ½n(n+1)\$; so the first ten triangle numbers are: \$1, 3, 6, 10, 15, 21, 28, 36, 45, 55, \ldots\$ By converting each letter in a word to a number correspon...
I want to perform mathematical operations on a range of values, where zeros should be ignored. This means that multiplication by zero does not result in zero but returns the first operand and likewise (\$5x0=5\$), division by zero does not throw an ArithmeticException but returns the first operand (\$5/0=5\$). I would...
I saw this interview question in the book Cracking the Coding Interview: Implement an algorithm to determine if a string has all unique characters The authors solution uses bit-shifting for a pretty efficient solution. I wanted to give it a shot to discover some new things and practice some. I'd like for this to be...
Is there a way to make my code simpler/more Pythonic? Given three int values (a, b, c), return True if one of b or c is "close" (differing from a by at most 1), while the other is "far", differing from both other values by 2 or more. Note: abs(num) computes the absolute value of a number. close_far(1, 2, 10) → ...
Could someone kindly have a look at the recursive merge sort below and let me know if there are any improvements? I'm mainly interested in either improving the code speed or making the code shorter. def mergesort(alist): if len(alist) > 1: mid = len(alist)/2 left = alist[:mid] right = alist[...
I have some code to accomplish the objective of finding out which user has made the most progress. Progress is measured in integer values, the higher the better. SubmittedAnswers consist of among others a int UserId and a int Progress. The answers variable consist of a list of SubmittedAnswers as described above. To fi...
I am writing my own wrapper for PostgreSQL (but it can be used for other engines too). I am using this desgin: PSQLPreparedStatement st("SELECT ? FROM ? WHERE name = '? xx' AND surname = 'xx ? xx';"); st.SetValue(0, "*"); st.SetValue(1, "test_table"); st.Prepare(); st.SetValue(0, "name"); st.Prepare(); PostgreSQLWrap...
I'm making a Mario clone in PyGame and I am writing a function that, after releasing the left and right button while Mario is moving horizontally, slows him down until he is at rest. As of right now, the code I am using is functional and works the way it should. Though, I am not sure if there is a way I can write the f...
Given an unique string that represents a sequence of characters, the class should implement three methods (getNextChar, getNextString and the genSequence generator). How it works We give a sequence of characters. For example: "abc" We give a starting string. For example: "a" The generator yields the following strings ...
I made this Renderer class recently, to simplify the user interface of my library's API. I would like to ask advice about the move semantics (copy constructor, std::unique_ptr, ...), or any other things you can point out to improve my code. As you can see, I take in parameters in RenderObject in the form of a pointer. ...
Since I posted my first version of the spelling corrector here, I've been working on improving it a little in my free time. I've also gone ahead and put the project up on Github so that others can now make contributions to the project if they wish to do so. checkmate.c: #include <stdio.h> #include <stdlib.h> #include ...
Integer permutation using Heap's algorithm: import java.util.Arrays; public class IntegerPermutation { private static void swap(Integer[] integerArray, int i, int j) { Integer temp = integerArray[i]; integerArray[i] = integerArray[j]; integerArray[j] = temp; } private static void ...
I wrote a little script that asks the user to choose a number between the 0 and 9. Wile he/she is entering a choice, the program tells him/her if the number is too high and too low. Nothing fancy, just a couple of while and ifs. It's very ugly and has imperative code with mixed responsibilities. I was wondering if ther...
I have coded binary search in shell, just for practice. Input Input data is already sorted set of numbers streamed to the script. $1 is the sought number. for i in {1..1000000}; do echo $RANDOM done | sort -n | ./binsearch.ksh 10 Code I use ksh as the fastest shell against bash, zsh and other bash clones, and as a...
This is the code from my answer to a another CR question. My goal was to provide a fast and simple computation and I'm rather unsatisfied with it. It's maybe 10 times faster than the original, but this may be still too slow for bigger displays and/or weaker devices. I'm mostly interested in performance improvements, i...
How is this? Any ways to improve? public void DownloadPDF(Uri uri) { downloadProgress.setVisibility(View.VISIBLE); downloadComplete.setVisibility(View.INVISIBLE); openFile.setText("Wait..."); // My button openFile.setEnabled(false); if (uri != null) { DownloadManager.Request request = new Do...
I've refactored my previous inventory system, and added a few features like removing items from the Inventory class, easily obtaining the current selected item through Inventory.GetSelectedItem, and some things have been renamed as well. My concerns are once again: Is this the correct usage of F#'s type/class system? ...
Using the following HTML: <input type="date" value="2015-07-26" name="startdate"> <input type="date" value="2015-07-29" name="enddate"> First, the JS calculates the number of days between two dates: var oneDay = 24*60*60*1000; // hours*minutes*seconds*milliseconds var start = document.querySelector('[name="startdate"]...
Given a set of ranges with lower bound and upper bound, I need to combine these ranges to produce minimum number of ranges which will cover all the values in the original set and nothing else. Example 1: Input: [100, 200], [120-170],[210 - 230] Output: [100-200], [210-230] Example 2: Input: [100, 200], [120-210],[21...
This is basically a logger which I use/wrote. It has convenient features like including one-line stack traces with print statements, making the text easier to find, and piping all output to either standard out or standard error to make it so that no print statements will be out of order. This is part of my LogAppTester...
I bring this code review plea over from suggestions from SO. I've made the suggested edits from that thread, except I kept one sys.exit() call because I was having trouble exiting otherwise. Overall, the code works as desired, and I'm looking for advice on how I can make it even cleaner. import time import sys done = ...
I'm completely aware that I'm not using NIO, but this is my first polished C project. All criticism is welcome, if I'm doing something wrong, I want to nip it in the bud before I'm used to it. /* * TCPTunnel.c * * Created on: Jul 25, 2015 * Author: javaprophet */ #include <stdio.h> #include <stdlib.h> #inclu...
There have been a lot of calculators lately. It seems like this community challenge all over again, I didn't make a proper one then, so I'm joining the calculatrain now. Building from the lessons learned from a preceding far simpler calculator. The goal was to encompass corner cases that are otherwise easy to miss. I'...
I have this (simple) data structure that maintains multiple LIFO stacks. Each such stack is assigned a priority. The less is the value of a priority key, the higher the priority. Pushing operation requires the element to push and its priority key. Whenever popping the queue, it removes the most recently added element o...
Knowing my solution ... Return True if the given string contains an appearance of "xyz" where the xyz is not directly preceeded by a period (.). So "xxyz" counts but "x.xyz" does not. xyz_there('abcxyz') → True xyz_there('abc.xyz') → False xyz_there('xyz.abc') → True def xyz_there(str): return str.count("...
I am trying to recognize a sentence that I have read through optical character recognition software. This code will eventually run on a Raspberry Pi. I know for certain that it's meant to be one of a few thousand sentences which I have written down in a file (sentencelist.txt), but the character recognition has messed ...
Is there a way to make my code more concise? Given 3 int values, a b c, return their sum. However, if one of the values is 13 then it does not count towards the sum and values to its right do not count. So for example, if b is 13, then both b and c do not count. lucky_sum(1, 2, 3) → 6 lucky_sum(1, 2, 13) → 3 ...
Here is the source of the question. Revision 1. Revision 2. When I started the second round of code review, I wanted to make sure that I had included all the possible input types. However, I received many useful suggestions from @200_success. I took some time to learn them, and now I want to post my code again. In thi...
I'm trying to solve this question on a contest programming judge. Description of the problem: There are N birds in a forest, each in their respective tree. There are N tired crows in this forest, and they wish to land in different trees as soon as possible (crows are extremely quarrelsome and they can't share the same...
I'm reading Head First Design Patterns and I'm currently reading about the observer pattern. Is what I produced correct? #include <iostream> #include <string> #include <vector> #include <algorithm> class ObserverInterface { public: virtual void update(std::string message) = 0; }; class concreteObserver : Observe...
I was in need to sort Colors, so the first thing that I tried was this: Arrays.sort(new javafx.scene.paint.Color[] {Color.ALICEBLUE},Color.AZURE,Color.BLUEVIOLET,Color.AQUA,...); But unfortunately Arrays.Sort is not compatible with javafx.scene.paint.Color, so I ended up with this: public static void main(String[] arg...
This uses HTML5 data attributes to load the image according to the screen width. For example, for laptops. it loads only laptop-sized images. saving bandwidth and optimizing speed. Live example //---------------------------Setting ViewPort Widths-----------------------// var sSize=768; // High End Mobile Phones var...
The purpose of this code is to allow to add functions to a queue, that will execute them sequentially. With this in mind, it also allows to execute them with a defined delay, to prevent them from blocking the browser. (function(window, undefined){ 'use strict'; var queue = []; var running = false; var s...
I've been learning Java for a month now using programmingbydoing.com in addition with reading the Java reference. I've had very very basic programming experience and I'm trying to improve my skills. These assignments are my first large projects that I've attempted. I attempted an address book twice. The first time I ...
I made a script in JavaScript to calculate how long it takes until a certain date. Do you find it user-friendly enough? Is the code correct? var object = "object" function formatDate(date) { // get the date in proper format var d = new Date(date), month = '' + (d.getMonth() + 1), day = '' + d.getDate(), yea...
I have been thinking of a sql-injection free implementation in dynamic languages. Here's what I came with. All the code was written just for fun and learning purposes. I would like to share it and get some feedback about it. Mainly about performance, efficiency and usability. All the information you need is directly wr...
I am looking to optimize the performance of a big data parsing problem I have using Python. The example data I show are segments of whole genome DNA sequence alignments for six primate species. Each file contains multiple segments with the following format: <MULTI-LINE HEADER> # number of header lines mirrors number o...
The rubberduck project has reached a turning point. The core features are implemented (except the SmartIndenter embedding - we're keeping that for 2.0), the next few releases will probably just build on the architecture in place. One of the biggest architectural issues, is tight coupling, with dependencies being new'd ...
Is there a better way to calculate the download speed than what I'm currently doing now? Are there any suggestions on improving the updated code? Pure version: using System; using System.Diagnostics; using System.IO; using System.Net; using System.Threading; namespace Downloader { public interface ILogger { ...
I start coding a simple application: I transform markdown files in folders into documentation. My architecture is very flat. My code looks like a series of unit function called one after the other. def main(): config = get_user_config(os.getcwd()) sources_dir = config['sources_dir'] for root, dirnames, file...
I'm not sure if this code is industry-standard or not. Please review it and let me know if any improvement is required. class Node(object): def __init__(self,data,next): self.data=data self.next=next class getLinkRest(): head = None tail= None def insert(self,data): node=N...
I'm getting my feet wet in embedded development, and like all those before me, my first task was to make an LED blink. I went a bit further than that and made a "runner" that lights up each led from 0 to 7 in sequence. The sequence begins as soon as the board is powered on. You can see it in action here. I'm using an A...
Can I make this: if (oneFour == 1 || oneFour == 2 || oneFour == 3 || oneFour == 4) shorter, especially if I'm gonna need a wider range of integers? Do I need to use a string _warning twice like I did? static string _warning = "Please, enter a number from 1 to 4!"; static int oneToFour() { int oneFour = 0; ...
In response to another recent question I mentioned that one mechanism to avoid runtime overhead for creating a data structure was to create it at compile time and use it directly. Since there was some interest in that concept, I thought I would write code to show how that might be done and submit it for review here. T...
I want my generator function to raise as soon as it can. If I make it yield the elements directly, then the KeyError won't happen until iteration begins. Is the following code the best I can do? def cluster_terminals(self, key): """ Deals with forwarding. """ return_list = self.cluster_map[key] de...
I'm developing a system in which users can upload their .doc file and the system will check whether the file contains certain words, and the system will tell the users whether their doc file falls under 'Sustainability' category. The system will find any word in doc file and match it with the keyword that have been pre...
This is a challenge from codeeval Write a program which determines the Mth to the last element in a list. Input sample: The first argument is a path to a file. The file contains the series of space delimited characters followed by an integer. The integer represents an index in the list (1-based), one per line. For exa...
This is a question about best practices. I have a project I am building and I have the following base Exception class: Namespace Project; class Exception extends \Exception{ //=============== BASE EXCEPTIONS 0 - 1000 ===============// /** * placeholder for unknown exeptions - the default type * @var...
This currently works properly, but just takes too long. Some of the functions in it are necessary and need to remain, such as resizing, and double saves. But it probably has room for improvement. I just need it to post image as it does, but faster. <?php ini_set('memory_limit', '-1'); $target_dir = ""; $target_fil...
I am given a string containing the possible characters of : 0, 1, and ?, iterating over possibilities, replacing the wildcard ? with either 0 or 1. For example; given "1?00?101", the outcome would be: ["10000101", "10001101", "11000101", "11001101"]. My code seems to work, I tested with two wildcards and three wildcar...
Overview: Here's the look of my form. In this example, I have a form that allows dynamically adding fields in each category. Like, I can add multiple attractions like 5 attractions, same goes for Featured artists, so basically I can add an infinite set of data per category in this form. So after submitting, all those ...
I am no expert in C#, the opposite really, I just wanted an overall review on my UserInfo class that gets user information from a database using MySQL. I was also wondering if it is a good idea to really process the data in the way I did, getting everything from the database, even the things that aren't needed. But I t...