« first day (3612 days earlier)      last day (412 days later) » 

12:07 AM
REFRESH! There are 7375 unanswered questions (90.3956 answered)
 
12:43 AM
@skiwi lol was going to look into using Azure DevOps in the near future for work
 
1:33 AM
 
 
9 hours later…
11:00 AM
0
Q: A simple probabilistic AI for generating random sentences in Java

coderoddeMotivation I have this repository. It contains a program that analyzes an input text file and builds a word graph: in the graph, each node represents a word in the analyzed text. Now, if there are two consecutive words, A and B, we create a directed arc from A to B. When the graph is built, the l...

 
 
3 hours later…
1:40 PM
@SimonForsberg Would you be willing to review this as-is? — Mast ♦ 22 hours ago
@Mast My comment was the best review I could give at the time ^^
I do think the question could use some improvements though, see my last comment.
 
1:58 PM
So it's not ready for re-opening?
I've read your comments. It looks like you're advocating re-opening it:
@TobySpeight This is a Jetpack Compose modifier. Some more context could be helpful for sure, like the whole composable that is using this modifier, but for someone who knows Jetpack Compose, this is quite reviewable. — Simon Forsberg 22 hours ago
If the question is not good enough, the best thing that can happen to the question is remain closed till OP decides to edit it and make it good enough.
If it is good enough, it should be reopened.
 
2:41 PM
If your code works but you're looking for advice, try CodeReview. — Dour High Arch 33 secs ago
 
 
1 hour later…
3:49 PM
@Peilonrayz I've been working for a year already on migrating our 30 year old C++ build system to something a bit more modern
Also fun way yesterday to notice that some files erroneously ended up being ignored by .gitignore but were present on my own PC and everything built without a problem
Monking
 
4:23 PM
@skiwi CMake?
@skiwi Always bad when something that shouldn't build builds properly.
How did you find the problem in .gitignore?
 
5:14 PM
@pacmaninbw NMake actually, and RCS as version control system
 
5:29 PM
I think this question might be better suited for codereview.stackexchange.com. — Bas van der Linden 44 secs ago
 
6:05 PM
@skiwi RCS is ancient! I used it back in the 80's and 90's.
 
Question asking for feedback should be migrated to codereview.stackexchange.comphd 25 secs ago
 
6:34 PM
I remember using SVN and learning about Git. People told me SVN was ancient. Now you're telling me some reaction control system can do versioning as well?
 
@Mast :-)
Unix based system originally, we used SCCS before we used RCS.
Git is a real improvement over all of them.
Even SVN was not a distributed system. Local repositories are magic.
 
6:55 PM
Hah, both SVN and Git can be run locally.
 
7:21 PM
@pacmaninbw (:
 
I like the approach and doing it specifically is clearer (although I've had to do it so much in my typical codebases that the general approach helps). I strongly advise against having the static global const name 'shadow' the type name, which will trip future devs. The use of CAPS for statics is a common convention across a few languages but anything distinct from the type name is better (e.g. userTypeList if that's more your style). Unrelated to the shadowing, in code review I would reject any runtime value that had PascalCase. In Typescript, that is conventionally reserved for types. — cefn 46 secs ago
 
The biggest practical annoyance with RCS is that it's file-based and not commit-based
And somehow tooling support isn't the best anymore D:
 
7:37 PM
0
Q: Check validity of string, used return False too often? (CS50 plates.py)

DW98Firstly, yes I'm a beginner. The code does function correctly but it looks ugly and I'm unsure if it is easily readable. I think my issue is the fact I've used 'return False' 5 times in a single function. Could this be written better? If so, is it very bad or just a slight tweak(s)? ` def is_vali...

 
8:29 PM
0
Q: Mapping pandas' Series to dataclasses

t3chb0tI've got something really simple this time where I'm mapping pandas' Series to dataclasses with a oneliner helper function (as I have several models): import pandas as pd from typing import Any from dataclasses import dataclass, fields def create_dataclass(data: pd.Series, factory: Any) -> Any:...

 
 
3 hours later…
11:04 PM
0
Q: Most compact data format for a shopping cart

Raees IqbalI'm trying to build a format that can represent the user's cart on my website in the most compact way. The website is related to computer parts and there are 23 product categories. Each product has an unsigned integer as the product id. The product ids can range from 0 to a couple of million mayb...

 

« first day (3612 days earlier)      last day (412 days later) »