« first day (2852 days earlier)      last day (236 days later) » 

12:00 AM
RELOAD! There are 7331 unanswered questions (89.6186% answered)
 
12:36 AM
Not here to do a code review - soz, not soz. Noted on KeyListener - removed. Admittedly I didn't test my solution but there's enough of a clue to make it work :) I've now tested the solution based on your feedback and updated my solutioin (which works for me). Considering this looks more like an introductory assignment I'm not too worried about throwing a correct exception back up the call-stack and having it handled correctly. Also SO doesn't reward for such comments so I keep my answers minimal. — Rob Evans 39 secs ago
 
 
4 hours later…
4:24 AM
0
Q: Find All Permutations of String in Scala

Kevin MeredithI created the following function, permutations, to produce all permutations of a List[A]. Example: scala> net.Permutations.permutations("ab".split("").toList) res3: List[List[String]] = List(List(a, b), List(b, a)) Code: object Permutations { def permutations[A](str: List[A]): List[List[A]] =...

0
Q: Embedded IoT: local data storage when no network coverage

Vinay DivakarI am working on a part of an IoT project where I have been given a task to develop a mechanism to store data locally when there is no network coverage or if the network is down for some reason. Our application is architected such that, every hour we store the feed/sensor data to a bucket i.e.loca...

 
5:06 AM
Monking
 
6:29 AM
That seems correct. Though note that 1) We do not do code reviews here. Ask about real problems only. 2) Please, ask one question per post only. — Martin Prikryl 37 secs ago
You are welcome. Though on Stack Overflow, we thank by accepting and/or upvoting the answer. + Regarding the second part: That seems correct. Though note that 1) We do not do code reviews here. Ask about real problems only. 2) Please, ask one question per post only. — Martin Prikryl 58 secs ago
 
6:50 AM
0
Q: Strong password generator with symbols that user definies

El Patron SalanI've created program like in the title. Actually I know I could use regex to create pattern and then do some actions from it, but I think my code is clear enough (at least for me :P). There is little thing to correct which is InputMismatch exception that isn't handled. What do you think about my ...

0
Q: SImple pet caring game - console

Ahmed AthirI'm a beginner programmer and i'm looking for interesting projects to improve my low skills. I tried one day to improve my skills by trying to create a small game in which a user owns a cat, and has to feed it and clean it. My main aim of the game(which yet has many illogical things like the neve...

 
7:20 AM
codereview.stackexchange.com might be more suitable if you desire a breakdown of your code although it's still asking a bit much to have someone go through it "line by line" — Iain Shelvington 7 secs ago
 
 
2 hours later…
9:03 AM
If you have working code and you're looking for improvements, you should post your question on codereview.stackexchange.com instead. — Mike Scotty just now
 
9:14 AM
Code Review is the right place, but just as note, you can get rid of the join by just using one string with all the fields and newlines in between. It is probably not much faster. If you care about run-time, you should do some profiling. — Jan Christoph Terasa 16 secs ago
 
 
2 hours later…
10:51 AM
0
Q: merge sort function in linked list

sukeshI am trying to implement merge sort in a linked list in c++. When I execute my code, it runs infinitely no. of time. When I debug it, I found that my mergesort function runs only for the left half infinite number no. of times. That function never called for the right half. I am pasting my whole c...

 
11:28 AM
possible answer invalidation by Shubham Prashar on question by Shubham Prashar: codereview.stackexchange.com/posts/256335/revisions
If you post this on code review I had an answer almost written before this was closed — Jamiec 43 secs ago
 
12:04 PM
0
Q: Add git sub-module in a repo using LibGit2sharp

rediamI'm working with a local Git repository in some .NET code using the open source library used by the Visual Studio Tools for Git, LibGit2Sharp. I need to create some submodules. The code I used was: $ git submodule add <remote_url> <destination_folder> $ git submodule init $ git submodule update ...

 
12:35 PM
This question appears to be off-topic because it is a code review request. This might be better suited to the Code Review Stack Exchange site. Before posting there be sure to read their FAQ to ensure that your question meets their guidelines. — John Conde 7 secs ago
 
12:58 PM
@mediocrevegetable1, as for showing your code, you may want to ask your own question on Code Review, including the two macros in my answer that you've used to make your custom operator. Then, if you put a link to that question as a comment here, I can try to answer you. — Davide Cannizzo 55 secs ago
@DavideCannizzo Actually, just a litttle while ago I macro-ified John P's answer and that seemed to work for the same operator. Unfortunately, I don't think I have any more time today, but when I do, I'm gonna compare both macros to see where exactly the difference lies before I post a question on Code review. — mediocrevegetable1 27 secs ago
 
1:16 PM
0
Q: Is repository pattern used correctly?

user238115I am writting an API backend application using .NET Core and Visual Studio. Here is the solution structure: [ProjectName] - Solution [ProjectName].API - API project containing Controllers, DTOs, AutoMapper etc. [ProjectName].Core - Class Library project containing services and business logic [Pr...

 
Greetings, Programs.
 
2:05 PM
0
Q: TypeScript / JS Overhead and Code Quality

AlphastrickDuring the implementation of strategy-pattern, I thought about speaking code (unfortunately I don't know the actual terminology for that) and came up with this implementation: class Data { clone() : Data { return Object.assign([], this); } } interface Operation { on(data : Da...

0
Q: Close context implicitly in Java EE

ps0604I'm trying to implement the following code in Java EE (Java 11) to access a datasource in Wildfly 20. The objective is to close implicitly the JNDI context and the SQL connection: try (InitialContext context = new InitialContext(); Connection conn = ((DataSource) context.lookup(pool)).getCo...

 
"Now this code works perfectly fine" If the code works, and you are just looking for suggestions to improve, post it on Code Review. — ryyker 53 secs ago
 
2:32 PM
Greetings, Programs.
 
2:46 PM
It never occurred to me to post to Code Review (my code rarely works), how can I migrate? — Christopher Dyer 20 secs ago
 
3:02 PM
Please visit the help center, take the tour to see what and How to Ask. Do some research, search for related topics on SO; if you get stuck, post a minimal reproducible example of your attempt, noting input and expected output using the [<>] snippet editor. In this case the question MAY be a better fit at codereview — mplungjan 43 secs ago
 
3:17 PM
0
Q: How to reduce the overhead and processing power required for this FIFO for a 2D array in ANSI C?

ChrisD91I have a 2D array of fixed size and I've implemented a FIFO function. So, the array will always be full before it reaches the FIFO function, then the FIFO will remove the oldest array, move all of the arrays up by one and then add the newest array to the other end. Basically a queue. Now, this co...

 
4:07 PM
Questions about good practices are opinion-based and therefore not suited for StackOverflow. Maybe you should try asking on CodeReview instead? — Nino Filiu 24 secs ago
 
4:54 PM
0
Q: First c program: Snake with ncurses

rieger60Six month ago I started studying C as my first programming language and a couple of weeks ago I decided to write snake as my first program. The program is written with ncurses and contains four modules: main, layout, controls and gameplay. I haven't added any features yet (score, pause, welcome s...

 
5:20 PM
possible answer invalidation by ChrisD91 on question by ChrisD91: codereview.stackexchange.com/posts/256378/revisions
 
@Donald.McLean Greetings! Greetings! I hope everyone's neural networks are well!
 
@Duga Rolled back, directly affected review.
 
5:37 PM
This is a question for Code Review, not Stack Overflow. Best practices are necessarily a personal or project or organizational preference. There is no one right answer here, and this could ignite a religious war. — jmarkmurphy 20 secs ago
 
6:08 PM
@Peilonrayz cool- that redesign was rolled out recently to CR :) while it may be a bit of an adjustment I hope it is for the better
 
Oh wow that does look just a little different ;) NGL I like being able to see everything without having to click around so much.
And the first CV I see is being closed for MRC rather than UWYA... back to ignoring the problem I go
 
6:27 PM
They made the Tools button more visible.
I guess that's nice.
We'll see about the rest of the changes.
 
I know there might not be many users familiar with PHP and fewer with Yii here, but does anybody have any suggestions on how I could improve this answer?
 
@SᴀᴍOnᴇᴌᴀ You could add a bit about what's actually wrong with doing it like this and the benefits of your approach. Lay it on thick.
Talking about the first half.
I have no opinion on the second half.
 
0
Q: How to make this algorithm written in ANSI C more efficient?

ChrisD91Previous question with background here I would like advice on improving a FIFO algorithm for a 2D array that I've developed in ANSI C. I have written code that uses this algorithm for test purposes. Random numbers are put into an array until all elements are full. The program then asks the user w...

 
@Mast thanks... the OP apparently hasn't been on CR in ~5 years, but on SO within the past few hours
s/few/few+~1/
 
6:46 PM
Requires manual work, but this post will get you a long way toward your goal: codereview.stackexchange.com/questions/197135/…Randy Casburn 7 secs ago
 
shrug
 
Thanks, Santa! 🎅🏽
 
FYI the question isn't necessarily off-topic here (although arguably a bit broader than typical), but with a title like "Forcing uppercase in modified cells", this would make a very fine, well-received post on Code Review, where the "questions" are specifically asking for feedback on any/all aspects of the code that's put up for peer review. — Mathieu Guindon 23 secs ago
 
@SᴀᴍOnᴇᴌᴀ I agree with @Mast. But I don't think your answer is 'bad', your answer is good. Just one of the downsides of being a zombie hunter
 
-1
Q: how to optimise SQL query

shorif2000Can anyone tell me how I can start to optimise this query or recommend anything SELECT t1.id ,( SELECT CASE WHEN COUNT(s1.id) > 0 THEN 'Y' ELSE 'N' END GIANT FROM ccp.comms_matrices s1 WHERE (s1.id = NVL(t1.comms_matrix_id, 0)) AND (s1.iod_id IS...

 
7:20 PM
0
Q: Can this class be improved?

Francisco Núñez Can this class be improved? Is this good OOP design? How can I make this faster? my goal is to improve this script; Although it is not the main objective, I am also open to hearing opinions based on documented and exemplified improvements. Class/library Description: [BOH] Basic Output Handler...

0
Q: Merge into an object from two different API calls

uberI'm working on an app to compare SDKS (their churn and acquisiton rates). I have created an API with two separate endpoints. The first, compares one sdk to ther other and spits out that data for each sdk. The second, simply gets general information about a single sdk. I'm merging these objects in...

 
Ben Popper on February 23, 2021
Investigate a dataset with summary statistics and some basic data visualizations using the Python libraries NumPy, pandas, matplotlib, and Seaborn.
 
 
1 hour later…
8:52 PM
hello
 
@FranciscoNúñez Welcome to The 2nd Monitor
 
thank
@Mast this is the main chat of code review ??
@CaptainObvious zorry for this XD
 
@FranciscoNúñez Yes.
 
0
Q: Is my website's PHP registration system secure?

Anne BatchI would like to know if my registration system is secure. I'm not sure if it is secure, as I'm new in development, and I'm afraid that the system is flawed Also, I'm not experienced in object oriented programming, I would like to know if my script looks a bit like OOP or is simply a set of proced...

 
@Mast Do you think it improves my post or is it still a poop?
 
8:59 PM
See comment.
 
ok
How about a title like this:

class showing a format similar to var_dump - Some methods of this library require some improvements (see description)
 
No.
"Some methods of this library require some improvements (see description)" is explicitly what we don't want to see in a title.
 
mmm this: class showing a format similar to var_dump
 
Most code on Code Review requires improvements. It's redundant to state that in the title.
 
is a short description of what the class does.
 
9:01 PM
@FranciscoNúñez Much better.
 
ok
i have done the update
0
Q: Class showing a format similar to var_dump

Francisco NúñezSome methods of this library require some improvements (see this description): In the constructor I am trying to create the possibility that the user modifies the colors of the output. I think it can improve but I do not know if there is any standard or good practices in this regard, or if there...

 
I know :-)
 
@mast can i add some picture of output of the class???
 
@SᴀᴍOnᴇᴌᴀ ^ Should be better now.
@FranciscoNúñez A picture?
Why would you add a picture?
 
@Mast so users have a visual idea of what the class is currently doing.
 
9:06 PM
Would it be a picture of code or a terminal output?
 
@Mast the current output on browser is highlited like code ....
this is a example of output in browser...
i have a couple of themes see this:
it's like the parsed and comment-enriched version of var_dump; It even allows you to copy and paste as if it were code ...
 
You could add a picture. Ordinarily I'd think adding it as raw text in a code quote would be better, but I'm not sure you'd get the formatting right.
 
@Mast it will never get the correct format; because code appears but it is actually an output in the browser, using the highlight_string of php
 

« first day (2852 days earlier)      last day (236 days later) »