instruction
stringlengths
71
71.9k
I have implemented the following methods in 1 and 2 and need feedback to improve my implementation. Any different approach and ideas are welcome. A static method, minRectangle, accepts an array of rectangles (objects of type Rectangle) and returns the rectangle with the smallest area. Create this method. A static met...
When you turn up the compiler warnings with -Wunused-variable, one tends to then employ an UNUSED() macro, to say something is intentionally not used at this time. But that's not very binding, since it's generally just a void cast (or near-equivalent). Hence if you get the warning, add an UNUSED(), and some time later...
First of all: I'm completely new to C# and therefore I am not quite sure about the garbage collector. I try to implement the USS Protocol by Siemens. I tried it this way: Ready file, byte per byte and pass it to the parsing function USS.RX() USS.RX(byte ucByte): Message Start -> Should be Startbyte 0x02. If true creat...
I have created a code for filtering a list of strings and redisplaying this list. I check if string is starting with a certain letter. It seems to work, but I wonder if I did all right? Havent I forgot about something? public class AlternateRowArrayAdapter extends ArrayAdapter { private int[] colors; private Li...
I created the following one off script and it did the task quite well (1000s of requests / second with low CPU usage - outperformed the previous python script in every aspect). But I am wondering if there are more "gophonic" ways to accomplish this in Golang? (the word for pythonic in Go? :p ) The code was gofmt'd and...
I'm trying to create a scraping API in Express. The API scrapes the different articles featured on the home page. Here are the issues I'm trying to resolve: My code's turning into a ton of jquery select statements. How can I resolve this / How can I simplify my code or extract functions from this giant mass? Are my va...
I have a recursive statement that removesactivities that don't have a resource type for a certain OrganizationID. I was wondering if there was a better way to do this where I can eliminate some of the for loops and use a little more linq private IEnumerable<SubProjectDto> GetProjectAndActivitiesForByOrg(IEnumerable...
I just created my first ES6 module in Node, and first time using promises and I was hoping to get some feedback on it. I am the only developer at my current company, so I cannot get feedback here. I just want to make sure whoever comes behind me in the future can have a clean code base to work in. 'use strict'; var fs ...
I recently wrote a python script that syncs your locally clone repository to its parent repository, so I would like you to review it and help me in improving it. #!/usr/bin/python3 # coding=utf-8 __author__ = "Ratan Kulshreshtha" __github__ = "RatanShreshtha" import os import sys from subprocess import call, check_ou...
I have created an ASP.NET Core singleton service class to act as an HttpClient provider after reading that reusing an instance of HttpClient is encouraged. However, I also want to be sure that the BaseAddress property is kept up-to-date with the value specified in the configuration so I added a dependency on IOptionsMo...
I have an array of number objects, which can be selected only if the orderable quantity is greater than 0. I have a select all checkbox that is checked or unchecked accordingly with this function: self.allSelected = function () { return self.shownNumbers().filter(function (number) { return number.isSelected(); ...
I created a method to test whether the specified input is a double, int or String and then pass it to a 3rd party library which has the methods doFoo which accepts either a String, double or int. This is the method that I would like feedback on: public static void testString(String val) { System.out.print("Origina...
I have a pretty straightforward query that I am essentially hard-coding. I have a table with 3 keys and a description field. The first key has to do with the type of compensation for an employee (Award, Hourly, NonHourly, Staff, Other, and Commission). The next key has to do with Payment Frequency. O refers to One-Ti...
Beginner Python developer here. I was tinkering around with Python and decided to build a currency converter. It takes in input from the user and prints out the converted currency values. The fixer.io API is used to get currency rates. Looking for any improvements that I can make in it. GitHub Code # importing require...
This script provides function T9r, which has some methods to detect, parse and replace tokens "{{ some_token }}" in a string with properties on an object. My use case, to have "composable" json objects or strings, (used for configs), that can be populated with real values at runtime. It's been a while since i worked in...
I've created a basic password scrambler that can run a single string or a file. It will take your character, find the ascii code value of it, floor it, divide it by 16, grab whatever that equals out of the cipher array, and replace it with that character. For example: e@ubuntu:~/bin/c$ ./ciph.exe -h Usage: ciph -[s|f|t...
I am trying to determine what the most appropriate strategy for session management and authentication is for a middleware application which acts to receive a request, send it over to a database, and essentially echo those results back to the client. I have a variety of functions that look like this @app.route('/rest/r...
For a personal project I may need to load and execute something that will basically be a very simple programming language. Though I am not at all close to this part of the project yet and I can most likely use something that already exist (just embedding lua is probably an option) it got me interested to write a simple...
I have a problem where I need to sort an extremely large number of numbers but the numbers are in a narrow range (0..r-1) where r is typically around 10, and after googling around a bit it seemed like a good time to use radix sort. I have the following implementation below (I had to extract it out of a much larger prog...
I have this loop that builds a BOM but it is so slow as I scale it out to even modest data. All the data resides in two database tables. I am pulling the data in as list of lists and then iterating over them. The orders table contains the product serial number and the top level root part numbers that are ordered for ...
I was trying to find any way of developing a "string_id", a non-modifiable string holder that is O(1)-copyable and O(1)-comparable to be used as an id. The "creator" of the string_id is who knows the meaning of each "string_id". So, if two different entites creates two ids, that string_id identifiers represent differen...
I'm currently working on writing a date checker function in C and wondering how it can be improved upon. Q: Write a function that is passed a month, day, and year and will determine if that date is valid. You can assume each parameter is passed in as an integer. Remember to check for leap year. I currently have ...
I am new to coding and made myself my first little program, which lets me calculate the amount of money I make per hour doing a transcription project. While my code works (yay!) and I am proud of my first attempt at creating a program from scratch, I'm not sure I went about it the most efficient way. Could someone plea...
I currently have 2 dataframes, A and B. These dataframes are generated in runtime, and increase in size according to parameters in the program execution. I need to evaluate how many times a value in dataframe A is lesser than all the values in dataframe B. For example: Dataframe A +-----+-------+ | id | value | +-----...
I have been working on plotting time varying functions in Python as my most recent project, and would love input on optimization, proper Tkinter form, and anything that stands out like a sore thumb. To get technical details out of the way, this code has been tested and works on my home box running Linux Mint 18 (4.4.0-...
I wrote a program that given an input string returns a list of tuples in which each element of the tuple is a word given by dropping some number of characters of the original string, preserving order. For example: 'valley' -> [('alley',), ('valley',)] 'friction' -> [('fiction',), ('friction',), ('ricin',)] 'university'...
Usage To create a localenv called sicp, do $ localenv sicp Activate the localenv: $ . sicp/bin/activate Check installed eggs in the local repository: $ chicken-status Install a new egg called 'sicp' in the local repository: $ chicken-install sicp Deactivate the localenv: $ deactivate This is the first time I have use...
I've written the following code in Ruby: class Node attr_accessor :data, :left, :right def initialize(data=nil, left=nil, right=nil) @data = data @left = left @right = right end def valid?(min=nil, max=nil) if @left.nil? && @right.nil? # base case (leaf node) return false if min...
I have the below code that will loop through all worksheets of the workbook and will format each sheet by deleting, change page orientation, page margins and be able to print each sheet on 1 paper. The below code it's working but it takes time as the Call editingPropertiesis quite long and takes time to go through it f...
I have created a very basic animated percentage bar with HTML, CSS, and JS the only problem is that I am trying to devise a way to also animate the increase and/or decrease of the percentage output to go along with an animated percentage bar. In the example below and in this JsFiddle I have successfully created that wi...
This code is working when a paste is done it will force the formatting to be the same as in the destination sheet and will remove space and ChrW from the cells as soon as the paste event is detected. Is there any way to improve the code to work better? Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target A...
I am using the following to retrieve some user info based on IP address. ClientLocation() returns an array with city, state and coordinates. My concern with this is the function is called whenever I want to retrieve different array values. How can this be optimized so that the function is called once, but still retrie...
Since train rides can be long and boring, I've decided to make use of that time and fiddle around with some good ol' C. What I did was to create a way to enumerate words of a certain length of an arbitrary alphabet. Basically, suppose you have an alphabet { '0', '1' } (ooh, binary!) and want to get all words of length...
If you don't play poker this will be hard to follow. In Hold'em and other Poker games you take the best 5 of 7. The class Hand selects the best 5 and scores the hand. Hand implements IComparable so hands may be compared. In simulations will create millions of boards to compare hands so speed is a priority. There are 13...
let name_cache = NSCache<NSString, NSString>() if let name = name_cache.object(forKey: "name") { self.name_text_field.text = name as String } else if let name = dictionary["name"] as? String { name_cache.setObject(name, forKey: "name") self.name_text_field.text = name as String } Is there any way to conde...
I am a beginner learning Java and this is a calculator program I've made. I'm looking for suggestions to improve it and things I could've done better. I don't know OOP principles much, so any and all suggestions are welcome. import java.util.Scanner; public class BasicCalci { Scanner sc = new Scanner(Syste...
Background I have a REST API using MongoDB, Node.js and Express that makes a request to my NoSQL DB and depending on different results, I want to differentiate which error I send the customer. Problem The current version of my code has a generic error handler and always sends the same error message to the client: api.p...
I began learning Haskell last week. I wrote the following to get the next lexicographic permutation of a list. It works perfectly but I feel like I'm just writing a c# method. My long list of where commands just feels like an imperative approach. I would appreciate any feedback if this solution is indeed the way mo...
I've implemented a program that spell checks a website. Here is the idea that I have in mind: Scan all of the words in a web page into a string (using jsoup) Filter out all of the HTML markup and code Use a spell checking algorithm that reads from a dictionary.txt file and uses probability theory to offer suggestions...
Following a teacher's JavaScript code I intend to delete order's lines with AJAX. I have tried the code below and it allows the user to delete line by line but for example for the last line it won't delete it. Function to display order's details: public static function showOrderDetails($id){ $res=DB::execute_sq...
I am using the Bootstrap class .clearfix after every second(or third) <div> to keep each row starting at the same height on all screen sizes even if two divs on same row have different height. I use a hidden <div> at the top as template for information I will get from an ajax call. I have simulated this event in the d...
I'm currently building a small plane with Raspberry Pi Zero W. I wrote a small code which uses UDP to control it. Here I'm resending packets regularly in a thread because of the joystick input (it gives a lot of values when used and time.sleep() in a pygame event loop does bad things). Am I doing it the right way? I'm ...
I'm learning Sass and responsive websites, I've made this simple portfolio website with the help of a bootstrap template (freelancer) and I'd like to know if I'm doing SASS correctly and ways to improve my website code. Also is my project structure correct as a standard? Thanks in advance! index.html <body id="page--to...
I have been interested in trying Rust in a long time, and I finally got around to sit down and start reading "The Book". I have not finished yet, so there are probably a few features that I could have used, but I didn't know about. Anyway, the purpose of this program is to generate a maze (using the simplest "Randomize...
I am working on the problem of finding the minimum path sum in a binary tree, and printing the path. The path can be from the root node to any leaf node. Here is my code in Python 2.7. I am looking for advice for bugs, performance improvement ideas or general code style advice. One specific question is: I am using a li...
This is a continued discussion (from here => Group duplicate files (part 2)) with new code and new thoughts/questions (see special question part for details for new questions), and I decide to make a new post. Here is my source code which group duplicate files together, written in Python 2.7. Any advice on smarter idea...
I just made this Java game loop and I want someone's opinion on it. It's based off what I've heard and read. Let me know if I went about it correctly and if there's any big problems with it. public void run() { long nanosecond = 1000000000; int targetFps = 60; int targetUpdates = 20; long update = nanos...
This code seems a bit long and obtuse for doing something as simple as serializing ajax qet requests. Any ideas on making it more concise? Pub.ajax = function (config_ajax) { var xhr; // get if (config_ajax.type === 'get') { xhr = new win.XMLHttpRequest(); xhr.open('GET', config_ajax.url, ...
Write a program that loops prompting for positive or zero integers of data type long. Then the number of digits the integer consists of (in decimal representation) should be printed to stdout. Entering a negative number immediately stops the program. Output examples: 0 has 1 digit. 999 has 3 digits. etc. (And...
Updated code here on repl.it I have changed the code so the get-input logic is in the class, as separate methods. This means the loop to input multiple orders is much more concise than before. The full code: """Onehunga Pizzas phone orders""" import re import sys # CONFIG # # maximum number of pizzas in one order MAX...
I wrote a class TranslateIt for translating text files with Yandex.Translate service. I feel the code is rather bulky. Is it better to decompose it to several methods? I'm eager to know opinions of experienced people. import requests import os import chardet class TranslateIt(object): """ methods translate...
Please verify whether the code for a move constructor and a move assignment operator is correct. #include <iostream> using namespace std; class MyVector { size_t m_Size; int* m_pInt; public:`enter code here` ~MyVector() { delete[] m_pInt; } MyVector():m_Size(0), m_pInt(nullptr) { ...
I need to generate random integers inside a range [a, b] in C. I used the normal implementation that you will see everywhere on the internet and wrote the following: /** * randRange Generates random integers in range * @param lower Lower bound * @param upper Upper bound * @return random integer between lower and up...
Background I have a query in Mongoose that finds a set of objects, and then returns these said objects together with the total number of them: var itemsPerPage = 4, pageNum = 1; Survey.find({}) .limit(itemsPerPage) .skip(itemsPerPage * pageNum) .then(docs => { if (docs.length === 0) con...
I am very new to javascript and started with a very basic add button to my django app. Everything I found was using jQuery but for only one small script jQuery seems to be a too big overhead for me. Everything is working but I want to get some suggestions regarding coding style: function hasReachedMaxNum(type) { va...
A number is said to be megaPrime if it is prime, and all its digits are also prime. Example: 53 is megaPrime, but 35 is not as it is divisible by 5 and 7. 13 is not a megaPrime number as it contains 1, which is non-prime. INPUT Two integer numbers, first and last are entered. OUTPUT Display the number of megaPrimes i...
I'm totally new in Python and I wrote some code. It is a simple algorithm to smooth objects. I need to find adjacent vertices in mesh and sum their coordinates and after that divide by a number of adjacent vertices. This algorithm is called Laplacian Smoothing. Could anybody point out how to make it better? n = mesh.VP...
This code is working, please find below the before and after data that i need to split as per criteria 1st column with data will be 6 chr, 2nd column 5 chr, 3rd column 4 chr, 4th column 2 chr. Sub splitStyleFabricColourSize() Dim cellRow As Range Dim mergedCells As Range Dim cellInfo As Long On Error GoTo ErrorHandl...
The following code is what I'm using to send a password reset email. The specific part I'm referring to is how I'm setting $message. Would there be a cleaner way to do this or is this about as clean as you can get? /** * Attempt to send reset link * @return bool True if success, false if not */ public function try()...
While profiling parts of my code, I noticed that my Split( ... ) function is rather slow, (about 50% of the time). I was wondering if there was a more efficient way of Splitting a string into a vector. My subject string can be anything between 2 words to well over 1000 words, hence the reason why I would like to sp...
This code is working on the user selection when pressed a button the table will be filtered by the number of criteria the user selected: Sub advancedMultipleCriteriaFilter() Dim cellRng As Range, tableObject As Range, subSelection As Range Dim filterCriteria() As String, filterFields() As Integer Dim i As Integ...
I want to be able to call php functions from Javascript. I thought of doing something like this, for any function I want to call : jQuery function callPhp(func, callback){ $.ajax({ type: 'GET', url: 'callPhp.php', data: {func:func}, success: function (data) { data = JSON.parse(data); ...
I've written a class that will start from a random Wikipedia page, then choose the first link in the main body, and then navigate following the links until it finds the Philosophy page. When I run the testCrawler() method, it crawls starting from 20 pages and then plots the lengths of all of the paths. This generally w...
For example, number 9 has binary representation 1001 and contains a binary gap of length 2. The number 529 has binary representation 1000010001 and contains two binary gaps: one of length 4 and one of length 3. The number 20 has binary representation 10100 and contains one binary gap of length 1. The number 15 has bina...
My task is to find the indices of a vector of booleans that are true. I'm coming from a JavaScript background and would like to learn how to write this in idiomatic Rust. fn main() { let fold_func = |acc: Vec<usize>, p: (usize, &bool)| -> Vec<usize> { if *p.1 { let mut clone = acc.clone(); ...
I had seen a YouTube video making actual Lissajous patterns with sand falling from a pendulum with 2 different periods and looking in the Wikipedia page the looked very easy to simulate. I made a Processing sketch simulating such a pattern. Here is an example output with a = 3, b = 4 (the same as the third Wikipedia ex...
I have implemented the CoR pattern in c++11 using smart_ptr for association between chain of receivers. The client owns all the receiver objects(which can be created and destroyed at runtime) and the receiver object maintain weak_ptr for subsequent request handler. // ChainOfResponsibility.cpp : Defines the entry point...
I have been working on this code for a while and it gave me a lot of headaches before I got it to work. It basically tries to use the MNIST dataset to classify handwritten digits. I am not using the prepackaged MNIST in TensorFlow because I want to learn preprocessing the data myself and for deeper understanding of Ten...
I wrote a simple magic balls game in Python with GTK3. If the user clicks on a button with a ball, this ball will move to the selected point. If the user makes 5 consecutive balls horizontally or vertically, the balls disappear. In my move_ball function, there are many for loops that check for 5 balls. How can I simpli...
I have this class that needs to do three things: Determine if a string is 8 characters or longer Determine if a string has a number in it Determine if a string has a capital letter in it NB: I don't want to use regex. Is there a better way of doing this? class ValidateString def initialize(string) @string = s...
After receiving some great feedback on my original program, I tried to implement everything that was shared and I just want to see if there's anything else that I can change to make my program clean and efficient. This program: Scans all of the words in a web page into a string (using jsoup) Filters out all of the HTM...
I wrote some code to filter a list of links, URLs, with multiple conditions given by file extensions. I want to remove every URL that is not an HTML file. The code is: avoid = [".pptx", ".ppt", ".xls", ".xlsx", ".xml", ".xlt", ".pdf", ".jpg", ".png", ".svg", ".doc", ".docx", ".pps"] links = ["http://www.abc....
This is one of my first attempts to do something practical with asyncio. The task is simple: Given a list of URLs, determine if the content type is HTML for every URL. I've used aiohttp, initializing a single "session", ignoring SSL errors and issuing HEAD requests to avoid downloading the whole endpoint body. Then...
This is a follow up to my original post: I've written a class that will start from a random Wikipedia page, then choose the first link in the main body, and then navigate following the links until it finds the Philosophy page. When I run the testCrawler() method, it crawls starting from 20 pages and then plots the len...
Today I had an interview, where I was asked to solve this question. A \$N*M\$ matrix is called a palindromic matrix, if for all of its rows and columns, elements read from left to right in a row are same as elements read from right to left, and similarly, elements read from top to bottom in a column are same as element...
I plan to flesh this out into a hopefully full 2-3 minute text adventure game, and the most fun part to start with is the combat. The fight function down at the bottom repeats itself quite a bit, the help() function call is in multiple places and I was wondering if there's any way to reduce that? Also general tips on ...
This is a bit of an interesting one. Read about custom Property Drawers in the Unity Docs. Read about MinMaxSlider in the Unity Docs. Unity's EditorGUI tools used for building property drawers expose a default MinMaxSlider, though the standard Unity libraries do not provide a way to use that drawer without custom code....
Code Review's April 2017 Community Challenge has us simulating a multi-way intersection. My emphasis was around safety (don't want cars crashing) and ease of use. I plan on adding "smart intersections" (can detect when a car is/isn't there and change the signals accordingly) and a GUI later on. The sample intersection:...
I want to send multiple broadcast to multiple listeners in go. I can't send data through a channel, because only one listener will get it, except for the close signal (second "multiple" of my title). However once a channel is closed, I can't send any other signal (first "multiple" of my title). Hence I wrote the follow...
I have some code which adds components to a canvas at runtime, WPF application. The user enters some values which translate to the amount of controls to be added and where. There is one canvas which will hold all controls. The controls that get added are rectangles and another canvas. In my MainWindow class I have the...
I am learning decorator design pattern in PHP. Please see what i am doing is correct or wrong, would appreciate your review, feedback, comments, suggestions. <?php /** * NotifierService interface is used as abstraction for Notification Mechanism * * It can be later implemented as EmailNotifierService, PushNotifierSe...
I am trying to extract the students where all of their enrolments are in the Past. Some students can have more than one Enrolment and one of its End Date is in the future while the other one is in the past In the above Sample Data, I want to get only one Record 'BBB' in my result. I managed to achieve it by using ...
I have basic C++ lectures at a university and I don't really know how I can optimize this line of code for a real-time application (I call this function every 5 ms for UDP packet decoding). I would like to have some tips about this code: How can I improve its efficiency (in time processing rather than memory? (declare...
I wrote a camera streaming app for pizero. Since the pizero is too weak to do any video encoding I am using it to just capture usb webcam frames (mjpeg format) and forward them over udp to a powerful pc that does the video encoding. When the light conditions are low there is a lot of noise introduced to the frames a...
public void setMobile(String mobile) { char[] mobileList = mobile.toCharArray(); boolean isValid = true; for(char x : mobileList) { if(!Character.isDigit(x)) { isValid = false; } } if(isValid) { this.mobile = mobile; ...
The following is my little chat room system/structure. I've tried to follow the definition/intent of mediator pattern by GoF: Allows loose coupling by encapsulating the way disparate sets of objects interact and communicate with each other. Allows for the actions of each object set to vary independently of one another...
LeadDetails class: namespace App\Services\Lead\LeadDetails; use App\Library\Localization\Currency; use App\Services\Lead\LeadDetails\MovingServices; use App\Services\Lead\VersionId; final class LeadDetails { /** * @var VersionId */ private $id; /** * @var MovingAppointment */ priv...
The following function has been created for finding "Perfect Numbers". About Perfect Numbers: Wikipedia function findPerfectNumbers(upperLimit, currentTry = 2) { let perfectNumbers = []; let divisor; let sum; if (typeof upperLimit !== 'number' || isNaN(upperLimit) || upperLimit < 2) { throw ne...
I am trying to achieve matrix multiplication using the concept of concurrency and cyclic barrier. Here is the code snippet:- import Jama.Matrix; public class Application { public final CyclicBarrier cyclicBarrier; public Matrix A = new Matrix(200,120); public Matrix B = new Matrix(120,100); public Matrix C = new Matrix...
In my website, I want to show top categories by products' view / sell counts. Since this is not something changes every hour, I want to fetch real results only once a day from database (may be once a week). Here is what I have done: def global_context(request): ## ... some other queries today = datetime.dateti...
Seems to work fine, I guess it won't work if the destination array's size is not defined by a macro, but a variable or something else, I thought about adding a third argument which is the size and let the user enter it, but that might be worse. #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_SIZE...
I am computing a nested loop operation using OpenCL (open computing language). My main question is, given the code outlined below, how might I optimize the speed and efficiency of using the GPU, for instance by using local memory calls instead of global ones? Given some input vector \$V=(v_x, v_y, v_z)\$ (in math terms...
This is one of the first scripts I've written. I set it aside for a month or so and I'm not sure how to go about refactoring it. I'd love to have it be more OOD, but I have much more studying before that, I'm afraid. require_relative 'data_values' #the strings of facts for each city are stored in an array here #any st...
I am working with dates and times which are not necessarily "on point", which means that while I need the times in fixed quarterly sections, I can't make sure that the saved timestamp isn't a little off. I need xx:00, xx:15, xx:30 and xx:45 obviously, but the times could be yy:03, yy:14 and alike, you get the hang of i...
I needed to convert floating point numbers to int/int fractions. Python technically has this functionality, but has issues with rounding errors: >>> (0.1+0.2).as_integer_ratio() (1351079888211149, 4503599627370496) This is what I wrote and I was wondering whether it could be further improved for performance? def as_fr...
I am making a quiz app using tkinter in Python. I will be having a database that will have questions and options to display in application. Is it good to structure the program as shown, or should it be re-structured in some other way? import tkinter as tk def iQuiz(source,row=0,column=0,rowspan=None,columnspan=None): ...
You are driving a little too fast, and a police officer stops you. Write code to compute the result, encoded as an int value: 0=no ticket, 1=small ticket, 2=big ticket. If speed is 60 or less, the result is 0. If speed is between 61 and 80 inclusive, the result is 1. If speed is 81 or more, the result is 2. Unl...
For a school project, I will design and prototype a bicycle brake that uses a four-bar linkage to accomplish its goal. My Python 3 code does this mechanism generation, and implements methods to remove mechanisms I don't think will work well to hopefully give me a good final mechanism to construct. Overall I wrote this...
Problem Statement: Implement a sentence scanning functionality to parse the sentence and return a string to concatenate each word with its number of occurrences, sorted by the number of occurrences in descending order. For example, with the sentence "code review connects the world! share the code" , the function retu...
I have a bunch of code that deals with modifying a large nested set of IEnumerable<DTO's> Basically, this is the structure of the DTO's public class ProductLineDto { ... public IEnumerable<ProjectTypeDto> ProjectType { get; set; } } public class ProjectTypeDto { ... public IEnumerable<ProjectDto> Proje...