« first day (3386 days earlier)      last day (45 days later) » 

12:04 AM
REFRESH! There are 8114 unanswered questions (89.3443 answered)
 
 
4 hours later…
3:38 AM
0
Q: A constexpr, const correct matrix class with compile time checks

dougI've expanded, and enhanced my matrix class which uses, aside from dynamic memory for the elements, only 3, const literals. These are rows, cols, and a ptr. The methods are all constexpr and the example code includes compile time verification of tests which compare compile time hashes against has...

 
 
2 hours later…
5:22 AM
Also if the code works, it is the wrong forum. Ask in codereview instead — mplungjan 39 secs ago
 
6:17 AM
Hi and welcome to stack overflow. I'm afraid you might have the wrong impression of what this site has to offer. It's not a discussion forum, but a factual question-anwer site. Refactoring or code review attend to attract opinionated answers and thus are out of scope for this site. — JHBonarius 58 secs ago
You could try code review. You'll need to give them more details though — JHBonarius 39 secs ago
 
6:57 AM
possible answer invalidation by Sᴀᴍ Onᴇᴌᴀ on question by Oliver: codereview.stackexchange.com/posts/277733/revisions
 
0
Q: Coin Change in Java

Martin FrankInspired by a leetcode exercise, I wrote my own coin changer: You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money. Return the fewest number of coins that you need to make up that amount. If that amount of m...

 
@Duga just added newline after closing code fence
 
possible answer invalidation by Sᴀᴍ Onᴇᴌᴀ on question by Oliver: codereview.stackexchange.com/posts/277733/revisions
 
7:23 AM
0
Q: Is there a way to simplify this code snippet?

user419022I have inherited a piece of code which is itchy for my eyes and am trying to revamp it ASAP. It is built with .NET Framework 4.5. The application has multiple connection strings for different purposes and similarly there are multiple thin POCO classes to load relative connections strings. Let's s...

 
7:48 AM
0
Q: Best practice to access View when using ViewBinding?

Elisa JalavaI am working on my Android project to implement View Binding in classes that previously used Butterknife, a third-party library that was deprecated a long time ago. My code, after the changes, works as intended, but I'm concerned about the code style. Using Butterknife, a View object was assigned...

 
7:58 AM
Your question might be a better fit over at codereview.stackexchange.com. But read their help first to be sure! — T.J. Crowder 15 secs ago
 
8:12 AM
0
Q: yet another fizz buzz

Martin FrankFizzBuzz is a well known Exercise among programmers, but I wanted to add an aspect called "openClosed" principle (from SOLID) App for running an example public class App{ public static void main(String[] args) { FizzBuzz fizzBuzz = new FizzBuzz(); fizzBuzz.addHandler(new Fizz...

 
8:28 AM
@CaptainObvious Yet another Enterprise version too.
 
Does the code work? That's a hard requirement for the Code Review SE. — Some programmer dude 20 secs ago
 
8:45 AM
This is a funny workaround but I think I would have problems with it in a code review :) — Pogrindis 20 secs ago
 
9:00 AM
This isn't a work-around, this is how you reference object members with invalid JS identifiers as names. If your code reviewer would hold this up, then surely they have a better suggestion? — CollinD 13 secs ago
 
9:17 AM
please provide some details as to what have you tried, what is compulsory in your code and what is it you want to change. If you just want a review of your code, please post it at codereview.stackexchange.comHaseeb Hassan Asif 22 secs ago
 
9:41 AM
I feel that this question is better suited for Code Review. I somewhat disagree with the reviewer on some points, but he is right about this - why introduce another dependency and do something manually, when spring does it for you by default? Your approach will also generate doubly serialized json, which will be problematic for consumers of the API. You should not totally abandon gson, there are use cases where it is better choice, but jackson beats it in other situations. Depends on the use case really, but mostly you don't really need it with spring. — Chaosfire 44 secs ago
 
10:19 AM
Codereview would have been a better place codereview.stackexchange.comRand Random 1 min ago
 
11:07 AM
0
Q: Making button work again after refreshing a section with ajax

KyvI would like to use JQuery to update some sections after clicking on a button. Below is the code I am developping. If I click on the div tag with the class previous-wrapper, I will get the attribute data-nb, then pass it to ajax and get a new table content based on that attribute. The column acti...

 
11:32 AM
0
Q: Parsing Nim `Row` objects into `ref object` types in a readable manner

Philipp DoernerI've been working on adding a feature to an ORM that would allow executing custom SQL, receiving rows and parsing them into a user-provided object-type. This becomes rather tricky due to an object possibly containing other, nested objects. This question concerns itself mostly with the part of par...

 
12:21 PM
0
Q: Delete individual products/boxes with checkboxes won't work

BorkI am having trouble with delete.php, whenever I click DELETE, it takes me to delete.php?delete=Submit, I have attempted several solutions, but nothing seems to work, here is the code... index.html <nav> <button class="add-btn" id="addBtn"> <a href="product-add.php">ADD</a> </button>

 
1:16 PM
put all the repeated code in a method, and call that method each time instead of just duplicating the code. This question, however, would be better suited on codereview — Stultuske 9 secs ago
I’m voting to close this question because it's more suited for codereview.stackexchange.comStultuske 37 secs ago
 
1:36 PM
0
Q: Need advice on how to shorten the code

InjectionI wrote this method for 31 days in a month. It turned out to be a very large code. Please tell me how to shorten it. In an attempt to create a function, I don't know how to pass this method to Tabel::getName, Tabel::setName, Tabel::get01 ... Tabel::get31 Grid.Column<Tabel> nameCl = grid.addColumn...

 
Monking
 
 
2 hours later…
3:20 PM
Monking
 
3:47 PM
Welcome! FYI - this might fit better on codereview.stackexchange.com (though you should review their guidelines before posting). As written, though, it's not a programming question and is off-topic here. Also, it's couched as a bug-bash challenge (and this really isn't what Stack Overflow is for). — David Makogon 1 min ago
 
4:00 PM
Monking
 
Welcome! This is off-topic here, but it might fit on codereview.stackexchange.com (just read the guidelines first). — David Makogon 37 secs ago
 
 
2 hours later…
6:10 PM
0
Q: Is there a better way to update the related data in Entity framework core 6.0.7?

Mugil KarthikeyanRole Entity has multiple SkillRoleRequirement, Education & Experience public class Role : AuditableEntity { public Guid Id { get; set; } ...... public IList<SkillRoleRequirement> SkillRoleRequirements { get; } = new List<SkillRoleRequirement>(); public IList<Education> Educatio...

 
6:27 PM
What's the assignment? Note that to get optimization help with working code, you should ask on Code Review. — outis 28 secs ago
 
0
Q: Recipe website with api and json - vanilla js - optimization?

emma673rI'm new here and posted this on stack overflow but got told i should post this here instead so here i am. I'm training javascript and using apis. So i'm building a recipe website that lets you search ingredients and finds you recipes with it. Here is the link: https://www.themealdb.com/ I found s...

0
Q: LeetCode, 108. Convert Sorted Array to Binary Search Tree, not able to pass a test case

FunPROGI'm new to programming, and I'm doing problems on LeetCode to practice. I'm currently stuck on question 108. Convert Sorted Array to Binary Search Tree: Given an integer array nums where the elements are sorted in ascending order, convert it to a height-balanced binary search tree. A height-bala...

 
7:15 PM
@CaptainObvious hmm per this meta answer it seems that might likely be off-topic since the OP knows it isn't working for at least one case
I left a comment to ask OP if they know how many cases it passes for
 
7:28 PM
If the code works, but you are seeking optimization, you ma be better off seeking assistance at codereview.stackexchange.com. — Chris 42 secs ago
 
 
1 hour later…
8:28 PM
Monking
 
@SᴀᴍOnᴇᴌᴀ A programming challenge question that asks for debugging help instead of a review of what does work is unsalvageable, IMO.
 
0
Q: Palingram finder running in worst time than source material

Areeb Hussain QureshiThis code I wrote from chapter 2 of 'Impractical Python Projects' by Lee Vaughan. I got a dictionary.txt file from: https://inventwithpython.com/dictionary.txt The program 1. Loads the dictionary. 2. Cleans it 3. Finds palingrams 4. prints the palingrams. The dictionary file has about 46,000 entr...

 
 
1 hour later…
9:48 PM
@Mast I figured it would be, but wanted to not close it before knowing it wasn't something like a rounding error (mentioned in the aforementioned meta answer)
 
0
Q: Simple goroutines to make multiple http calls

riheI have a program which calls a lot of urls with the help of a goroutine and assigns the result to a mapping. As a beginner in go I choosed the simplest implementation as possible. I have ended up launching a goroutine inside the main() function which calls the goroutines that are responsible for ...

 
 
2 hours later…
11:30 PM
Since the code is producing the correct results, it would be better to ask on Code Review for improvements. — outis 54 secs ago
 
11:43 PM
Since the answer appears to be a simple "no", it's better to focus on the overarching issue of performance and ask for assistance on Code Review. — outis 22 secs ago
Code review maybe? — Dale K 19 secs ago
 

« first day (3386 days earlier)      last day (45 days later) »