« first day (2417 days earlier)      last day (44 days later) » 

12:00 AM
RELOAD! There are 6300 unanswered questions (90.0856% answered)
1 hour later…
1:17 AM
Please read about what's on-topic in the help center. If this code works, it's off-topic here. Maybe Code Review would be a better place to ask? — Chris 53 secs ago
1 hour later…
2:18 AM
Code Review might be a better place to ask. But please make sure to take their tour and read about what's on-topic there before posting. — Chris 33 secs ago
@Edward V1 of the Android app I was doing to train myself for this gig is basically done. ;)
2:34 AM
Q: Traverse materialized path hierarchy for children nodes

Avi KaminetzkyI have a sorted list of materialized hierarchy paths: paths = ['10001', '1000100001', '100010000100001', '100010000100002', '1000100002', '100010000200001', '100010000200002'] I am getting the immediate children paths (nodes) for each non leaf node. steplen = 5 # size of each hierarchy st...

Q: Is this a valid implementation of the Selection Sort Algorithm?

Flavio EspositoI have tried to implement the Selection Sort Algorithm in two different ways, and I was just wondering if that is considered to be a valid implementation of that algorithm. Would that be also considered an efficient implementation of the algorithm, or are there different and more efficient ways? ...

2:45 AM
possible answer invalidation by Jamal on question by Suraj Sharma: codereview.stackexchange.com/posts/234050/revisions
3:06 AM
@Duga @SimonForsberg
2 hours later…
4:52 AM
3 hours later…
7:35 AM
@Duga that are actually being used @SimonForsberg
8:26 AM
Q: Standard practices for employing Java Builder design pattern

simplisagarI am in the process of using Java Builder design pattern to instantiate a class that has optional member variables and need some suggestions on the standard practices. The code is as below: public class Outerclass{ //Instance variables ... //Private constructor private Outercla...

Q: Simple game to learn common port numbers for Sec+ exam

andrewtwThis is a basic game asking for the common port number for a protocol used. I designed it with the intent on helping myself and others who are going after their Sec+ exam to memorize the ports needed. Any in cleaning up the code or better ways to process the lists would be most appreciated. im...

8:47 AM
Q: Kotlin primary constructor and inheritance

Michael PiefelThis question could be generalized, but it crept up while creating a Kotlin @Entity class within the Spring Data framework. Each entity shall extend AbstractPersistable, and it usually has quite a number of fields: @Entity class Book( var author: String? = null, var title: String...

9:00 AM
possible answer invalidation by Suraj Sharma on question by Suraj Sharma: codereview.stackexchange.com/posts/234050/revisions
9:15 AM
possible answer invalidation by Suraj Sharma on question by Suraj Sharma: codereview.stackexchange.com/posts/234050/revisions
9:28 AM
Q: Accessing function of class A from RESTful API that runs in class B

po.peI have the following code import time from flask import Flask, request from flask_restful import Resource, Api import threading app = Flask(__name__) api = Api(app) class A: def __init__(self): self.x = 5 def increment_x(self): self.x += 1 def get_x(self): ...

9:53 AM
Weird error : "It was not possible to perform this tag search at this time due to an unexpected error. "
10:15 AM
possible answer invalidation by Blasco on question by Blasco: codereview.stackexchange.com/posts/233882/revisions
Perhaps you wanted to post to Code Review? — Antti Haapala 53 secs ago
10:30 AM
possible answer invalidation by Blasco on question by Blasco: codereview.stackexchange.com/posts/233882/revisions
10:51 AM
@AaditMShah API. I tried ask a question here: codereview.stackexchange.com/questions/233983/… but no answers so.. — Karl Morrison 9 secs ago
11:23 AM
@Mast Oh crap
@Duga looks like that user might want to delete the post, @Vogel612 expect a potential flag. I have added a comment though telling the user a bit about the process
Q: Tracking variables in Java

StevenI am studying for a course in Java and I have trouble with the following question: Let the classes A and B be class A{ int g; B b; A (B b){ this.g = b.g-2; this.b = b; } void substract(){ g -= 1; } } class B{ int g; A a; B (int g...

2 hours later…
1:17 PM
Q: Simulated scale balancing using lists of weights

DaveI'd like a more elegant, solution to the below problem. I'm trying to have a simulated scale balance by having each side's total be the same. The scale has two weights(left and right side) and some spares: weights = [3, 4] spare_weights = [1, 2, 7, 7] A maximum of two weights can be used fro...

1 hour later…
2:18 PM
Q: Async collection loading for display in WPF/MVVM

wondraIn order to improve UX (User Experience) in WPF for huge collections, I would like to load collection items in asynchronnous and staggered fasion. While the WPF UI is virtualized by default, there very little support for data virtualization. My goal in not to implement full data virtualization bu...

@Mast or any moderator does this still need to be closed? codereview.stackexchange.com/questions/234105/…
@pacmaninbw IMO, yes. See my latest comments.
A proof-of-concept is not necessarily off-topic, they can lead to magnificent questions, but there is no problem description. So what does it solve? Nothing.
3:00 PM
Q: JavaScript coding style for initializing variables

Ray ButterworthI've stripped most of the code and comments from what follows. My question is about the style that it is written in, not about the correctness of the code itself. In particular, I've never seen anyone use this way of defining and initializing variables. The idea is to keep all the definitions t...

@Mast Vogel612 took care of it.
Scott C Reynolds on December 16, 2019

Ed note: This is a part of series where an author plays both sides of an issue, one of which is obviously terrible. Can you guess which is which?

Our industry needs to own up to something we’ve all known for a long time: whiteboard coding interviews suck. At best, they’re ineffective at measuring a candidate’s capacity and aptitude for the real day-to-day work of a developer, and at worst they’re an inhumane ritual that amounts to little more than fraternity hazing.

I have never, in over 20 years as a professional developer, had a single project that required me to stand at a whiteboard and impl …

3:38 PM
I'm voting to close this question as off-topic because questions about how to improve working code should be asked on Code Review instead. — EJoshuaS - Reinstate Monica 50 secs ago
4:22 PM
Q: Why is this function called without () or (argument)?

njbootI am working on JS30 series, and below is the working code from one of the projects. Both functions playSound and removeTransition take an argument e. But when they are called in an addEventListener event, there is no argument/parameters/ () at all. Take the playSound example. Inside the addEve...

@CaptainObvious OP is looking for an explantion of someone else's code.
@Duga User added output.
5:06 PM
5:19 PM
@brug RBA
5:29 PM
@Mast There's a bit of a disconnect between "Code Review is one of the more friendly sites on the network." And a CR user downvoting and voting to close incorrectly seconds after of a question is posted. If that's what friendly is, then I don't really want to know what unfriendly is...
If you want a code review use codereview.stackexchange.comR. Richards 20 secs ago
5:45 PM
Q: Adding conditional check to display information in angular 8

TomI am displaying the following information in angular 8 application. I need to display only the partnerName if it exist. <h1>Financial Game Plan<br>of <span>{{ name }} and {{ partnerName }} </span> for {{ currentDateString }}</h1> I have done the following. Could you let me know if it is corre...

Q: JUSTIFY.JS | How to enhance function that justifies text

Mikey AkamiheOn Codewars, there is a challenge where the goal is to justify an str into a certain len. I have managed justify text correctly but there a few flaws that I am stumped on: a word that are to long for a length, and short length that causes nothing to happen. I would appreciate any possible solutio...

6:01 PM
@Peilonrayz The majority is friendly. Can't help the exceptions.
I'm voting to close this question as off-topic because it belongs to Code ReviewForceBru 43 secs ago
Q: How to add a costume dependency property to a button in wpf

AbdelmalekAm910I'm learning by doing and i'm trying to figure out how to add a costume dependency proprty to a button here is the style in the resource dictionary <Style TargetType="{x:Type Button}"> <Setter Property="BorderThickness" Value="0"/> <Setter Property="Background" Value="Gray"/> ...

There is no actual question here. This sort of post belongs on codereview, as @R.Richards suggests. — Rich 50 secs ago
Questions asking for source code reviews are off topic here. Please review the how to guide on asking questions. stackoverflow.com/help/how-to-askReactgular 7 secs ago
2 hours later…
7:49 PM
Q: Java OOP Temperature Converter

victorvalleI am doing a college exercise and would like to know how to improve the execution of the idea. The idea is to create a program that converts temperature measurements. Main.java package app.cnv; public class Main { public static void main(String[] args) { Celsius celsius = new Celsius(37)...

Q: Using PHP goto Labels for code folding

Mukarram KhalidI've been using PHP labels in my Controllers for code folding. PHP labels are actually used with goto statements. But I'm using labels only because it's so much easier to fold my code in different IDEs using labels + curly braces, and I can use labels as titles for different sections of the code....

considering heading on over to codereview.stackexchange.com. Be sure to read the rules before posting. (ie they will want the code in text in the post, not a screenshot) — user1558604 26 secs ago
8:09 PM
Q: Search of path in lists of lists

AnnGood evening everyone! I am newbie to python and don't understand some principles of nice programming style and etc. Right now I am fighting with my code the point where I am struggling something like this: List_of_lists= [['a','a','b','a','b','a','b','b', 'a'],['a','b','a','a','b','a','a','a...

@CaptainObvious Can I have codes question
8:30 PM
Q: Avoid passing the same value to helper each time

AdamI am using blade templates from Laravel inside a Mailable class. For one mail, the blade.php file looks like this: {{ trans_choice('larum :orgas | larium :orgas', $multiple, ['orgas' => $orgas])}} {{ trans_choice('nanium :orgas|asdads :orgas', $multiple, ['orgas' => $orgas])}} {{ trans_choice('...

9:08 PM
Q: Java implementation of Conway's Game of Life with GUI

chrysaetos99I've implemented the Conway's Game of Life in Java, including a GUI. Here's the code of the two classes I wrote: GameOfLife.java public class GameOfLife { public static void main(String[] args) throws InterruptedException { Gui gui = new Gui(); int [][] array = new int [...

9:21 PM
@brug: HI! What are you working on these days?
I thought your "orbits" question was interesting and well done. I'm not a C# guy or I'd have taken a try at that one.
Hey @Edward ! I started picking up C#. I'm doing Advent of Code in it this year to get a little practice with it. On top of that I went back to school and am trying to get a degree in CS
Nice! Busy year for you, then.
@Edward Thanks! That means a lot.
I have a few more work items to finish up and then I'm going to get to play with code. :)
Nice. Anything in particular to work on?
9:28 PM
Yes, I've been working on this:
Q: CodeReview question markdown downloader

EdwardThis is an update to my earlier question From Q to compiler in less than 30 seconds. As with that version, this Python script automatically downloads the markdown from any question on Code Review and saves it to a local file using Unix-style line endings. For instance, to fetch the markdown for...

My goal is to be able to push one button within the web browser and get the code downloaded, formatted and ready for compiling.
I'm very close, but still have some tweaks to do on the javascript portion.
It's an unholy mix of javascript, Python3 and C++ and I feel like I'm only competent in the last one. :)
@Edward haha at least you feel competent in one.
I'm voting to close this question as off-topic because this question is about effectiveness and not about a problem. This question is better suited on code review — Andreas 39 secs ago
@brug :) Could be an illusion.
What about you? I imagine you'd be done with the semester by now.
We do trimesters so it isn't actually over yet
It ends the first week of January
Ah, so do you have exams the first week of January?
9:32 PM
I'm taking Programming I this term and it is comically easy
@Edward yup
is there a platform for code review? didnt find tag for that — victor 35 secs ago
@brug Nice! Have you a particular favorite area of CS that interests you?
@Edward I don't know. Most of it is interesting to me. I started with games but it doesn't have to be that. I just like making things. I like putting pieces together like a puzzle until eventually, you have a picture. I also like algorithms. My whole life I have always tried to do everything I do as efficiently as possible (I'm not always good at it but that's another story.) That's why I chose C++ when I first started learning to code.
If you already have working code, then you should ask this question on codereview.stackexchange.comjaco0646 10 secs ago
Welcome to Stack Overflow! If you want help improving working code you should post this on CodeReview.SE. If you do decide to do so please delete the question here. — NathanOliver- Reinstate Monica 15 secs ago
@Edward How long have you been doing software, and what were you into when you first got into it?
9:53 PM
Q: Implementation of a deque using an array in Python 3

TaimoorAhmadI created this double-ended queue using list. I supported the standard operations such as push, pop, peek for the left side and the right side. I used an integer mid to track the midpoint of the deque. This way elements can be inserted to the left or to the right appropriately. Here is a list of...

@brug I love puzzles, too and also started with games. But that was in the late 1970's, so I've been at it for quite a while now.
I should probably be better at it than I am by now!
My first experience personally interacting with a computer was in 1969. There was a computer demonstration where you could play tic-tac-toe against a computer using an oscilloscope and light pen. I was fascinated and deeply hooked!
Fifty years later, and I still find it amazing and fascinating.
Do you have a career aim in mind or are you still exploring?
(and "both" is an acceptable answer!)
10:10 PM
@Edward Does everyone feel this way forever? It feels like a very common theme. As for my career, I don't know. I do enjoy games but I've heard a lot about that industry that is kinda a turn off and I'm not sure if I actually want to work in that culture. Otherwise, I just don't know. I would love to get a job writing code somewhere and start to get an idea of what I am getting into.
After all I'm not getting any younger.
@brug I don't know about feeling that way forever, or even continuously.
Some days I'm just annoyed!
I've never worked in the game industry, but I hear it's brutal.
My thing is embedded systems.
Your idea of just starting somewhere and figuring out how it really is, is smart. Good plan!
@Edward Thanks. To be honest people ask me that a lot and I never know how to answer. I just like writing code... It isn't that much more thought out than that. Embedded systems sounds fun but daunting... I'm not sure I've really accurately depicted it in my head though. ><
@Edward 50 years ago.. damn that's a long time
@brug I've seen your both your questions and answers here and you have nothing to worry about. You're already quite competent.
"Keep an open mind and try many things" is about all I have that might pass for "wisdom". :)
@skiwi Yep. I can't believe it myself sometimes!
I'm glad I got a job where we make an application with which you can create applications, giving a lot of generic problems to tackle
I still haven't quite found a similar system, I think DBase comes the closest of all..
10:19 PM
It comes up surprisingly frequently. Usually some lazy sod (like me!) says "hey, this is boring and repetitive -- let's automate it!"
@Edward Thanks! That means a lot! I pretty much learned how to code by reading through your answers and all of the others over in the tag
@brug Oh dear! I hope you had more competent guidance than that!
Nope. The internet has been my only teacher ;]
I did a lot of self-study early in my career and then discovered "pockets of ignorance" -- stuff I thought I should have known but did not. I finished a degree and then discovered there are only more things I don't know diddly about but should. It's a never-ending battle, (but fun!)
I learned a lot, but there are even more things to know, so I guess I'm steadily losing ground!
I tried to do it around the turn of the millennium with HTMLGoodies. But there just wasn't enough information out there at the time and I didn't get very far. But then I started again a few years ago and between SO and CR it has been a lot easier to figure out.
Yes, the whole more you know the more you realize you don't know paradox.
10:26 PM
Yes, I rely on CR and SO very often, which is why I try to contribute something back when I can.
I feel like my whole life is an ever expanding understanding of just how ignorant I am.
@Edward Same. Even though I have often felt like my contributions are minimal. I give what I can.
If you haven't already read it, I would highly recommend Stroustrup's "The C++ Programming Language" book. Not only does it tell what you'd expect (how to use C++) but it's also interesting to see how the inventor of that language describes how to use it. I learned a lot from it.
@brug Benjamin Franklin once said "“Being ignorant is not so much a shame, as being unwilling to learn.”
Well I am definitely willing to learn
eager in fact.
Thinking about that I haven't contributed to CR for a long time
Q: Python OpenGL snake

RastlynSo i decided to dust off my python and OpenGL knowledge and make a simple snake-like game. I will be really grateful for any critique or improvement. snake.py import sys import time import random import configparser from PySide2.QtWidgets import ( QApplication, QWidget, QVBoxLayou...

10:43 PM
Say, could of of y'all upvote an answer or question of mine? I'm 10 points shy of 200 for the day.
@Edward Pleasure :)
@Phrancis Thanks! Well I have to go cook some lentil soup now. Ciao!
@Edward Sounds yummy, enjoy!
Q: Utilize loop or other efficient way to find string and copy offset columns to certain cells

victorI am trying to find certain strings in MasterSheet and copy offset columns (3 columns) values in the specific columns in receiver sheet. So far i have this code doing exactly what i want to do Sub FindString() Dim MasterSheet As Workbook 'Master sheet where data is coming from Dim WSLHD As ...

11:01 PM
Maybe you should throw this question up in code review. You would get better answers as this code isn't broken, just has some overhead. — Train 57 secs ago
11:15 PM
Q: Populates Data from one Workbook to Another

Zack EAnother code clean up I am working on. I have been breaking up my code based on things I have learned here on CR. The code below all works and functions as expected, but I know it can be streamlined more and would like to see how this can be accomplished. The code below was combined into one c...

Q: Convert an array of doubles to a concatenated Hex string

EthanI'm working on a tool that converts data between two systems. System 1 presents me with arrays of latitudes and longitudes as doubles. System 2 requires an input of that array as a single Hex string. I've been calling the following method to do the conversion, and then appending a string with th...

11:25 PM
@CaptainObvious hmm... doesn't seem like a CR question, but more likely a fit for software engineering, right?
11:36 PM
Q: Use of Factory pattern — how to implement it

emilecollinI am trying to figure out how Factory pattern works. I implemented it with TypeScript in this github repo: https://github.com/emilecollin/factory_pattern Basically this is emulating spaceships gaming logic: the program will ask you to input in the terminal one of these options: "alien" or "zombi...

@CaptainObvious nice avatar!
11:53 PM
@brug The old "the more I learn the less I know" adage

« first day (2417 days earlier)      last day (44 days later) »