instruction
stringlengths
71
95.1k
I wrote a program that checks if two files (with a different path / name) match or not. The hard and symbolic links between the files are followed to determine it. I know this is not the best implementation, so I would like some suggestions for improvement, possible problems. What you should change? code: #include <uni...
I have created some object-oriented program for Caesar encryption. Could you please check if I have done anything wrong or how I can improve this? This is for my school assignment on coding and I would like to impress my teacher as a Java beginner. Thanks. I would like my code to be well written and suitable for perfor...
I spent some time making a simple Wordle clone in Python. The word bank consists of all words of a specified length taken from nltk's Brown corpus. I would appreciate any advice or criticism to improve my program's coherence and efficiency. import random import re from nltk.corpus import brown from termcolor import col...
I just started Stanford Coursera algorithms course and I wrote this mergesort based on what was shown: def mergesort(n): if len(n) <= 1: return n length = len(n) // 2 A = mergesort(n[:length]) B = mergesort(n[length:]) iterA = 0 iterB = 0 C = [] for i in range(len(n)): ...
I'm really only a tinkerer in Java, but for work I need to write in Java for a while. Most of my experience is in C / C++ / JavaScript. Anyway, the program needs arrays of structured data. Then, based on runtime criteria, the program needs to be able to add to or modify part of the data. Later the program will use the ...
Introduction This is a follow-up to a previous question of mine, where I presented another queue of the same type to get some feedback on it. Some people pointed out some fundamental errors I had made, and I came to learn that I was very naive when it comes to how I was padding variables. So this is an updated version...
I have a work-in-progress where I'm using XSLT 3 to extract information from some preprocessed archaic HTML. I'd like to produce JSON showing the relationships between the various entities for further loading, replacing part of our existing pipeline which uses some frankly nightmarish Python. We've used this approach t...
I want to create a family tree where the relationships are only godfather and godson. Is this the right way to declare the personn class ? from sqlalchemy import Column, ForeignKey from sqlalchemy.ext.declarative import declarative_base from genealogie.extensions import db Base = declarative_base() relationship = db...
I have a MultiIndex DataFrame df = pd.DataFrame({ ('paramA','levelA'):np.random.randint(100, size=(5)), ('paramA','levelB'):np.random.randint(100, size=(5)), ('paramB','levelA'):np.random.randint(100, size=(5)), ('paramB','levelB'):np.random.randint(100, size=(5)) }, ).T df.index.set_names(['paramet...
I'm making a simple webshop, it's not the full code, there are more security procedures. I'm just want to know your opinions. Thank you. These SQL tables I have: (I have more column in this table this is just an example) customers: id name phone address zip city country o_date 1 Test 12345 Test Adress 1234 Test...
I am working on a personal project in university where I am currently trying to make my own implementation of a generic observer pattern that I can use throughout my project. I would appreciate any feedback, but I am specifically interested in how to generalize it further or perhaps some change that makes it even easie...
Some years ago, I wrote a small library that provides part of the functionality of WireGuard's wg utility as Python functions. How can I improve it? """Python bindings for WireGuard.""" from __future__ import annotations from ipaddress import IPv4Network, IPv6Network, ip_network from os import linesep from pathlib imp...
The question is: In many mathematical problems, the parameters need to be scaled, either to convert between units or to standardise measurements to a certain range of values. Write a void function called scale which accepts a double passed by value and two doubles passed by reference. Your function should use the first...
I have this Visual Studio 2022 project, in which I compared the performance of 4 point-to-point shortest path algorithms. This one presents the Dijkstra's algorithm: #ifndef COM_GITHUB_CODERODDE_GRAPH_PATHFINDERS_DIJKSTRA_HPP #define COM_GITHUB_CODERODDE_GRAPH_PATHFINDERS_DIJKSTRA_HPP #include "DirectedGraph.hpp" #inc...
The following question is from the book Problem Solving With C++. This is given as an exercise in the chapter "Functions for all subtasks": Write a function that calculates a discount applicable on the price of an item. Your function should have three arguments: the price as a reference to a double, the discount as a ...
Syntax: char *get_input_from_stdin_and_discard_extra_characters(char *str, long size); Function get_input_from_stdin_and_discard_extra_characters() reads at most 'size - 1' characters into 'str' from stdin and then appends the null character ('\0'). The detailed description of this function is in the header file - "get...
I have the following code to get data from NASA.api and create gallery from the data received from the sever. let source, load,gallery; let grid = document.querySelector('#grid') function send(num) { document.body.style.backgroundColor = 'black' let xhr = new XMLHttpRequest(); let link = "https://api.nasa.gov/...
This is the entire code segment. All the functions for file operations are working perfectly. I just need a professional to help me clarify that am following good standards, documentation, etc., because I am going to start doing professional work very soon and I need my code to be at a professional level. import os c...
I have few questions. Sorry if title is not a good fit. I could not think of a good one. I have read online about maintainability and elegance of the code. I have also seen few examples of DRY principal. I would like to ask What is maintainability in PHP perspective? How to make code more elegant few examples will be a...
I am working with lot of config files. I need to read all those individual config file in their own struct and then make one giant Config struct which holds all other individual config struct in it. Let's suppose if I am working with 3 config files. ClientConfig deals with one config file. DataMapConfig deals with sec...
This program simulates the phenomenon of aggregation of a swarm of robots with no cooperation between each other and each robot following a very simple rule: The velocity of this robot has a random direction and the absolute value of this velocity is inversely proportional to the number of robots inside of a threshold ...
I'm new to programming and I would really appreciate some tips about how to improve my design and my writing. I tried to implement Dictionary data structure, which supports 3 main methods - insert,remove and findData. The idea is to implement in the most efficient way I could think about (and it is probably not conside...
Background I am writing a library that takes some data from the user and works with it. I was experimenting with ways to allow users to provide the data by the following methods: As a (global) variable (taken by a const &) As a function pointer As a lambda (taken by value) I am aware that I can just wrap the variable...
So I have notes that have a lastEdit which is a timestamp in milliseconds and a unique id. I want to find the id of the note that has the greatest lastEdit value. I tried the good old fashion way, and then figured there must be an es6 way of doing this, but even after a lot of struggling and getting it to work, it's ev...
Goal I want to get the index of the min of last 3 rows based on low column. date hy_code low 0 1990/12/19 A 95.79 1 1990/12/20 A 99.98 2 1990/12/21 A 103.73 3 1990/12/24 A 109.13 4 1990/12/25 A 114.55 5 1990/12/26 A 120.25 6 1990/12/27 A 125.27 7 1990/12/28 A 125.28 8 19...
I want to optimize this code of generate pdf file with many nested loops, what makes it slow that i have for loop with 20 items EmissionManchCoupEnvoi and then another nested foreach with method GetPropositionsQuest that do a query on a view in the database with 400k elements which is PropostionForPrint, now i have 12 ...
I've been interviewing for some Golang jobs and this was a test that I was assigned. FYI: I'm posting this question to improve my skills and see what I could've done differently to make it better. I think it would also benefit other people interviewing for golang jobs knowing what could be done if anything similar is a...
What I want to achieve: I have several tables of the following schema: +------+-------+ | date | val | +------+-------+ | DATE | INT64 | +------+-------+ I want to create the following: +--------+---------+----------+----------------+--------------+ | table | val_cur | val_prev | val_last_month | val_expected | +--...
This is a continuation of this question. In the game the player chooses a topic and then gets a random word (or words) from that topic to guess. I've repartitioned the code into objects several times, without changing the player's experience of the game at all. Some partitionings were clearly better than others. In ot...
I'm a Python programmer / teacher who was a CIS major in college. I'm going back to school to get my masters in CS probably, and the first course is a prerequisite Intro to Programming in C / C++. I've decided to work through the K&R book to prepare myself, and this is quite the learning experience! For this particul...
There is a bit of if-else-if going in within the code. Is there a construct which could come handy. Also the section names are very similar too public string GetRestApiUrlFromHost() { var restApiUrl = string.Empty; var HostUrl = Request.Host.Value; var DevURL = _configuration.GetSection("DEV_API_URL").Val...
What the code does short version: Given your hints for Wordle, narrows down the list of potential matches and returns them as a list. Slightly longer version: It takes the positions and values of your green clues, positions and values of your yellow clues, and all your gray clues and creates a regular expression to fil...
I'm working on a project that creates a calendar based on user input of a month and a year. With that information, the code should count the number of days in that month and output a calendar. I would love to have extra eyes on my code. I'm still a beginner and limiting myself to just the libraries mentioned in the cod...
The following numpy/python function computes exponentially-weighted moving mean and standard deviation of an irregularly-spaced weighted time series. I want to make it faster by getting rid of the python loop and relying on numpy vectorization. However, while I can move some computation out of the loop, I'm unable to c...
I'm starting a new project, and it needs to be set up using YAML files. To handle all the settings, I've created a singleton class, I'd like you guys to review. Here is the header: #pragma once #include <memory> #include <string> struct Settings { struct General { bool verbose; bool debug; } g...
The scenario here is to get a filename from the console and create it if it does not exist. I have two main questions; Is the way I used promises the best way? is there a better way? Here is my code; const argv = require("yargs").argv; const fs = require("fs"); const readline = require("readline"); function ifFileEx...
I tried to implement a simple BankAccount class to practice providing a solution to the common Bank Account transaction data race problem. Reference to a description of such a problem can be found here. The public API of the class: func deposit(amount: Double) func withdraw(amount: Double) func currentBalance() -> Doub...
I have the following Laravel controller that searches through two models - Manufacturer and SearchTerm (which contains models of manufacturers, synonyms of models as well as common misspellings) using four different conditions: the first two for exact matches and the last two for partial matches. I don't have a lot of ...
Recently I had the requirement to allow multiple containers of the same application to be run on a single development server. This requirement drastically changed how we retrieve logs over SSH from the servers, and because I am not extremely well versed in bash, I wanted to get this script reviewed to see if there is a...
I have the following form that creates a new "activity": For which I want to enforce the following requirements: Name => minimum # of chars: 1; maximum # of chars: 50 Description => maximum # of chars: 200 I have written the following code: // ActivityDetailViewController.swift import UIKit private struct Constant...
My first attempt at writing a thread safe priority_queue. It is not the most efficient because the locks can be even more fine grained if I add implementation of heap instead of using priority_queue but later. Goal is to create a thread safe priority queue with timestamp as the ordering. Then extend it where a thread p...
I created a SqlMonitorInterceptor that will check the execution time of queries and log errors. The main idea is to log queries in such a way that they can be easily copied into SQL Server Management Studio and executed. SqlMonitorInterceptor: using System; using System.Data; using System.Data.Common; using System.Linq...
My code is working properly, but I am looking for better approach in the calculation of quantiles and the finding of the data in the dataframe. import datetime import pandas import pandas as pd import numpy as np from datetime import datetime, timedelta import seaborn as sns import matplotlib.pyplot as plt colnames ...
This is my size method for my binary search tree, that is meant to implement recursion to calculate the tree's size. public int size() { if (left != null && right != null) { return left.size() + 1 + right.size(); } else if (left != null && right == null) { return left....
I have the following function that draws a canvas pattern. It works so slow when canvas size bigger then 512x512. const defaultConfig: Divot = { step: 8, triangleWidth: 4, radius: 0.6, strokeStyle: '#000' }; export function DivotTemplate(divot: Partial<Divot> = defaultConfig, canvas: HTMLCanvasElement): HTMLCanvasElem...
I have a set of default styles I use with new projects and want to know whether there are any issues or imperfections with them. Can anyone see anything that could be detrimental or bad in any way? Be as picky as you like. * { margin: 0; padding: 0; box-sizing: border-box; } html { font-size: 62.5% /* m...
I have a sequence, retrieve data from a vendor API, cleanup our stage tables, and write the retrieve data into the database. What I have: public static async Task Main() { try { IDataRetrievalService api = services.GetService<IDataRetrievalService>(); AuthenticationModel authenticated...
Can someone review this implemented solution and provide commentary the code is working well but will need refactor and improve this code. using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using System; namespace PersonUpdateApi.Controllers { public class PersonUpdateModel { pub...
My friend and I are kind of noobs in Python and are looking for ways to improve. We thought it would be cool if we could get some feedback on the following code. It is for a game named "Lingo", which is popular on TV in Europe. Lingo is a popular word-guessing game show on television. The number of letters of a target...
I have this working code which shows the progress bar based on different states ("not-started", "progressing" and "done"). Each state will have its own class. I notice it is not Don't Repeat Yourself (DRY) enough but not sure how I can refactor it. Appreciate your code review. new Vue({ el: "#page", data: { c...
I've been working on a tic-tac-toe backend for an interactive commercial-use display, and was wondering if I could get some feedback on it? #tttcore.py ~ Manages game state, checks win condition, etc. from enum import Enum from typing import Optional, Any, Iterable from copy import deepcopy as copy class OutOfBoundsEr...
I have the following integration test that starts with sending message to sqs queue and ends with checking elastic search if the associated object added to db. The part of application I want to test works like: 1- Takes event from sqs queue 2- persist venue object which is inside the event object in elastic search Thin...
substr() function, not present in standard C library. Syntax: char *substr(const char *str, long start_index, long end_index); The description of function substr() is in the header file "substr.h". The code was compiled using the following gcc flags: -Wall -Werror -Wextra -Wundef -Wunreachable-code -Winit-self -Wparent...
As the title suggests, I'm creating a package manager for VBA which is modelled loosely on conda/ poetry, allowing you to install VBA modules potentially into "environments", but certainly with some kind of dependency resolution so you can keep things harmonious and up-to-date automatically. At the moment I'm working o...
The task is to model a Solar system using OOP. The planets are orbiting and its needs to find distances between planets. My approach is something like this. public abstract class SolarSystem { // TODO } public class Planet extends SolarSystem { private final String name; private final double x; privat...
I created a python code to run the merge command in Google BigQuery, which is used to do UPDATE, INSERT, and DELETE in a single statement. I'd appreciate it if someone could assist me in fine-tuning this code since i believe there are lot of redundant code which can be improved to a greater extent. I have tried my best...
I'm rather fascinated by radio 'number stations', and in preparing for a D&D game, I wanted to use such a method to encrypt complex messages as seemingly random strings of words. I wanted to add obscurity by having every character alternate between 2 different words. After making the one time pad used for encryption, I...
Any future updates can be found at Excel-VBA-ProgressBar What I've been using so far For the last 6 years I've been using a progress form which I wrote in VBA using just Windows API calls. The code (not for review) is here: gist. It has a small demo as well. It worked because there was no DoEvents call. So, although t...
I have a Python logistic project that implements several shipping APIs using class inheritance. Each of those classes must do three things: Fire requests to each endpoint with the proper parameters Serialize and map the original input in order to store it Finally, produce a document according to the specification of e...
I have an array with integer labels in [0, n-1], say arr1=[1, 0, 3, 2] with n = 3. And then I have another array again with integer labels in [0, n-1], say arr2=[0, 0, 2, 3]. How can I find the minimum re-labeling of arr2 in order to make it as close as possible to arr1 in terms of number of nonzero elements of their d...
I have following simple sql code to select the number of rows that meet a specific criteria: SELECT COUNT(CASE WHEN /*condition*/ THEN 1 END) FROM table_name; Verus SELECT COUNT(*) FROM table_name WHERE /*condition*/; Both of them seems to work the same when I only want to do some aggregate function to the data. I ...
import java.text.DecimalFormat; import java.util.Scanner; class Calculations { //global declarations private static final DecimalFormat tspaces = new DecimalFormat("0.00"); double totalamt; public void DataAccept() //method to accept data { System.out.println("This program will determi...
I want to develop an applications where users (students in my university) can upload documents (some sort of a GUI for the drive). I have a Vue application and a NodeJS server which is used as a REST API. Basically, the user should fill the form in the client side. It contains information like the course number, semest...
I am new to data structures and algorithms. I have just implemented an insertion sorting algorithm. I just want to make sure if my code is alright. import java.util.Arrays; public class Main { public static void main(String[] args) { int[] test = {40, 1, 5, 0, 9}; for (int i = 0; i < test.length...
function loopFunction(PDO $pdo, $products) { $pdo->beginTransaction(); foreach($products as $uid => $element) { $isPremium = $element[0] != false && in_array('isPremium', $element[0]) ? 1 : 0; $isExclusive = $element[0] != false && in_array('isExclusive', $element[0]) ? 1 : 0; $isLimited...
This is my first attempt at writing a library in C. I have only included tree creation and in-order traversal function for now, but will expand to have more functions soon. I have three files, tree.h, tree.c and test.c. How can I improve code quality, what are your suggestions? My main concerns are: Optimizations - Is...
I have a Python 2.7 script that loops through GIS polylines and updates a coordinate. The coordinate is called an "M" coordinate (aka a "Measure-value"). M coordinates are similar to X and Y coordinates, but are used for specialized linear referencing purposes. import arcpy connection = "Database Connections\my_conn....
I have attempted to hack together a CV/Resume builder and I would like a review. The aim is to output a styled PDF containing dynamic fields. I have taken a simple HTML file, an arguably bloated CSS file and the below test dataframe data from online. Here is the code: from __future__ import annotations from typing im...
I have my ToString method right here for my BinarySearchTree class private ArrayList<T> inorderList(ArrayList<T> values) { if (left != null) { left.inorderList(values); } values.add(data); if (right != null) { right.inorderList(values); } retur...
I wrote this simple program to compare two strings ,I think it's working properly I just need to confirm that and also have few advices if possible #include<stdio.h> // #include<string.h> int main(){ int value, lenght=0, i=0; char passwd[11], pass[11]="comptiatar"; printf("enter ur passwd: "); scanf(...
I have a working program for a problem, but need to optimize it in a way where the processing time is less than 3 seconds. This is where I found the problem: https://open.kattis.com/problems/battlesimulation Condensed description of the problem: The input is a string that represents a combination of attacks from a mons...
I found this question in Stackoverflow asking why his/her assembly program isn't faster than the C++ program. In his/her assembly program I saw the lines mov rbx, 2; xor rdx, rdx; div rbx, and I didn't even read further. Anyway the question was interesting enough for me to write an assembly program to see how much I ca...
I have a simple website contact form created back in 2017. The form was developed using PHP, PHPMailer, jQuery, HTML and CSS. I would like to make sure the code is up to modern standards and secure. I would also like to switch from PHP to AJAX for success and error messaging (in order to avoid a page refresh). But that...
I wrote a program that creates a directory, similar to the mkdir command. My question is, is this implementation correct? What else could I improve or what problems does implementation have? code: #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <sys/stat.h> #include <stdbool.h> #i...
This music player app hasn't really completed yet but it runs the basic functions of a music player, which include play/pause, volume adjustment, next/prev, shuffle and repeat functionalities. However, the code is running under a single giant class that handles the entire program. It is extremely messy and further impl...
I wrote code that returns how many of X is inside a string. The script works fine, but i was wondering if there could be any changes to improve it. function getAmountOf(letter, string) { let count = 0; let amount = 0; function countAmount() { count += 1; let val = string[string.length - co...
I made the hangman game using OOP. It is the first "big" project I do using OOP. I would like to know if there is something to improve in the program I made. This is the code: #!/usr/bin/env python3 # Hangman game import random class Hangman: HANGMAN_PICS = (r''' ┌───┐ │ │ │ ...
The goal of this program is to create text based tic-tac-toe What I know: Base level java (till arrays & functions) The same goes for c++ What I did: I) Variable count: This used to count the number of total turns, so it can declare tie after 9 turns II) Create 2 functions: OP(this is used to show the grid with all ...
I'm trying to figure out the most accessible and semantic way to allow users to select one or more options from a hierarchical list. Think a taxonomy of categories and subcategories. I came across a Bootstrap Multiselect plugin that emulates a <select> with clickable <optgroup> elements, but the way it's implemented do...
I have a dataclass which is frequently used but is slow because as it processes multiple large datasets. I have tried to speed it up by making it lazily-evaluate, where the data is only read when requested and subsequent calls are cached. Below is a (simplified) implementation for the variables x, y and z import time, ...
Below is a generic implementation of the summary statistics function Median. Discussion of efficient use of std::nth_element and std::max_element (for even number of elements only) is from here. We want the median algorithm to work for ranges of primitive builtin types, as well as complex types. This may require passin...
Assuming I've the following code: public static int dfsDistance(List<List<Integer>> graph, int current, int searchValue, int steps, BitSet visited) { if (current == searchValue) { return steps; } for (int neighbor : graph.get(current)) { if (visited.get(ne...
I found this problem in a book and found it interesting. wrote this class to implement a Least Recently Used Cache with TTL. Goal - LRU cache with TTL Multithreaded. Functions: Get(key), Put(key,value), average() Runtime of get and put can be compromised (but still as fast as possible) for fast run time of avg() Any ...
I have written a simple logger in C++ on Windows that I want to use to log info and errors from multiple threads to DbgView: // dbg.h inline void dbg_info(std::string s) { std::stringstream ss; ss << "INFO:" << std::this_thread::get_id() << ": " << s << std::endl; OutputDebugStringA(ss.str().c_str()); } in...
I'm new to C# but not 100% new to development. I wanted to try writing a Card Shuffle + Card Dealing algorithm using as least as possible inbuilt functions or any libraries and no internet use to practice my C# skills. Here is my code: class cardShuffle { private string[] deck = new string[] {"Ace-of-Clubs", "Ace-of-...
The following function takes the probability of a person aged 100+i dying in the next year (conditional on them being alive at the start of the year) and returns the probability that they will be alive after j years (for 0 < j < 21): import pandas as pd def prob_in_force(): # i-th entry of qx_curve gives the pro...
I've just created a theme handler with React.js. Could my Theme component be polished and improved a bit ? function Theme() { const [checkbox, setCheckbox] = React.useState( JSON.parse(localStorage.getItem("configuration"))?.dark_theme ?? true ); React.useEffect(() => ( !checkbox ? document.body.se...
I'm a college student in my first year of my bachelor in IT. I recently decided to try some app development with Android Studio and Java. For my first project, I made a basic calculator app. Here you can see how it looks: The calculator app: can take multiple digits and floating point numbers as input has operator pr...
I've got a network device that doesn't hold its WiFi connection brilliantly and occasionally drops off the network completely. Although there are dedicated network monitoring tools out there, I thought it would be a nice exercise to write a small monitoring script in Python. I want to check the status of the device onc...
Could the following code be improved in terms of clarity, performance, maintainability, best practices etc? JSONtab library A tool to reversibly convert between an arbitrarily deep nested object and a tabular format, TSV by default. // JSONtab library // A tool to reversibly convert between an arbitrarily deep nested o...
My tool should eventually change all media files' names to one qualified format yyyymmdd_hhmmss [optional desc].xxx: If it's an image, the date is taken from "Date Taken" property of the file. If it's a video it should already have that format otherwise it's renamed to literrally YYYYMMDD_HHMMSS.MP4 If it's a video fi...
This is the implementation of both Deterministic Finite Automata (DFAs) and Nondeterministic Finite Automata (NFAs) on r7rs scheme, using only SRFI 1. The file automata.scm contains the implementation of the procedures to make a DFA (make-dfa), make a NFA (make-nfa) and run either one on a string (automaton-run). The f...
I have read on SO and replicated an indicator for stock prices that works as intended. It's called ZigZag and projects peaks and valleys on historical prices. I pass a pandas dataframe with OHLC prices to my ZigZag class. My problem is that it runs really slow, I have about 70 stocks with 10k rows each. takes about a m...
I would like to download the entire contents from localStorage to a json file (in a "clear" formatting). I've tried this and it works perfectly. However, I'm not sure it's very performant. If possible I'd like to keep the inline syntax. const download = () => ( Object.assign(document.createElement("a"), { href: `...
I have a csv file 1;(same.) 2;Type... 3; (who are you?) 4; I am a talker whom the world has not yet seen. And you? 5; (leave.) 6;Connect to the Internet - I'll leave... 7; (I would like to.) 8;He would like to! And you're a no-brainer guy! The objective was to make it look like row1 Question - '(same.)' - answer- 'T...
This is for a computation for laser physics. The speed is quite slow, which seems to be delayed a lot by the three nested for loops with indices j,k, and l (with comments below). And the computation time seems to be proportional to the fourth power of nx, but I want to increase nx more to ~100. I also guess the 7 indic...
I have finished The mastermind game. Basically, it's a game that has 2 sides, codebreaker or codemaker. If you are a codebreaker, you are guessing the colour code that the computer has chosen. If you are a codemaker, computer trying to solve it. For more Mastermind game rules Mastermind Wikipedia. I am trying to use Ob...
Gemtext is a lightweight markup language designed to serve content over the Gemini protocol. You can learn more about the language here: A quick introduction to "gemtext" markup, or the complete (but still pretty short) specifications in section 5 of this document: Project Gemini Speculative specification. Although it ...
I need to filter my records on the basis of "courseId" which is passed as parameter - Here is my code - public IEnumerable<string> GetStudentIdsByRoleAndCourse(string role, string courseId = null) { var query = (from item in Data.TableForQuery<MasterTable>() where item.RoleId == role sel...
I made the following game in Python applying object oriented programming and I would like to know if there is something to improve. PS: My native language is Spanish, if you see something wrong written in the code let me know. The 23 matchsticks game is played between 2 participants. It consists of placing 23 matchst...