instruction
stringlengths
71
71.9k
I have created a connect four game between a bot and a player. It was quite a bit of a challenge since I wasn't too fond of the minmax algorithm until now. I know there's always room for improvement and I am wondering if someone can tell me if my code is up to standards, i.e. better solutions etc. Please feel free to s...
std::string time_string; if ( time_t_var > 0 ) { time_string = boost::posix_time::to_iso_extended_string(boost::posix_time::from_time_t(time_t_var)); boost::replace_all(time_string , "T" , " "); } I have the above to get a time_t to a string in the format Y:M:D H:M:S or simply a blank string in the i...
I'm designing and developing wizard-like app for populating the database I created with data from different sources. It's my first attempt to design and develop well-structured object-oriented software from scratch (including database, web API + web site + client desktop app and this app for working with database). Sin...
I'm working on the problem of print a linked list reversely without destruction. I'm wondering if any other better ideas, in terms of both time complexity improvement and space complexity improvement. I also welcome for code bugs and code style advice. class LinkedListNode: def __init__(self, value, nextNode): ...
Working on below problem, looking for advice on code style, functional bug and time complexity improvements. Also looking for advice in, If array is not sorted, any solutions available for O(n^2) time complexity? In my loop, I always search from exclude_index + 1 to reduce duplicate, is it a safe start boundary? Prob...
To create a pdfDocument I am using following code which works as expected but do not want to use multiple if else. Any patterns or any design strategies? It may be a over do for the example , but will be useful. string fileExtension = Path.GetExtension(fileName).ToLower(); string outPutPath = Path.GetDirectoryName(fi...
Intro: I've written a small piece of Python program which is looking for a given sentence in multiple sub directories of a given path. I'm looking for improvements regarding the speed of my script. Code: from os import walk from os.path import join def get_magik_files(base_path): """ Yields each path from al...
I am messing with Ruby a little bit and would like to get some feedback about the Spaghettii below :) Sides = ["X", "O"] Msg_for_restart = " Starting all over again" Msg_for_coordinates = "Enter coordinates in the form of x,y" Msg_for_matrix = "This is how the matrix looks like" Draw_msg = "The game...
This is my first PHPUnit test with mocks, for a Symfony 3 project. Can anyone give me some advice about this code? class CourierManager extends BaseManager { /** * @param Courier $courier */ public function create (Courier $courier) : void { $this->em->persist($courier); $this->em-...
With the programming language skills that are available to me at the time, I've written this program to find the "taxicab numbers" (e.g. a number expressible as the sum of two cubes in two different ways.) While this code does work, it is definitely not scalable and it already takes about a minute to solve this for th...
I am writing a gem for users to interact with a third party api. I want users to have easy and natural access to objects and properties delivered by the JSON payload. The collection of entities delivered are called Entries so after making an http request I pass the json response to an Entries object like so: class En...
I have made a function that wraps text in pygame (i.e. it turns a long string into an array of smaller strings that are short enough so they fit within the given width when rendered in the given font). My function is below. text is the string we want to break up, font is a pygame font object, and max_width is the numbe...
The string I'd like to check is something like "abcSun24def". If any valid "xxxyy" (xxx = weekday and yy = day) is found, return the position inside the string. If "xxxyy" is not found, return -1. The code works as desired, but I think it can be optimized. /* ------------------------------------------------------------...
Here is a code block I have: const _ = require('lodash') const Box = require('./models/Box') const boxesToBePicked = await Box.find({ status: 'ready' }) const boxesOriginalIds = _(boxesToBePicked).map('original').compact().uniq().value() const boxesOriginal = boxesOriginalIds.length ? await Box.find({ _id: { $in: boxe...
I'm new in Android, Java and the whole object-oriented programming, I'm trying to develop an app which needs to listen on many web services (PHP scripts written by me returning a standardized JSON string) and I thought I could design a class which takes this commitment: ServiceListener. import org.json.JSONException; i...
public class Alphabet { public static void main(String[] args) { checkAlphabetic("fdsfsfds+"); } public static boolean checkAlphabetic(String input) { char[] chars = input.toCharArray(); int count = 0; for (int i = 0; i < input.length(); i++) { if (Character.isLetter(chars[i])) { count = 1; } else { count...
This is a simple dice game that requires you to get two numbers from the user and then it generates 15 other numbers and checks if the generated numbers are the same as the numbers typed in. Try to run it on your IDE it will look more cool. As seen below I have used only static methods: import java.util.Random; imp...
I am new to JavaScript. I've recently completed first 10 Chapters of "JavaScript: The Good Parts". I've coded this small program to find maximum subarray of an array and would appreciate your feedback on the structure of the program (from JavaScript's point of view). I am basically looking for suggestions in following...
I wrote a little timer middleware to append the request duration to the end of the log message returned by the excellent Gorilla Toolkit's CombinedLoggingHandler from the handlers package. That handler accepts an io.Writer and an http.Handler, and fills the Writer with a newline-terminate string containing the Apache C...
I'm practicing Python. Being completely new to the language I'd like to hear someone else thoughts on the way I use the language. I'm coming from (mainly) Java and C so I'd expect new ways of doing stuff offered by Python which I am surely not aware of because I'm still learning. I came up with a very simple implementa...
Playing around in R with a Edx CS50 homework. The job is meant to be done in C, I am using (the more familiar) R just for warmup. I mainly wonder whether I am breaking any good practice/style norms overall or in any tiny detail. initials <- function(full.name) { # Returns initials of a full name # Input will contai...
I have written some Python code that uses Scrapy and Selenium to scrape restaurant names and addresses from a website. I needed to use Selenium because the button to show more restaurants on a page is in javascript. The actual list of restaurants per area is two links deep (three in London) - hence the initial three: ...
Given an array of integers, sort the array into a wave like array and return it. In other words, arrange the elements into a sequence such that a1 >= a2 <= a3 >= a4 <= a5..... Example: Given [1, 2, 3, 4] One possible answer: [2, 1, 4, 3] Another possible answer: [4, 1, 3, 2] NOTE: If there are multiple answers possib...
I reviewed this question that in my opinion uses a not so pretty batch-save so I tried improve it and this is what I came up with. In this more generic solution that allows to reuse it I wanted to implement the using statement instead of manually disposing and recreating the context. It is an extension that you can us...
In creating this answer to a recent question, I thought I might write a fully worked example that implements a finite state machine in C. The purpose is to implement the following function: Given a const char *, search for a string conforming to the pattern WWWDD where WWW is one of { "Mon", "Tue", "Wed, "Thu", "Fri...
I made a simple Python program which takes a list of unique numbers and orders them from smallest to greatest. The algorithm (which is actually quite similar to bubble sort) works like this: Take the first number If it is larger than the next number, switch them If it is smaller than the next number, do nothing Con...
I am looking for advice on how I can improve this code. The objective is to make a vanilla Markov Chain text generator in the most concise way. I'm looking for advice on style, naming, 'elegance', and correctness. import random, re with open("corpus.txt") as file: text = file.read().replace('\n', ' newline ') tex...
This is the third question in the series. Number 1 had most of the official two-player rules implemented, and Number 2 was the basic UI. This one has the complete two-player rules implemented, an AI using minimax with alpha-beta pruning. All suggestions welcome, especially those that help me program in a more functi...
Is writing Java code in chain like _hud.getStage().getCamera().combined an ugly practice? @Override public void render(float delta) { Gdx.gl.glClearColor(1,0,0,1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); _batch.setProjectionMatrix(_hud.getStage().getCamera().combined); _hud.getStage().draw(); } If ye...
Description: You’re given the pointer to the head node of a linked list and a specific position. Counting backwards from the tail node of the linked list, get the value of the node at the given position. A position of 0 corresponds to the tail, 1 corresponds to the node before the tail and so on. Code: int Ge...
I guess for some motivation: I ripped this out of a larger library I'm half-working on to parse S-expressions and cleaned it up a bit. I'm trying to write a simple function that tests whether a string is a valid quoted string literal. Using Test::LectroTest to compare a fast version of a function using a regex against ...
The following code works fine for inserting and removing an element from a deque using two threads. I would appreciate any help on how to make it better, especially in terms of thread safety. #include "stdafx.h" #include <deque> #include <condition_variable> #include <iostream> #include <thread> #include <mutex> #de...
The method is in a new class and i use it from form1: In the top of the new class: public int numberOfPoints = 100; The class Init method: public void Init() { if (IsEmpty(bmpWithPoints) == true) { bmpWithPoints = GetBitmapWithEllipses(1.0f); } } Then the method: private Bitmap GetBitmapWithEllips...
This is the new code after the changes suggested by @Cody Gray in the last question: Calculate area and perimeter for shapes: polygon, circle, rectangle and triangle This is my project on inheritance and polymorphism. I got the main file from my teacher and built the project base on it. My base class is Shape. Polygon ...
I implemented the well-known knapsack problem and now I would like to improve it using list comprehension or lambda. I don't want to use NumPy. Could you help me? def get_optimal_value(capacity, weights, values): value = 0. numItems = len(values) valuePerWeight = sorted([[values[i] / weights[i], weights[i]]...
Am using the datasource which is from the MVC controller method "GetRepairIssues" in the client side to bind the options to the dropdownlist. The result comes as expected. I have to do it even better and optimistic. public JsonResult GetRepairIssues() { JsonResult result = null; try { var repairIss...
Description: Given a reference to the head of a doubly-linked list and an integer, create a new Node object having data value and insert it into a sorted linked list. Code: Node SortedInsert(Node head, int data) { Node current = head; Node previous = null; while (current != null && current.data < d...
The Controller code for the first app to post data to another app module Api module V1 class OrderApiController < ApiController def send_invoice_data response = Hash.new result = Hash.new debugger order = Order.includes(:status, :user, payment: [:status]).where(txnid: par...
I need to implement dijkstra's algorithm and I've done so using this Wikipedia page. I've done it both with priority queue and without. Both versions work 100% correct, however I need the faster one (priority queue one). The problem is that it isn't faster. My tests show "faster" one runs in more than double the time ...
I needed to write a simple function that could raise a value x to the n'th power. I found out I could write this function in 2 different ways: (defun power1 (x n) "Raise x to the n'th power" (cond ((zerop n) 1.0) ((< n 0.0) (/ 1.0 (reduce #'* (loop for i below (- n) collect x)))) ...
I have some Python code that generates all possible multiples and combinations of a given set of primes up to a certain limit. The code runs and does exactly what I intend it to do, now I am trying to optimize it in order to improve run-time. import math from collections import defaultdict import itertools lim = 10**1...
I've written a piece of chess software which does some validation checks (check, checkmate etc). I've not implemented some of the more exotic Chess moves (e.g. rooking, en passant, promotion). I've written the code for a platform where the STL is not available. Thus, std::vectorhas been deliberately avoided (I'm aware ...
I created small simple PHP Authentication API. I have a couple of scripts that I use for session, authentication and registration. Since I'm not an experienced backend and PHP developer, I wanted someone more experienced to review my scripts and tell me what I did wrong and what I can improve. I did not use any framewo...
I want to implement jquery.alphanumeric in HTML pattern, so I used a jQuery plugin from here. Can this be shortened or improved? <input type="text" char-allow="$#*" class="alpha"> <input type="text" char-allow="+-" class="numeric"> <input type="text" char-allow="&" class="alphanumeric"> <script> function setAlphaN...
I've made a memory test game in windows forms, where you need to find and match 2 cards with the same images. It has 3 difficulties : Easy - 4 different pairs of cards, no time limit, no mistakes limit. Medium - 8 different pairs of cards, no time limit, 8 mistakes limit. Hard - 16 different pairs of cards, 30 seconds...
I'm looking for a general review with emphasis on idiomaticness and error handling. extern crate byteorder; extern crate rand; use std::collections::hash_map::HashMap; use std::collections::BinaryHeap; use byteorder::{ReadBytesExt, WriteBytesExt, NativeEndian}; use std::{fmt, error, result, io, path, cmp, fs}; use st...
I have a worksheet that lists a person's name (column A; many duplicate names are in this column) with associated data (columns B through G). I have code below that takes this list of a ~ 1000 rows and then: Copies and pastes each row three times (to create four identical rows for each entry). Loops through the now ~4...
Unfortunately, my earlier question was put on hold due to "code that doesn't work", but I realised that there were holes in my question, so here it is again, revamped. You probably know the QuickSort algorithm, where you select a pivot and place elements lower than it on one side, and those bigger than it on the other....
I want to make the creation of the pack Uri for WPF resources more verbose so they are easier to read and less error-prone and I thought I implement it using the builder pattern. The base class for each builder (there are four of them) is the PackUriBuilder. It implements the UriKind logic, checks the path and requrie...
I've been on an adventure trying to learn NodeJs and put together a stack that I'd be happy to put into production if one day my team said to me "Let's build it in Node!". What we have here is your standard "Todo Webservice". Any and all feedback is appreciated, because I had never written more than 10 lines of JS prio...
I made a string class to be used as a replacement for std::string. It has all the find functions (find, rfind, find_first_of, ...), basic iterators (just begin and end, no reverse iterators), almost all the operators (+, +=, ==, [], <<), an insert, erase and substring function, c_str(), and it is dynamic. It is mostly ...
I tried to write some code namely "Circular doubly linked list" and I would like to use templates to do this. This is the first time I use templates and throws some exceptions. I would like to know if sth is badly writen, sth must be changed or I need to rewrite everything. Last but not least, what is the best framewor...
I am having a problem with my program: it does as required but largest_blanagram() is too slow. I'm not sure whether the best way to speed it up is (1) try to speed up blanagram(), which is being called a lot (2) figure out a way to call blanagram() less. I'm not sure how to go about either of these things particularly...
I have a system that can put and get messages from a messaging middleware (JMS), which is asynchronous. I need to provide an API that allows synchronous call, as in, when the API/method is called, it returns only when a response message is received or until a specified time out. In short, the calling thread needs to wa...
I made a Monte Carlo pi approximation program, that makes use of multithreading and a pseudorandom number generator I wrote (the one from big_wheel.hpp, which I tested using TestU01). Code: monte_carlo_pi.cpp: #include <iostream> #include <iomanip> #include <cstdlib> #include <cstdint> #include <cmath> #include <thread...
I am trying to do a self-join. I generated this migration to make a correct primary. This code works, but I'm not sure if this is the best way to do things. class CreateFeedstocks < ActiveRecord::Migration[5.0] def change create_table :feedstocks do |t| t.string :code t.float :measure_one t.fl...
The F# code below embodies the two specific questions I have. It is part of a working transformation utility, the entirety of which, including sample data, is in this gist: http://bit.ly/2i3kUwF. Generically, the task is: given a file of discrete records, compute a value for a subsequent record that depends on a value...
I was re-checking my answers for a Math paper on my laptop. I needed to verify my solution for a system of linear equations. Unfortunately, I found no quick way to do that. That's why I wrote a (hopefully) simple Python program (using NumPy) to do this job quickly. General comments on the code are appreciated. linearso...
I have written this code to invert a binary tree. Thus if the original tree is: Then the tree returned should be: /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class S...
I have coded a working Tic Tac Toe game tree generator. It doesn't only generate the game tree, it also applies minimax values to each node. The code works fine on a board that already has 2 or more played moves but slows down significantly for an empty board. I'm thinking of implementing alpha-beta pruning. I am, howe...
My method for sending emails with Send() is getting very slow when I send more than ten messages. Sample 1 (1 sec) 2 (2 sec) 3 (4 sec) 4 (8 sec) and so on... so I started to try SendAsync() public Boolean sendSMTPMail(string subject, string body, customer[] recipients, string attachmentFileName = null) { string c...
I am fairly new to programming and even newer to C++ but I am currently in a class for scientific computing, and our task from two weeks ago was to improve the speed of a primality test program. I regrettably do not have the original code because I wrote over it, but the long and short was that program selects 100,000 ...
Problem Write an algorithm to determine if all of the delimiters in an expression are matched and closed. {(abc)22}[14(xyz)2] should pass [ { ] } should fail { (x) } [ should fail Any advice of code functional bug, performance in terms of algorithm time complexity, code style are appreciated. delimiters = ['[', ']', ...
I wrote a Java program implementing Resenblatt’s perceptron Single Layer Network, Least Mean Square algorithm for Single Layer Network and Back-propagation algorithm (MLP) Network. I'm trying to write efficient and clean code. NeuralNetwork class package fcis.asu.neural; import java.util.Map; import lombok.Getter; im...
This is a simple implementation of Connect four in Java. It is working correctly so far. What I haven't done yet are the diagonals check and input validation. package game; import java.util.Scanner; //TODO check for diagonals, input validation public class Game { private char[][] gameBoard; private State gam...
There's a server which does the following: Receive request with transaction id Load corresponding transaction from storage. New transaction object is returned each time Process transaction Save updated transaction back to storage The task is to properly synchronize steps 2, 3 and 4. Since for each request new instanc...
The problem is old and simple but I wanted to try it in a different way. With some extra memory I have created an OOP-based solution. Hopefully it doesn't hurt in the interview. import java.util.*; import java.lang.*; import java.io.*; class Main { static class Solution { private int[] items; private List<In...
Given an integer, check if it's the power of two. class Main { static class Solution { private final boolean answer; Solution(int num) { if (num <= 0) { answer = false; } else if ((num & (num - 1)) == 0) { answer = true; } else { answer = false; }...
I've been working on another builder, this time for the DependencyProperty because it's object-based. This means that every parameter is an object and thus their usage is inconvenient (requires casting). In my experiment I tried to make its creation easier and at the same time generic. This is what it looks like. The...
few days ago i made small PHP Authentication API with all basic functionalities (log in, log out, registration, getting authenticated member) and i got suggestions that i should use prepared statements for better performance and SQL Injection defense, so i made some changes to my script and it looks like this, can anyo...
I wrote a script which retrieves YouTube videos from your favourite channels - channels you specify in a .txt file. Let me know what you think about it. Channel and Video classes import urllib.request import json import re from datetime import datetime, timedelta #************** apiKey = #Insert your Youtube API key. ...
I wrote a little program in C# that contains classes representing Items in RPG game. I wanted to have access to all inherited classes parameters from list contains parent Item class instances, so this is my code: using System; using System.Collections.Generic; public interface SpecialObject { int GetIntParameter ...
I wrote a method for validating properties based on passed conditions. It works well, but declaration takes more space than the actual condition. Is there any way to make it shorter? public virtual string Validate(string propertyName, params Tuple<Expression<Func<bool>>, string>[] predicates) { if (!ValidationPrope...
I recently wrote this C++ Logger API code for a game engine. It needs to be as fast as possible so I tried to postpone everything to compile-time using different template meta-programming tricks (for instance, static_if). Any advice, bug fixes or suggestions are welcome. Log.h: // Copyright(c) Matyas Yves Constans 2016...
I wrote a Java program that given a text message will print the encoded message. The problem is described in this link. Summary: We have to write a program that will encrypt a message that do not contain space character. Assuming that \$L\$ is the length of the message we have to put characters of this string in matri...
I've made 2 object pooling classes - MonoObjectPooler : MonoBehaviour - can hold a single bucket of pooled objects of 1 type. PolyObjectPooler : MonoBehaviour - can hold multiple buckets of pooled objects of different types. The object to pool information is store in a class PooledObject /// <summary> /// Information...
Elements of a matrix are given in sorted rows and columns. I want to find the element in an optimized way. First, I will get the last element of a row, which will determine if a number can exist in the current row. If the number I want to search for is greater than the last row's element, there is no point is searching...
In chess it is possible to place eight queens on the board so that no one queen can be taken by any other. Write a program that will determine all such possible arrangements for eight queens given the initial position of one of the queens. Input The first line of the input contains the number of datasets, and it...
I've been working on generating primes and prime products quickly to aid me in my research on prime numbers, their density, etc. The answer to my Large Number Limit Extravaganza question proved to be extremely useful in writing my programs. I have now expanded on this program to look at the difference in the amount of ...
I wrote this simple linked list in JavaScript. Feedback is welcome. function Node(data) { this.next = null; this.data = data; } function LinkedList() { this.length = 0; this.head = null; // add node with given value to the list. this.add = function (value) { var node = new Node(val...
The code loops to display "Hello, World!" ten times. I would like someone to criticize it. I know that's far from being good assembly but I only started learning it a few days ago and I would like to improve. Would it be better to use the %rax registers and syscall instead of int $0x80 ? .section .data hello: .string...
I need a collection/bag (something) that will hold some maximum number of running Task objects. Adding a new running Task to the collection should block the calling thread (there are many threads trying to add a task so it should be thread safe) until there is an available slot for the new Task to be added if the maxim...
Here is my simple program to pretty print a JSON object. I'm looking for advice of better pretty print solutions, functional bugs, code style and algorithm time/space complexity improvements. BTW, I have fixed all PEP8 issues I met with using Pycharm auto-annotation feature, there are some alerts on PEP8 which I think ...
I've made the Simon says game in Unity You start by guessing a pattern of 3 colors and each time you complete the pattern a new, random one, is generated and the length of the pattern is incremented by 1. The game utilises a custom generic collection I wrote CircularListNavigator<T>. I also have a question about it h...
This code provides a Tree abstraction. I would like to finalize the code structure only in tree directory, before starting implementation, because there are multiple conditional compilations, written at the function level. User code (testing) is yet to be attempted, as it is yet to fill the functions in Tree abstracti...
Fixed trade route with goods and prices and fixed cargo capacity. How can I optimize profit? No cost to trade or transport - just fixed capacity, route, and prices. All products use the same capacity, which is kind of artificial, but this is just a single pass starting with an empty vessel. It does a semi brute force o...
AN UPDATED VERSION with GitHub link is avalable HERE. I am trying to define a plug and play architecture which leverages stereotypical role implementations (Validator, Reader, Writer, Logger, Query, etc) by automatically instantiating associated services through a very limited use of Service Locator. Demo code: let's ...
I have been studying Java for 4 months and this project is what I came up with. I know I should make more classes and methods for quality but I am still learning. Please help to me if there is any simpler and cleaner ways to achieve the same results as this. import java.awt.FlowLayout; import javax.swing.JButton; impor...
What follows is a simplified version of a tentative implementation for a template-based set, named TemplateArgs. For the sake of clarity and focus on the question at hand, TemplateArgs was converted into a non-parameterized class, and its size and elements are hard-coded. It should be C++11-compliant and portable (any ...
There is backend which connects with IdentityServer using WsFederation. The backend is .NET Core project where there is a derived class from AuthenticationHandler. The issue is when the time of user's token is expired, the user should be signed out. I've implemented this in the following way: protected override async T...
Jesse loves cookies. He wants the sweetness of all his cookies to be greater than value K. To do this, Jesse repeatedly mixes two cookies with the least sweetness. He creates a special combined cookie with: sweetness = (1 * Least sweet cookie + 2 * 2nd least sweet cookie). He repeats this procedure until all the coo...
I have to implement a double linked list as an exercise for a further education. There are three interfaces which have to be implemented: IValueElement package schnittstellen; // schnittstellen == interfaces public interface IValueElement { public String getName(); public void setName (String paramName); p...
what do you think about this code? It's upgraded version of: Classes representing items in an RPG game using System; using System.Collections.Generic; public class Item { public string Name { get; protected set; } public int Cost { get; protected set; } public override string ToString() { ret...
This is a follow-up question to this one: AT&T Assembly - Basic loop & write The code loops to display "Hello, World!" ten times. I implemented the syscall instead of int $0x80, used a decrementing loop to avoid a useless instruction and commented the code. Is there any way to make it better? When debugging with GDB, i...
I have written a small function that will check a string to see if it contains a certain word. Depending on the word that is found first, the function will return the correct Enum value that needs to be used further down the line of the program. Would there be a better way to check a string to see if it contains a cert...
I've made a simple snake game in Unity and it has 3 different types of foods. Note - 5 blocks = 1 point This is a screenshot from the game here I'm colliding with myself and the game is restarted after that. As you can see the snake has a highlighted head (the light green block) and it consists of quite a lot smaller ...
Recently I implemented the Python's range() function in JavaScript. The function has three parameters: start, stop and step. The range includes elements from start and up to, but not including stop. The step parameter defaults to 1 and specifies the distance between two elements. It uses Proxy (an ECMAScript 6 feature)...
Inspired by Project Euler 14: Longest Collatz Sequence "Which starting number, under one million, produces the longest Collatz Sequence chain?" I wrote the following Java code: public static void main (String[] args) { int max = 0; int num = 0; int result = 0; List<Integer> num_array = new ArrayList<I...
Is it possible to improve this program somehow? It will probably be more convenient to suggest edits as forks of this Gist. (defpackage heart (:use :cl)) (in-package :heart) ;; Usage: ;; sbcl -l heart.lisp -e '(uiop:quit 0)' ;; (defun print-line (&rest args) (loop :for type :in args :by #'cddr :for num ...
I'm trying to cleanly grab some fields I need from an object. The scenario is this: I've got an object that is stored with certain 'extra' properties that exist because of the way we've set up our store in Redux. It'll look something like this: var formData = { account_name: 'SomeAccountName', custom_domain_name:...