instruction
stringlengths
71
71.9k
I'm learning about threading support in C++. I've got a basic understanding of thread-pools and why creating and destroying threads on some systems can be expensive. As far as I'm aware C++11 doesn't have any built in support for worker/background threads. std::thread is only designed to perform one task which you set ...
Here is my Piece class as part of implementation for the Tetris game. If possible, I want my code to face the same level of scrutiny as actual production code. Hereare some of the potential areas in which I feel my code could be improved, but due to my limited experience, was unable to do so. Please help me provide sug...
I have developed a Lotto Game in C for my Assignment, it allows a user to enter one of the 6 menu options. From the menu the user would be able to view the numbers they have chosen, another option would sort the numbers in ascending order, in this case I used bubble sort. What it does in the 1st menu is read the 6 numb...
A few years back I interviewed with a company for a Javascript position. After a couple of warm-up challenges I was presented with this: Please write a function that calls back with true if all promises have resolved successfully, or false if at least one promise has rejected. Given 'Promise' API: promise.then( ...
I'm trying to do this: Getting user's ID based on his email name. Using that user_id to check all his emails that have been sent for him so far. // db connection here $sth = $dbh_conn ->prepare("SELECT id FROM users WHERE email = ?") ->execute(array($email)); $num_rows = $sth->fetch(PDO::FETCH_ASSOC); if($num_rows)...
I want to calculate all sum of all possible paths from root to leaf. Each node has value of an integer number (decimal). In the following example: 1 / \ 2 4 / /\ 3 5 6 Possible paths are *123, 145, and 146, which adds to 414). In this example, 12 is not a valid path since 2 is not a leaf node. I did...
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? public class SmallestMultiple { public static void main(String[] args) { int smallest = 0; fo...
Revised from: Bash scripts and udev rules to handle USB auto mounting / unmounting Tested: Uses USB insert/remove to control a headless Raspberry Pi 3 with Raspian Jessie Lite Changes: Implement more functions Improve comments Modify if-fi exit handling Add optional flag for auto processing on insert/remove Op...
Due to my needing to use C libraries inside C++, I kept finding myself wanting to be able to ensure that the free function got called, even if an exception got thrown. UTILS_SCOPE_EXIT ensures that the function will be called at the end of scope. External documentation shows how to use it, and also clarifies that it is...
I'm working on a fork of Cygwin for native Windows development. In this commit, I'm trying to improve the security of code that spawns cmd.exe, used by functions like system, popen. What I would like to focus on is this: static const char *cmd_exe_path = NULL; static void init_cmd_exe_path(void) { char sysdir[NT_MAX...
Problem Count the number of character replacements necessary to convert an input String to a palindrome. Each character replacement must replace the given character with the character directly before it in the alphabet (sorted A-Z). In other words, D can only be replaced with C. For simplicity, only consider Strings...
The code below takes a filled out Sudoku board of size NxN, with sub-blocks of nxn, and checks if the solution is correct. main_function takes a board as input. This function calls check_rows and check_blocks. The first of the two is used to check both the rows and columns of the board. The second one is used to check ...
A cricketer can score 1, 2, 4 or 6 in a ball. Find in how many ways the player can score a total of "n" runs without hitting 3 consecutive boundaries. Note: Scoring 4 or 6 is considered as a boundary. My solution is: int *arr; //global array to save calculated ways int waysUtil(int n, int boundaries){ if(n==0) ...
What it is about I created an application where you need to push invisible buttons in a certain order to unlock the advanced mode. To handle this, I wanted to use a queue (FIFO) of my own, adapted to my problem. Every time I click a button, its ID is added to the queue with addItem, and the password gets checked with c...
The intent is to have an auto_increment composite primary key on a InnoDB table which mimics the behavior as on a MyISAM table. The following assumes (3) InnoDB tables all with an auto_increment composite primary key (id incrementing and a_id not incrementing). Please comment positively or negatively as you see fit. ...
Purpose: Given a 2-Dimensional Array, return a copy of the Array. In VBA, if I just Set newArray = oldArray then newArray is simply a pointer to oldArray rather than an independent copy, hence this function. Method: Assign Array bounds. Create identically-sized Array. Iterate over Array and copy each element value....
I'm reading up on java and have completed a fairly simple console game. I'm unsure on my own structure when considering maintainability, separation of concerns and best practices. Any tips or suggestions is appreciated. import java.io.*; import java.util.Scanner; import java.util.*; class Prompter { private stati...
I'm dynamically selecting elements in jQuery, how can I make it more resilient? $('[data-example="' + exampleData + '"]').each(...); I'm concerned that the data might contain special characters.
The following class is a helper to avoid OutOfMemoryException exceptions being thrown when the list is to large so that it is added onto the large objects heap. To do this it adds the items onto the heap as smaller arrays contained inside of a list. Some quick notes: I prefer not to use var. The constant in all caps i...
# printstring.py # 7/8/2016 import sys # ask for user input s_string = input('Enter a string: ') # if no string, then exit() if s_string == '': sys.exit() # display the output print(s_string) Also wondering how to get "raw" input and output the text properly formatted with line breaks, etc. Also looking for ge...
As the result of some expert procrastination I have over 4000 unread mail in my gmail box. While that does not hold a candle to what some people likely have I wanted to try and do something about it. Namely unsubscribe where I can, create filters and labels or delete. I wanted to gather data on all my unread mail so t...
Accessible apps allow more users to use your app; however, it is usually an afterthought for developers, and it makes your XML layout files messy whether Accessibility was a forethought or afterthought. This hopefully-soon-to-be-a-standalone-library-but-now-part-of-another-app-that-is-not-related-to-accessibility "libr...
I have written a small program that converts a decimal number into a reduced fraction representation. I also designed this little program to be fairly robust, so that it can give the correct output for various inputs. For example: ./a.out 3,000.375 24003/8 ./a.out "3 000,375" 24003/8 ./a.out 3.000,375 24003/8 ./a.out ...
I'm rather new to F# and functional programming. I wrote the following method to concatenate some custom dsl scripts. The function works are expected without errors. I wanted to know if there was a better way to rewrite this function. let foldScript (storeAppScripts : seq<string * string * string>) = storeAppScript...
I have implemented to following generic factory in C++11 using smart pointers and I would like to get some feedback about it. (Please note that I can't use C++14) Due to company policies I have to change the names of the business objects. class Car{}; class Taxi : public Car{}; class Police : public Car{}; class Car...
I recently wrote some code that was dinged on not having well defined tests and poor modularity. Was hoping someone could review my code and give me pointers on how to create more well-defined tests (Which is where I might be the weakest) and secondly any tips on how I can increase modularity would help. The code rece...
I have these 3 different algorithms for computing binomial coefficients (I also had the 4th recursive one, yet I discarded it since it is super slow). The first uses the factorial formula, the second optimizes it a bit, and the last is a dynamic programming algorithm that maintains a Pascal's triangle which reduces the...
This algorithm, which I have included its flowchart as well, takes an array of A[n], which is unsorted and unmutatable and an array of B[k], which is sorted and includes n zeroes and then merges, and sorts them together. The entire code in Python and C# can be found here and on this very post. In C#: class Program { ...
Here is a simple WPF converter method designed, where the object is a string, and the parameters are a string, which contain a set of comma separated values. The program return true if the list has the value in and false otherwise. public object Convert(object value, Type targetType, object parameter, CultureInfo ...
I'm learning CUDA (and C to some extent), and one of the algorithms that I am learning is the Hillis-Steele scan algorithm. I wrote a program that performs a simple scan with adding. After seeding the random number generator and doing some allocation/initialization, the program fills an array with random numbers 0-9 an...
I've created an application that uses a cmd interface. It has multiple levels, and the number of available commands and their complexity is growing. As such, I need to generalise argument parsing - of the line parameter. I like argparse - I've previously used it a few times for its 'intended' purpose - so I figured I'...
I am looking for people's opinions on my use of a set of non standard "standard classes". Basically I am working on a 'modern' C++ Lexical Analyser and Parser Generator duo to replace flex and GNU Bison which will work as a library and tool combination. I have a number of non standard extensions of std library classes....
I wrote my first Python program today after working through a few books. I decided to build a group initiative tracker for our D&D group and was hoping to get some feedback. Critiques on code efficiency, formatting, suggestions, etc would be appreciated. My plan is to eventually take this from a command-line applicatio...
I have written multi producer single consumer code with bounded buffer. Please review the code for any improvements or mistakes. #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <unistd.h> #include <semaphore.h> #include <string.h> #define SIZE 50 #define PRODUCERS 5 #define TOTAL 2 #define ENTER p...
Assume we have an string that contains the character 'c'. This character can be located anywhere within the string. The exercise is to remove 'c', and the characters that, if they exist, are on its immediate left or right. I have devised an algorithm, assuming that 'c' = '*'. Its flowchart can be found here and the cod...
I've got this working almost to where I want it. The part I can't get right may be due to the programming so I'd like to get a review. I'm making JSON calls to the Twitch API that sends back a list of people who are streaming video on code camps channel on the Twitch website. I have a semi populated array of users to s...
Original question can be found here I took the advice I got to heart, and re-wrote it. Once again I'd appreciate any advice as to how I can improve this using best practices. Jar.java package com.tn.jar; public class Jar { private String itemName; private int numberOfItems; private int numberToGuess; ...
I'm new to this competitive programming world. This morning I came across this question, which required the time to be less than 1 sec. But my code runs for 1.000069 sec, thereby rejecting my solution. Question: There are N chocolate boxes, and you will be given with a chocolate index for which we have to guess the co...
I'm creating a web page which has two types of users with very similar permissions: Person and Company. The main difference is in their attributes and probably different billing. I've created only one UserProfile for both types of users. What do you think? Is it safe? Should I expect some problems later because of this...
In order to divide an IEnumerable in C# by a predicate, I implemented the following (in a static class): public static IEnumerable<IEnumerable<T>> SplitBeforeIf<T>(this IEnumerable<T> input, Func<T, bool> pred) { //This exists to store the predicate satisfier, which I kept as //the first T in the inner IEnumera...
I've been developing a simple CMS both for practical use and learning about Laravel, and I decided to implement a simple service that makes it possible for the administrators to send messages to one another. However, the finished JavaScript code, while completely functional, ended up being a bit sketchy so I'm looking ...
I am new to Java in general, but wanted to get some input on the code for a CS class I am taking. It is a program that plays the Hi-Lo guessing game with numbers. A user may choose to quit mid-game by entering 0 and then they are prompted to play again if they choose. If they guess correctly, they are also prompted t...
My program will divide the decimal (\$30.0575\$) by a range of fractions (\$\frac{1}{1}, \frac{1}{2}, \frac{1}{4}, \dots, \frac{1}{48})\$ leaving me with list of improper fractions that look like this: \$\frac{1}{1} * 30.0575\$ \$\frac{1}{2} * 60.115\$ \$\frac{1}{3} * 90.1725\$ \$\dots\$ \$\frac{1}{48} * 1442.76\$ My...
Challenge: Given an array arr, find element pairs whose sum equal the second argument arg and return the sum of their indices. If multiple pairs, that have the same numeric elements but different indices are possible, return the smallest sum of indices. Once an element has been used, it cannot be reused to pair with an...
I'm just trying to learn the basics of React and Flux, and the above code works and I can see it works nicely. index.js import React from 'react' import ReactDOM from 'react-dom' import UI from './components/ui.js' ReactDOM.render(<UI />, document.getElementById('ui')); component/ui.js import React, { Component } fr...
I started this because I thought it would be a fun and easy way to brush up on my C++. It turned out to be a lot more complicated than I thought. I learned about std::allocator and move constructors and other things I had never seen before, so it was a good learning exercise. The interface is based on std::vector, thou...
I have written this PrimeFactorize utility method in C# (using LINQPad) which works fine, but feels like it is a bit slow, I was wondering what might be improved. Also looking for any criticism not related to efficiency to make the code better. // Generate prime factors for a number, e.g., input 12 returns 2 2 3 public...
I wrote a Java FX application that translates binary to and from String and numbers in Java. Whenever the program is translating large amounts of text to binary it takes a very long time, and leaves the application unresponsive. Could a more efficient algorithm be used to speed up the process? // Turns binary into...
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10 001st prime number? How can I make this more efficient and cleaner? public class Problem7 { public static void main(String[] args) { // a prime factor is something that can divide by only...
I have a login method in my controller. I would like to get rid of the imperative "thinking" and write something more functional. def login(conn, %{"login" => %{"password" => password}}) do conn = conn |> fetch_session if count_attempt_login(conn) <= 10 do conn |> attempt_login(password) ...
I started a tutorial online to get a little bit more knowledge about views. But after I did the basic I decided to finish the game. The game is a little "I spy" game where the user tries to guess the item loaded in a picture on the screen. They are been helped with some hints showed at the bottom. The user has 3 tries ...
Original Problem: HackerRank I am trying to count the number of inversions using Binary Indexed Tree in an array. I've tried to optimise my code as much as I can. However, I still got TLE for the last 3 test cases. Any ideas that I can further optimise my code? # Enter your code here. Read input from STDIN. Print outpu...
I'm doing an exercise, and would like to know if what I'm doing is correct and follows the correct structure for rollback in case a transaction fails. I would like to know as well if my try...catch statements are well implemented. create procedure spTeste2( @tit1 bigint = 111, @tit2 bigint = 222 ) as begin try ...
Basically, here's the problem statement: Given an IEnumerable<T> source and an IEnumerable<T> exceptions, return an IEnumerable<T> result which contains all of source, without exceptions, only omitting exact instances of a value. I.e.: if a value appears twice in source, but once in exceptions, then result will have t...
I have written this to practice Test Driven Development. I would like to know if the process is right and how it could be improved. Problem Statement : A wizard can cast spell on goblin and make his size big, normal or small. He can also make the goblin visible or invisible. In addition to this, the wizard can keep tra...
I've written a Ledger class for a daemon process, which is supposed to keep track of an exchange's orderbook. My main concern is the way I keep track of the orders - more precisely, the containers I use to store them: a combination of set() and dict() appeared like the most feasible solution. However, I'm wondering If...
I use the gem act_as_votable to allow users to select categories they like. To get the categories a user likes: current_user.get_voted(Category) These categories have children categories, and I need to find the posts in those children categories. I use this line to do it: @categories_posts = current_user.get_voted(C...
I'm a Go (and programming in general) newbie and the task was to program a Go server that would accept incoming messages, take each line, reverse its order and case and send it back. Besides doing that I also wrote a client (just for the hell of it and to help me test my server). I wonder if some things could've been d...
I was reading this code where author claims that its the fastest implementation which I doubt, hence I decided to write my version of the same problem. 'use strict'; module.exports = function unique(arr) { if (!Array.isArray(arr)) { throw new TypeError('array-unique expects an array.'); } return arr.filter(f...
My code given below will produce the correct output but it tends to take way too much time with larger data thus timing out for some of the test cases. I've linked to the problem description here: It's New Year's Day and everyone's in line for the Wonderland rollercoaster ride! There are n people queued up, and each p...
var argon2 = require('argon2') var nano = require('nano')('http://127.0.0.1:5984') var users = nano.db.use('users') var private = { generateHash: (password, callback) => { argon2.generateSalt().then((salt) => { argon2.hash(password, salt).then((hash) => { callback(hash) }) }) } } var ...
This is the problem statement. I have submitted successfully a \$O(n^2)\$ solution and I would like to know if there is a way to improve the running time to, maybe, \$O(n \log n)\$. Having dropped out of school because of chemistry, Luka got a job driving trucks. One evening he parked his three trucks in a rest area...
I'm learning Ruby 2.3 and I've tried to implement a function which performs the Luhn credit card verification algorithm on an input string, returning true if it matches and false if it doesn't. def luhn(card_no) card_no.split("") # Break into individual digits .reverse # Start from the end ....
I need a code review for my first jQuery plugin. It seems like a lot of code and I want to hear something about my plugin code structure and more. ; (function($) { 'use strict'; $.fn.mpopup = function(options) { //Default settings var defaults = { overlayClass: 'mpopup-overlay', overlayColor...
index.php,general message.php, logout.php, site life.php (this page for session and put it in the other pages by required) Database: connection.php <?php $dsn = "mysql:host=localhost;dbname=mg"; $username = "root"; $password = ""; $options = array( PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8', ); try{ $conn = ne...
I'm working through Cracking the Coding Interview. The first challenge is to implement an algorithm to determine if a string has all unique characters. I've gone through several iterations, but here's my "final" solution. I've made several assumptions: We are considering case-insensitive strings. We are only consider...
This is my first Python project, so: create a pot with dimensions (radius, thickness of wall, thickness of base, height), fill it with food (to a specific height). Determine the ratio between the volume of the food and the volume of the (metal in the) pot. I am aware that this code does not take handles, rims, dents an...
I've been experimenting with how to pass my managed object context throughout my application in Core Data and I came across an approach that I'd like reviewed. I've been creating a protocol for all of my View Controllers that need a managed object context to implement: protocol ManagedObjectContextProperty { var ma...
I already have two versions of this code reviewed (thanks @Bobby). They can be found here and here. The question is still the same. The goal is maintainability and following best practices. Jar.java package com.tn.jar; import java.util.Random; public class Jar { private String itemName; private int numberOf...
I have the following snippet code which, within a loop, creates a JavaScript object where some of the properties maybe undefined: reader.on('record', function(record) { let p = record.children; let player = {}; // below we create a dynamic key using an object literal obj['name'], this allows use to use ...
I have a class (Patient) with many instances.. I need a way to share the instances with other users, so I thought of converting the instance into a string and sharing it, then reconverting it into an instance From instance to string func ToString(pt: Patient) -> String { let myarray: [String] = [ pt.id, ...
I have a combobox with two items. And if one is selected I want to write data to "salary" table and if selected another, to "other" table. The difference between two code blocks is only one word. I would like to know how I could avoid repeating same code twice. string myConnection = "datasource=localhost; port=3306; u...
I just started programming and have taken too much time to code the solution for this problem: In this problem you will test your knowledge of Java loops. Given three integers, \$a\$, \$b\$, and \$n\$, output the following series: $$a + 2^{0}b, a + 2^{0}b + 2^{1}b, \ldots \ldots, a + 2^{0}b + 2^{1}b + \ldots + 2^{n...
I know B+ trees are not meant to be use in memory, but I just implemented it as an exercise. I'm looking for a general review. #ifndef B_PLUS_TREE_H #define B_PLUS_TREE_H #include <vector> #include <algorithm> namespace mds { template <typename T, typename D, typename Func = std::less<T>> class b_plus_tree { ...
I'm wondering if this code can be optimized in terms of time complexity. The problem is checking to see if a string has all unique characters. #include <iostream> #include <string> using namespace std; //Assuming ASCII bool checkString (string user) { if (user.length() > 256) { return false; } ...
I have written a small Brainfuck interpreter in C. More recent version hosted here. I have found it very hard to test my interpreter because writing a program in Brainfuck is somewhat hard (or at least very tedious) and many snippets I found online either don't give output or do so very cryptically, so I don't know 100...
As practice with the (ever so painful) C Strings I wrote a string reversal program. I am new to C, so I wanted to make sure that I am not using bad coding practices. It runs just fine (at least with expected input), but I am not sure if the logic is as good as it could be. #include <stdio.h> #include <stdlib.h> #inclu...
I need some advice to improve my Triangle class. I know some of my code is sloppy, such as in the Triangle constructor. can someone give me advice on how to improve it? #pragma once #include "Shape.h" #include <algorithm> class Triangle :public Shape { std::vector<Point> _vertices; float _a, _b, _c, _s; publi...
My code works, but I need help on revising it to make it shorter and simple if possible on my main.cpp part ONLY. The other files is to make the program compile and work out if you want to see the output. main.cpp: #include <stdio.h> #include "bintree.h" #include <string.h> #include <list> #include <stack> #include <st...
I'm just wondering if you would consider this to be safe from SQL injection. A peculiarity of my program is I need to dynamically access table names depending on my scenario. This is not for publishing online, but I wish to know if this approach is any good. I'm using Python3 and SQLite3. My database object contains th...
Here is my code which implements a undirected graph in java. I'm fairly new to java(I come from C) and I am not sure if this is a good implementation. Here are a few things i worry about - Did I use encapsulation in the correct way? Did I overuse/underuse it? Is this a good way of implementing a graph given that i wa...
I have this simple cache mechanism for a repeated task in service. It uses static variable to store the information. Please suggest on how is it and if it could be better. Premise: I need to verify transaction from stores. There can be lots of transactions happening repeatedly from multiple stores. Thus, this simple ca...
I have some program which takes input via stdin, writes output to stdout, and errors to stderr. I would like to call that program from another program, supplying data via stdin, and capturing output/errors via stdout and stderr. I have written the below, which seems to work fine - however, I don't know if this is the...
I recently answered a question on Mathematics Stack Exchange, where I used a small Python program to check the following : For all 6-digit numbers, with all digits being different, choosing the digits one by one from left to right, the second last digit can always be chosen so that the number will never be a prime. In ...
I have an up-down numeric control on my form (attEdgeUpDown), which has value 0-8. I have eight checkboxes (attEdgeBox1 to attEdgeBox8). I want to display as many boxes as the numeric control shows. Can this be done more efficiently? private void attEdgeUpDown_ValueChanged(object sender, EventArgs e) { int edgeValue = ...
See Problem - 151B - Codeforces for details. I think I have been very messy with using the Streams. Can you review for a good and better implementation with Streams? Any other improvements? public void solve(InputReader in, PrintWriter out) { int n = in.nextInt(); List<Person> ps = new ArrayList<>(); for (i...
I would like feedback on the class I've written. The purpose is to dynamically create and interact with SQLite3 databases, accepting lists of complete or incomplete statements. import sqlite3 class DB(object): """DB initializes and manipulates SQLite3 databases.""" def __init__(self, database='database.d...
I'm a beginner Python (2.7) programmer, and I've just started solving basic problems on SPOJ. I correctly solved the ADDREV problem (http://www.spoj.com/problems/ADDREV/), however my code takes 0.06s time and 8.8M memory to run. The top Python 2.7 rankers for the problem take <0.005s and 4.00M. Since I am starting out ...
I partially refactored the code so okFields uses the extracted function checkStringLength. Now I also want problemFields() to use the same refactored function, but there is a difference between how okFields and problemFields use the function: you see that the problemFields has a little ! in front of validator, and I do...
I'm implementing a simple merge sort to practice with Python's Threads. I've tried to split the job into two threads, that sort normally, then I can join them and merge the result. However, it takes almost twice as long with two threads than it does with the "normal" algorithm. Did I do something wrong or is it normal ...
So I have this sub query: *(select p.value1 From Params as p where p.PAR_Field = 'Taxe' and p.PAR_KEY = 'TVA')* And I was using it 3 times to get the same value. In this SELECT statement: Select a, b, c, d, price *(select p.value1 From Params as p where p.PAR_Field = 'Taxe' and p.PAR_KEY = 'TVA')/100 as RealTVA...
Here comes the next round. I've implemented some of the suggestions from the previous review. That being said, though, there are a few things that I have on the horizons but haven't yet put in that were suggested. I am currently working on implementing dependency injection so that the database object is not redundantly...
I was asked to complete a coding challenge for an interview. The challenge being to write a test function to check whether or not a string was a broken record. A broken record is defined as a string that contains a sequential repeated substrings. For example: # These are broken records "This is is a broken record" "Thi...
I've created a small class to generate unique random strings. It works fine. I also want to log the collisions of the generated strings. I check if the generated string is in the array for uniquness: public static function add(&$array = [], $length = 1) { $hash = self::rand_str($length); while (in_array($hash, ...
I have created a few extension methods to get the direct reports of a UserPrincipal as UserPrincipals themselves. This saves the user of the API quite a bit of typing. public static IEnumerable<UserPrincipal> GetDirectReportUserPrincipals( this UserPrincipal userPrincipal) { var directReportDistinguishedNames =...
My background is medical, but I required a program that calculated whether my patients are "normal" or 1-2 SD values away from the mean. The program works just fine, but I'm interested how I can do better. (This all was made after I started learning python a month ago, so please be kind) I'm particularly interested in ...
A continuation of Memoizing decorator with retries, part 2, and related to https://codereview.stackexchange.com/a/133493/47529. I liked my decorator before, but especially in my original use case of a spotty network connection it makes sens to allow for some delay between attempts. The specifics of this delay should be...
I have a Word VBA script that auto-generates a table caption based on user input & a previous heading. Its purpose is to speed up editing & formatting of massive software documents (like the 1000+ page test procedure I'm currently reviewing). At this point, it's slightly quicker than scrolling back up, copying the head...
The code below is the BLL and the DAL logic for the form submission with multiple pages. A form will have more than one page, will have a button on every page until it reaches the final submission. For the first page when submitted,the following actions need to be done. Database table 1 should generate a RefNo RefNo ...
I've been writing a brainfuck interpreter in python 3. It's nothing serious, but I'm trying to make it as good as possible (considering program structure, user experience and etc) for my own learning purpose. Any suggestion is welcomed. """A brainfuck interpreter written in Python 3.5.""" import argparse __all__ = ['...