TransWikia.com
  1. All Categories
  2. Code Review

Code Review : Recent Questions and Answers (Page 19)

Find answers to your questions about Code Review or help others by answering their Code Review questions.

std::array and std::vector Type Arbitrary Nested Iterable Generator Functions Implementation in C++

This is a follow-up question for the previous questions about recursive functions, including A Summation Function For Arbitrary Nested Vector Implementation In C++, A recursive_count_if Function For Various...

Asked on 02/02/2021

1 answer

Finding duplicates in multiple lists for configuration validation

I have created helper class for configuration validation, the main purpose is to find any human "errors"in the configuration for the app. the case is that any type of...

Asked on 02/01/2021 by Arkady Levin

2 answer

Microservice in Springboot

I wrote two microservices in Springboot and tried to follow the best practices. I would appreciate any suggestions about any improvement that I can make on the whole codebase. What...

Asked on 02/01/2021 by forhadmethun

1 answer

10 Kinds of People

Follow up to this question: 10 Kinds of People Open Kattis Problem Time Limit Exceeded C++ Solves the puzzle linked in that question. I use Dijkstra algorithm to find...

Asked on 01/29/2021 by Martin York

1 answer

Generating product variants in Ruby

Based on the sample variants, I need to get all combinations of all variants. In the example I have 3x3x2=18 variants.## SAMPLE VARIANTSsizes = ['small', 'medium', 'large']colors =...

Asked on 01/29/2021 by dcangulo

1 answer

Structuring code logic for events on laravel controller

The code below will store a base64 image on another website and create an event to display the image on a Vue page in real time. It works fine and...

Asked on 01/28/2021 by Grey

2 answer

Handling Circular References Without Recursion

Despite the many decent answers to this question, one was unable to find an iterative solution. Here's what I came up with: Code:type CircularReferenceHandler = (parentKey: IndexKey, parentValue:...

Asked on 01/27/2021 by Kittoes0124

2 answer

vector<tuple > to map

i have an vector<tuple<A,b> > v and want to make a map<A,B> from iti came up with 3 variants:std::transform(v.begin(),v.end(), std::inserter(map,map.begin()),[](std::tuple<int,char> t){ return std::make_pair(std::get<0>(t),std::get<1>(t));}); std::for_each(v.begin(), v.end(),...

Asked on 01/25/2021 by Valerij

1 answer

naming convention for atomic design

please let me know if this question doesn't meet community standard for code review (I will delete it) Hey, I am probably terrible in naming files, functions etc. We follow...

Asked on 01/23/2021 by iRohitBhatia

0 answer

An Implementation of Two Dimensional Plane as Monochromic Image Container with std::unique_ptr in C++

I am trying to implement a monochromic image container with std::unique_ptr. The example usages The example usages is as below.int main(){ auto test_data = std::make_unique<unsigned char[]>(100...

Asked on 01/21/2021 by JimmyHu

1 answer

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP