instruction
stringlengths
71
71.9k
Is there a better way of creating this terminal animation without having a series of conditional statements (i.e. if ... elif ... elif...)? import sys, time count = 100 i = 0 num = 0 def animation(): global num if num == 0: num += 1 return '[= ]' elif num == 1: num += 1 ...
I know i have some real problems with the following code (as others said). can you please help me to optimize it a little bit? Maybe some example of how to do it. (find the longest repeating substring with length between x and y) public static String longestDuplicate(String text, int x, int y) { String longest ...
For the sake of learning JavaScript better and getting used to the Google Chrome Extension API, I'm currently writing a little Chrome extension. To keep things simple and being able to make use of prototypal inheritance, I decided to write a little instantiation/inheritance helper before I get started. But as I am stil...
I'm trying to optimise my implementation of a static kd tree to perform orthogonal range searches in C++. My problem: The code performs slowly even for a small number of queries when the number of points is around 105. I've constructed the tree based on this (i.e, It's a static kd tree where the data is stored both in ...
Can anyone please tell which one is the more effective way to write C# code, among the two options below? Option A: internal static string GetLast3Years() { return (DateTime.Now.Year - 2).ToString() + "," + (DateTime.Now.Year - 1).ToString() + "," + DateTime.Now.Year.ToString(); } Or option B: internal static stri...
I'd like to find a way to do what this method does in a cleaner, less hacky looking way def self.create_from_person!(person) spi = new(:person => person, :provider => person.provider) spi.age_eligible_code = participant.age_eligible?(person) ? 1 : 2 spi.county_of_residence_code = participant.psu_county_el...
I'm working on a javascript intensive user-interface application. (At least it's intensive for me, it's my first serious javascript project). I have a few jquery functions going whenever a div is rolled over or mouseout. For example there are some divs which are draggable objects, and so when they are mouseovered, the ...
I'm currently changing some legacy code over to PDO. The below code works, but not 100%. I would like to know if it's best practice or if anything can be done better. //Database Array $config['db'] = array( 'host' => 'localhost', 'username' => 'root', 'password' => 'root', 'dbname' => 'local'); //New...
I've began to read the book Clean Code by Robert Martin. I've had a strong desire to learn how to write clear, easy-to-understand from other people. The ColorViewer application allows you to view the color in different formats. Application on GitHub.com ColorViewerActivity.java public class ColorViewerActivity extend...
I just put together the skeletons for a priority queue using a binary heap in racket/scheme. Using racket/scheme is all about the educational experience and I was wondering if anyone wants to critique and improve the code. Bug reports are welcome ;; priority queues operations on integer values (define (heap) (let (...
In PHP, I have a parent/child class and am using dependency container to load them. I am trying to use the same database connection on all of them without duplicating the object. I used $this->_db to pull data from the database in a child class method (and my class stores that in the property $this->_db->result). I th...
I decided to write an STL-style class as an exercise. I followed a tutorial of sorts that I found online, but I also made some modifications. I'd like to hear any criticisms you folks might have. Be harsh; I can take it. #ifndef CIRCULARDEQUE_HPP_ #define CIRCULARDEQUE_HPP_ #include <iterator> #include <stdexcept> #in...
I've built a small hooks class for adding some capabilities of basic plug-in functionality. Is there room for improvement? I am just beginning to learn OOP. I have two ways to manually add execution points and delete them: autoloading method for plugins in a specific folder method for execution defined('BASE_PATH')...
I'm writing a card game (Dominion) as a pet project. I'm new to C++ but not programming. A player has a deck, containing the hand and cards in play (tableau). Outside the player, there are piles of cards to buy from (supply piles). I want to display these objects (the hand, tableau and supply piles) on the screen. I ha...
After I found the Change Tracking feature in SQL Server, I thought that I would love to have this information in a stream. That lead me to RX, and Hot Observables. I did some reading and came up with this. I'm wondering if it could be improved. First is how I would use it, followed by the class that implements it: ...
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<ctype.h> #define MAX_FILE_LENGTH 500 // Gets the next line from the text file, returns the pointer to that line char* getLine(char* loc, FILE* fileStream); // Returns whether the given string contains the specified search...
I am trying to understand how genetic algorithms work. As with everything, I learn by attempting to write something on my own;however, my knowledge is very limited and I am not sure if I am doing this right. The purpose of this algorithm is to see how long it will take half of a herd to be infected by a disease if half...
I'm trying to learn Python by working my way through problems on the Project Euler website. I managed to solve problem #3, which is What is the largest prime factor of the number 600851475143 ? However, my code looks horrible. I'd really appreciate some advice from experienced Python programmers. import math import ...
I am trying to insert into a database using JDBC and each thread will be inserting into the database. I need to insert around 30-35 columns. I wrote a stored procedure that will UPSERT into those columns. The problem I am facing is that in the run() method, I have around 30 columns written over there for insertion. Is...
My program calculates the determinant of a matrix of any degree. If you really can't understand my comments or indentifiers please let me know. //;;MakeShift make element number 'ind' the head of list: (defun MakeShift (ind L buf) (if (= ind 1) (cons (car L) (append buf (cdr L))) (makeReplace (- ind 1) (cdr ...
I'm writing a dependency injection plugin for the Backbone javascript framework, and I'm not sure what the API for constructor argument injection should look like. Just for reference, Backbone objects are defined as follows: var LoginView = Backbone.View.extend({ //constructor initialize: function(options) { /...
I was thinking about a solution to store preferences and access to them in a most natural way. I came up with the solution below. My questions are: what do you think about the solution? Can it be improved (except maybe using macros)? Is it too complicated (to use)? And most important: does anyone know of a project whe...
This is the first program (that is not doing much basically), and I know usually you define classes in separate files. I just wanted to see if I got the syntax right, and the concept of using objects from the first chapter of the book. #import <Foundation/Foundation.h> //interface section @interface Watch: NSObject ...
I'm attempting to write a piece of code that is supposed to remove consecutive appearances of a string (not a single character) in a StringBuilder. It's extremely important that the method works well and does not remove or change anything that it shouldn't. Solid performance is a secondary requirement. for example: Inp...
I am trying to create an invert index structure in C++. An invert index, in this case, refers to image retrieval system, where each invert index refers to a numbers of "Patch ID". (simply called "ID" in the code) These IDs are basically for describing many kind of pixel gradient patches from all images in the database....
I have an MVC framework I've written. I'm trying to abstract out ASP.NET specific bits as well as make it more testable. Previously, I relied on HttpContext.Current in many places, which proves to be very unfriendly to unit testing. So, I started designing my own minimalistic interface for everything I'd need from ther...
I am working on a project in which I need to pass multiple arguments from the command line- Below is the use case I have- From the command line, I will be passing atleast four paramaters- noOfThreads, noOfTasks, startRange and tableName1, so if I am passing these four thing, then I need to store them in a variable and...
I have written a piece of code that finds common patterns in two strings. These patterns have to be in the same order, so for example "I am a person" and "A person I am" would only match "person". The code is crude, all characters, including whitespace and punctuation marks, receive the same treatment. The longest patt...
I've developed a code for a Hangman game and what I need help in is basically simplifying, correcting and removing parts of the code that are not needed (or there is an easier way to do it). I think there are parts where I could have done it easier but I do not know where they are. I would appreciate any/ all help and ...
I've written this module (using a tutorial on the web I can't find now to stop unusual requests from clients. It's working as I've tested it on a local system. Is the logic fine enough? Another problem is that it counts requests for non-aspx resources (images, css, ...), but it shouldn't. How can I filter request ...
My data is in this format: 龍舟 龙舟 [long2 zhou1] /dragon boat/imperial boat/\n And I want to return: ('龍舟', '龙舟', 'long2 zhou1', '/dragon boat/imperial boat/') In C I could do this in one line with sscanf, but I seem to be f̶a̶i̶l̶i̶n̶g̶ writing code like a schoolkid with Python: working = line.rstrip().split(" "...
I have two loops which I am using to create a file, if the clientID in the client loop is the same as the id in the valuation loop then create a row. Then if the month value is the same as the previous month value we need to add up the values. This all works fine but i was wondering if anyone can think of a better way?...
I'm on a high school robotics team and I'm trying to code a Xbox 360 controller so that it'll controller the motors with variable speed. So far it works alright, but where I'm quite the novice coder I'd like to have more experienced eyes peer at my code and see if they can find a better way, or more effective way to do...
So, my question is more of a 'best practices' question rather than a question with a particular aim. This is my current understanding of PHP factories and how to incorporate them into a project using PDOs and dependency injection. I'm pretty new at this and I still don't understand a lot about this subject. As such, I ...
I'm wondering if there is anything i'm overlooking in the code below. I've taken the Pi calculation example, simplified it and converted it to Akka 2.1. More specifically, i use the ask pattern to replace the Listener actor. So is this A proper and valid conversion? A reasonable approach? And is there a better appro...
I was trying to explain the mediator pattern to a new developer, and ended up writing a simple event mediator. Thoughts? EventMediator class EventMediator { private $events = array(); public function attach($event, Closure $callback) { if(!is_string($event)) throw new \InvalidArgumentException(); ...
I'm trying to see if there is a better way to design this. I have a class Animal that is inherited by Male and Female classes (Female class has an additional attribute). I also have a class called Habitat, an instance of each would contain any number of Animals including 0. class Animal: def __init__(self, life_sp...
There are plenty of ifs and elses, and someone else told me that using switch/case statements could really clean up the code. However, he didn't implement it for me, so I don't know what I should switch/case. Also take note that the if (!stricmp(argv[arg], "-vmf")) and if (!stricmp(argv[arg], "-bsp")) blocks are exactl...
I wrote this, and it has helped to avoid the 'Some exception weren't handled' problem. Is there something glaringly wrong with this that I might have missed? /// <summary> /// Handles any exceptions on this task, and executes action on specified scheduler. /// </summary> /// <param name="task">The task....
I have a requirement in my current project that will need a Prioritised Queue that supports the IObservable interface. Please notify me of any problems with the implementation that I currently have: ObservablePriorityQueue<T> public sealed class ObservablePriorityQueue<T> : IQueue<T>, IObservable<T> where T : IPrioriti...
I've implemented merge sort in Scala: object Lunch { def doMergeSortExample() = { val values:Array[Int] = List(5,11,8,4,2).toArray sort(values) printArray(values) } def sort(array:Array[Int]) { if (array.length > 1 ){ var firstArrayLength = (array.length/2) var first:Array[Int] = ar...
I think this is the simplest way to slugify urls. You have any contra-indication? function url_clean($str){ $str = iconv('utf-8', 'us-ascii//TRANSLIT', $str); $clean_str = preg_replace(array('/\'|\"/','/ /'),array('','-'),$str); return $clean_str; }
I've created a WPF program which can draw lines and circles on a canvas. It works well, but I don't think it's the best solution. How can I make it work better? How would you create this program? MainWindow class: public partial class MainWindow : Window { DrawCircle dc; DrawLine dl; public MainWind...
This is an HTML / JavaScript app for calculating someones body mass index. The app does conversion of metric to standard measurements and standard to metric. It outputs: BMI weight category ideal weight range for given height percentage over/under ideal weight index.html <?xml version="1.0" encoding="UTF-8" ?> <!DO...
I GET a HTML response from AJAX over cors and the response is a table. Each category has its title and sub elements. The title names vary quite a bit and are likely to change in the future. The sub elements in each title change almost on a daily basis, but the DOM structure doesn't. Is there a way I could get rid of th...
I was refactoring some code and found this: DateTime CurrentDateTime = System.now(); Datetime ESTDate = Datetime.newInstance(CurrentDateTime.year(),CurrentDateTime.month(),CurrentDateTime.day(),CurrentDateTime.hour(),CurrentDateTime.minute(),CurrentDateTime.second()); String myDateFormat = ESTDate.format('yyyy-MM-dd hh...
I've written a script using the Django ORM to store 'configuration settings' and interacting with the Google Drive API and another API. The script creates a base project folder and subfolders in Google Drive for a list of records, and posts links back to the source database. I'm a beginner in Python, so I'm not sure if...
For the m_listeners BlockingCollection<>, I know it's a bit hacky right now, but I'm not sure what to use instead (List<>, Dictionary<>, something else?). I want to be able to add/remove listeners at the same time as I may be broadcasting to those listeners without throwing null reference exceptions. For example add ...
I am new to javascript and want to make sure I am on the right track when playing a sound. Is there anything I should not be doing better or not be doing at all. Below is a simple function. <script language="javascript" type="text/javascript"> function playSound(soundfile) { if (navigator.userAgent.indexOf('Fire...
I am pulling multiple feeds from youtube that have a callback function which makes markup from each feed. They add that markup to a documentFragment stored in var data. When all the feeds have contributed what they should, a final callback runs. Each feed can deal with its own thumbnails and page menu, so it makes sens...
Sometimes "a" service does not respond and so we need to restart it. Usually it's a glitch in the network. We can have like 100 calls at the same time so the service cannot be restarted for 100 hundred times. The service is a Singleton. The command is called through a dispatcher, it's sync so different calls are execut...
I am working on project in which I need to display different colors on RGB led. I am using pwm to drive different colors on LED. My Pic is PIC24FJ64GA004 with which I am working on now. Basic concept of this project is to use switch to controls colors. Colors on RGB led will be according to days and month in year. For...
I am trying to insert into a database using JDBC and each thread will be inserting into the database. I need to insert into around 30-35 columns. I wrote a stored procedure that will UPSERT into those columns. The problem I am facing is, if you look at my run method, I have around 30 columns written over there for ins...
import java.util.Collections; import java.util.Iterator; import java.util.LinkedList; import java.util.List; class RemoveDuplicates { public static void main(String[] args) { LinkedList<Integer> list = new LinkedList<Integer>(); list.add(1); list.add(1); list.add(1); list.ad...
After being inspired by some MVC style design patterns, I have been trying to separate data from views in my code and move toward a more sensibly organized object based approach. (please, don't bother telling me that my code doesn't follow strict MVC pattern correctly, that is not my concern at this point!) All the dat...
I was recently asked to implement an interface for a job interview. the class has methods to add customers and movies, the customers can watch or like movies and add friends. there are methods to get recommendations for users. All public methods in SocialMoviesImpl were defined by the interface, so I could not change t...
Is there a cleaner/more efficient way to loop through the columns in EF implicitly than the way written below? static void Main(string[] args) { using (var db = new someDbContext()) { var query = from p in db.someTable select new { column1 = p.column1 ...
I'm making an image-downloading app that sets the image as the device wallpaper. For this I used the class: ImageDownloader.java This class has a function which accepts a URL and an ImageView. It downloads and assigns the image found at the URL to the ImageView using an AsyncTask class defined within. I managed to impl...
I'm new to scala and I'm noticing I have some repeating code in my controllers. I'm wondering if anyone can give some hints for traits and parameterization for eliminating duplicate code for basic crud operations on the web services - I'm still a little confused about how to use scala 'generics'/parameters. Don't mind ...
I've written a simple Python module that depends on watchdog to monitor for modified files, then runs various integration and build processes. I'm fairly new to Python, so I'd appreciate all criticism. For example of how I'm using the module see this. import sys, os, time, copy, logging from watchdog.observers import ...
I wrote it more for educational reasons and less as something that can compete with existing alternatives. But I enjoyed writing it and wish to get some feedback, JavaScript is my second language :) (I hope the main issue is lack of comments, but I wonder if there is anything else hairy about the code) Here is the mai...
I've been writing a collection of signal processing function optimized with SSE intrinsics (mostly for audio processing). Here is a linear interpolation function I wrote. It works well and is quite fast (much better than straight lerp), but I'm using the full 8 registers available, and I'm wondering if there's somethin...
This may be a poor title name. So I'm basing what I did from this website. The idea is though that I have made a lot of work to a Service Object for a OPOS MSR device. (useless detail) One of the DirectIO calls gets some data off of a card and was supposed to return a byte array. That ended up being a big mistake becau...
I'm currently converting a CSS 960 fluid grid to SASS. How can I improve my current implementation? My column classes .two.columns are getting a bit unruly. Is there a better way to write them? // Variables $width: 960px; .container { position: relative; width: $width; margin: 0 auto; padding: 0; ...
I have an Apps Script that is supposed to run through the spreadsheet, and if a company belongs to a certain country (there's a country column), set the value of the region row to something (e.g. Africa). The spreadsheet has more than 8500 rows and this is the dirty code I have. It's working, but if there's a better w...
I have a web scraping application that contains long string literals for the URLs. What would be the best way to present them (keeping in mind that I would like to adhere to PEP-8. URL = "https://www.targetwebsite.co.foo/bar-app/abc/hello/world/AndThen?whatever=123&this=456&theother=789&youget=the_idea" br = mechanize....
This is a Python module I have just finished writing which I plan to use at Project Euler. Please let me know how I have done and what I could do to improve it. # This constant is more or less an overestimate for the range in which # n primes exist. Generally 100 primes exist well within 100 * CONST numbers. CONST = ...
The code does seem a bit repetitive in places such as the parenturlscraper module and the childurlscraper module. Does anyone have any recommendations for improving my code and condensing it a little? In essence, the code scrapes this site and populates a table with details about each crash, geocoding the location data...
I have to define a lot of values for a Python library, each of which will represent a statistical distribution (like the Normal distribution or Uniform distribution). They will contain describing features of the distribution (like the mean, variance, etc). After a distribution is created it doesn't really make sense to...
Basically, I did an object (using hibernate) with a field called sorting_order. This field needs to be unique and I wish to swap two object by one. So one element has to be after or before the current element to be able to move. My object can only move by one up or down. I came up with this code, but I was wondering if...
I wanted to be able to consistently label an arbitrary number of objects on my site. It's pretty simple, but I if there's a more clever way... // Usage: // ColorTable.getColor('my link name'); ColorTable = { '_colors' : [ '#F4BB2E', '#2DE656', '#66CCFF', '#6666FF', '#CC66FF', '#FF6FCF', '#...
So I made a socket communication library. And a part of it is IConnection public enum ConnectionState { NotConnected, Connecting, Connected, Authenticated, Disconnecting, Disconnected } public interface IConnection { ConnectionState State { get; } event Action Connected; event Action Disconnected; ...
i created a database class from a good tutorial and wanted to put it up here so it would get in some search results. it took me about 2 days to find it. also i added a few custom functions to it.. here it is :P and if there is something that can be done better or more proficiently please feel free to let me know. confi...
I just started to learn Objective C with Programming in Objective C by Stephen G. Kochanand and I would love to get your feedback to see if I'm getting OOP concept with Objective-C right. GraphicObject.h #import <Foundation/Foundation.h> @interface GraphicObject : NSObject { int fillColor; int lineColor; ...
I've tried to write a bash script that gives me a general overview of the status of git repos I have cloned/created. It's not meant to replace git status by any means, but give an overview of several repos. Keep in mind I'm not the most knowledgeable about bash scripting AND git, so I imagine there is a better way to ...
I am doing web apps, mostly single page apps. So i have to give absolute and fixed positioning a lot via css. For Example, consider this page layout: <html> <div class="app-header"> </div> <div class="main-app-area"> <!-- app contains four pages --> <div class="app-page" style="visibility: visible"></div> ...
To provide some background context, I'm implementing a web-based solution (Java, Spring, Hibernate) that allows the creation/authoring of task-centric workflow documents. Basically a workflow provides an ordered collection of tasks (and related content) for a user to step through. One of the available task types is a ...
This should tell me whether the product is taxable or imported. Name should indicate if the product is imported or certain keywords should tell that the product is non-taxable (chocolates, book, pills). Could you please review the following class products? class Product NON_TAXABLE = [/chocolates/, /book/, /pills/] ...
I came across polymorphism in the book that I'm reading and decided to do a little experiment. Essentially what I did was to create a base class called Asset and two subclasses that derive from Asset, called Property and Stock. I created instances of these two types and passed them to this function: public static void ...
I am new to node.js and asynchronous programming and this is my first small project to learn it. I have written a small Telnet chat server and the program works but I want to know if this is the correct way to write programs in node.js (asynchronous programming model). var tcp = require('net'); var Server = tcp.createS...
As part of a larger web app we are producing, I was asked to help build functionality to tie a page's shopping cart into localStorage for persistence. What follows are the three functions that I wrote that produce a JSON representation of the cart, and stores it in LS. As far as I can tell, it all works great. I'm cur...
I am leaning Haskell and decided to do the following lab assignment from CS240h: Functional Systems in Haskell. I welcome any advice on more idiomatic coding style and performance tips. Notes: I chose Data.HashTable on the assumption that it would be faster than Data.Map as the number of entries increase. Edit: this ...
I have written a Backbone View (javascript) for a component called "twist-panel". A twist panel is basically a card flip, it has a front and back side, and can flip to the back and to the front. Here is the code: var TwistPanel = Backbone.View.extend({ initialize: function() { this.$front = this.$el.find('.twist-...
We need to select a model reference from a view. To do this we need to add a dropdownlistfor. This is based on a selectlist containing database models. passing selectlists by viewbag This solves our problem, but we do not like using ViewBag: public ActionResult Create() { ViewBag.SomeModels = new SelectList...
I am trying to convert myself from using mysql extension to using PDO, with that being said I was curious if I am going about this the right way. I have a custom logging system that I built I am wondering if the way I implemented this would work or not. I am planning on duplicating the main functions of PDO and doing t...
I'm using a lightweight jQuery popup plugin called 'bPopup'. I'm using it on my website at the moment to load multiple popup windows when clicked. I was recently told that my code was inefficient as I was loading multiple popups with multiple JavaScript 'listeners': <script type="text/javascript"> ;(function($) { $(fun...
What is the best way to DRY this code up? class NotificationsController < ApplicationController before_filter :load_user def unsubscribe if @facebook_admin && @facebook_admin.auth_key == params[:auth_key] @facebook_admin.update_notification_settings(params[:type] => false) elsif @user && @user.auth_k...
I've been using JavaScript for some time now, but mostly just jQuery to prettify web pages. I've started doing some serious development with it in the last year. So, I want to make sure I'm not doing something stupid. I found a post about the module pattern, and it makes sense to me, so I'm going to attempt to use it...
I'm making a comment box using a contenteditable div, but I want to remove formatting from text a user might copy/paste into it (also no CTRL+B or CTRL+I shortcuts allowed either). Only "approved" formatting ("tagged" names, URLs, etc). Originally I went the regex route but was informed regex + html is not a good appro...
I'm writing the markup for Corpora - A Business Theme: And started from the header section: Here is my markup for it: <header> <div class="topHeaderPart"> <a href="#" class="logo"> <img src="images/logo.png" alt="Corpora - A Business Theme"> </a> <ul class="primaryContacts"> ...
So the task is that a string being passed to one of my methods looks like this <DIV><GKY><UID><END> it is generated this way from another program, so it will always have that format. Now to sum up how it works is like this.. This is to represent 3 byte arrays a DIV key (short for diversification) a Guest Key (GKY), and...
As the title says, I'm trying to make my code less horrible looking! For a university practical, I've to use recursive methods to return the even references in a collection of Integer objects stored in an ArrayList. For example, if the input is [1, 2, 3, 4], my method should return [1, 3] (i.e. elements 0 and 2, the ev...
So I am working on a LMS project and I have a User class that will handle everything about the user such as registration, login, showing list of courses that they are subscribed to, etc. User.class.php class User { protected $_firstName; protected $_lastName; protected $_email; protected $_username; ...
I wanted to write a multi-threaded sort, but unfortunately I don't know much about threads, especially in C++11. I managed to make something work, but I would be highly surprised if it was the best way to do it. template<class T> void ___sort(T *data, int len, int nbThreads){ if(nbThreads<2){ std::sort(data...
How can I make my model DRY and KISS? class Rating < ActiveRecord::Base attr_accessible :item_type, :item_id, :rating, :voters_up, :voters_down serialize :voters_up, Hash serialize :voters_down, Hash belongs_to :ranks, :polymorphic => true def self.up(item, user, iteration = 1) @rating = Rating.where(ite...
The idea is that i want any size string to put the corresponding hex value into a byte array. I've seen a million ways to do it. Some of them didn't look to clean. My needs are speed over memory, so chose to try and implement a lookup table. Tell me what you think const BYTE HEX[0x80] = //This is the ASCII table in num...
I'm trying to write a JMS Consumer using Akka-Camel. For now, I'm using FFMQ as a JMS server. I want to listen on the JMS queue myqueue. Creating the JMS consumer actor is quite straightforward: import akka.camel.{CamelMessage, Consumer} import akka.event.Logging class JMSConsumer extends Consumer { val log = Loggi...
Background Would like to create a two-key map that is fairly generic. In the existing system, there are a number of ways to name a parameter for a report. Rather than re-writing each report (too much effort), we'd like to simply map the old parameter names to new names. For example, old names might include STARTDATE, F...
Follow on from this question This is a follow on question from one I asked a few days ago. I am making (or rather have made) a recursive method that takes a list of ArrayList objects as its parameters. There can be any number of them, but let's pretend there are five. They are numbered from 1 to 5, so the Array contain...
So I took a stab at this task to begin learning common lisp. The idea is that you give it a written representation of a number such as "three thousand and forty nine" and it will output 3049. I was looking for some input on my lisp and where I'm being daft or even what parts are good. So without further a due, my code...