« first day (2614 days earlier)      last day (1400 days later) » 

12:00 AM
RELOAD! There are 6790 unanswered questions (89.8756% answered)
 
12:45 AM
possible answer invalidation by S0AndS0 on question by S0AndS0: codereview.stackexchange.com/posts/244488/revisions
 
1:08 AM
0
Q: Bash script to mirror XWindow to remote SSH host

S0AndS0The source code within this question aims to provide a short-cut for mirroring a local XWindow (or session) to a remote host via SSH port forwarding, eg... x11vnc-push-xwindow --id=none raspberrypi The ReadMe file contains more detailed instructions for setup, but the TLDR is... Clone mkdir -v...

 
 
2 hours later…
3:17 AM
StackOverflow isn't a code-review site. You want codereview.stackexchange.comPhil 25 secs ago
I’m voting to close this question because it belongs on codereview.stackexchange.comPhil 13 secs ago
@Student_new: There's a whole site, codereview.stackexchange.com, where beginners can post their code (which is often really clunky because they don't know good idiomatic ways to do things in whatever language) and get feedback on how to improve the code. You need to have a working, tested version first, that you think is bug free (sometimes that turns out not to be the case, but at least has to work for all the tests you've thought of). — Peter Cordes 42 secs ago
 
3:45 AM
What principles do you speak of... Anyway, this is a fashion sense question. If the code is working i suggest taking it to code review so those kids can tear it apart — TheGeneral 23 secs ago
 
0
Q: Is this the best code I can write to find the type of input?

DeathVenomI am making a fractions calculator that can calculate fractions, whole numbers and mixed fractions. So there is a String fraction, which is the input. Also, the user will enter the fraction in a specified format which is: For normal fraction, "a/b" (a and b are integers) For whole numbers, "c" (c...

 
4:06 AM
@Mast That's the problem. I have a lot of code (~160 lines) and I'ts not working as intended. For example, when I try to add 3 1/2 and 1/2, I get 1/4 as result. Thus I'm going over the code block by block to see what exactly is causing the problem. — DeathVenom 2 hours ago
So, no CR material.
 
 
1 hour later…
5:31 AM
@RMunroe Considering there's only 1 occurrence of baryogenesis known, it's truly impossible to get anything anomalous there and electroweak sphaleron is redundant since a sphaleron is always a solution to the electroweak equation.
And I'm quite positive Mr. Munroe is aware of this.
 
Monking
 
5:50 AM
possible answer invalidation by DeathVenom on question by DeathVenom: codereview.stackexchange.com/posts/244767/revisions
 
6:16 AM
0
Q: what is the best way to unsubscribe of function in method?

BinaryTieWorking on dialog component with angular js and now I find out that my function is subscribed and in if condition do not quit method, but continuously executing another function afterClosed() , here is example of code : openCreateNewContentDialog(): void { const oldData = this.dataSource.da...

 
@Duga grmbl
Answerer should've gone with a comment and wait.
Gave him a choice. We'll see.
User profile states he's last seen 11 minutes ago while he commented 5 minutes ago. Huh?
 
 
1 hour later…
7:29 AM
It wasn't an attack, I was just stating that your code changes the way the loop works. Then I did exactly what this site is for: I explained why it wasn't working and what needed to be done and gave an example of how to do it. Obviously there are a hundred other ways to do this and things that need to be taken into account, but I'm not hired to do a performance/code review. I tried to help him understand what was going on and why his logic is failing. So he can solve the next problem himself. — Hugo Delsing 33 secs ago
 
7:42 AM
@Peilonrayz Do you have any suggestions for making it clearer to people what to fix? People not reading my instructions (which follow your own suggestion from your comment) is hardly my fault. My standard comment tries to emphasize that it's important to read the rules, and I even edited it to specifically call out that you'd expressed concerns. I try to address these issues when telling people that CodeReview.SE exists, but if you have specific suggestions on what has worked, I'm more than happy to include them. — Ryan M 59 secs ago
 
0
Q: Hex boardgame with fast random rollouts (OpenAI gym framework)

FirefoxMetzgerI implemented the boardgame Hex using the OpenAI gym framework with the aim of building a bot/AI player that can learn through self-play and expert iteration (details Note: not my paper; I am merely reproducing it). The initial agent uses Monte-Carlo tree search (MCTS), and I will compare myself ...

 
 
2 hours later…
10:12 AM
0
Q: Haskell Hspec/Quickcheck test for numeric function

bdecafI'm learning to use HSpec and QuickCheck. As example I was implementing the Pseudocode from Wikipedia:Extended Euclidean Algorithm. You can see find the project at github. In particular I wonder about two practices: selection of test cases - I took two trivial samples, examples from the wikipedi...

 
awake @Mast ?
 
@ankii They're probably busy at the moment. Is this something anyone else can help you with?
 
"Please use clang-format." Why? — Mast 14 hours ago
four people found this more useful than the answer!
should I dig up suggestions to use autopep8 or similar popular extension to format python code ?
 
@ankii No, the ecosystem in Python is vastly different to C. From what I hear C people hate linters never mind hinters, but I'm not in the C community so this is just hearsay. Python has had linters and hinters for a while now, and the community supports such efforts.
@ankii The section is short, very short. Even after the edit I didn't notice that you were explaining the 'why'. Try to write 3/4 sentences why it's good. If it's as good as I seem to think you think it is this should be easy.
 
@Peilonrayz I didn't want to say that the code looks ugly
 
10:21 AM
You can focus on the benefits on the tool, without commenting on the code. How has it / could it help you?
 
@Peilonrayz github.com/search?q=.clang-format&type=Code 800k instances of clang-format vs 1000k instances of pep8 github.com/search?q=pep8&type=Code
@Peilonrayz that would be redundant.. unless they're trying to obfuscate it like some javascript file, everyone knows what a formatter does.
 
@ankii No it isn't.
 
guess I should spend more time reading other posts on the site to see what the community likes
 
That has lots of false positives
 
1
Q: Bubble Sort in Forth (for strings)

pmgI wrote the following Forth code for sorting a string with the Bubble Sort method. It looks nice to my eyes, but I'd like your experienced opinion and any comments about the code you might have. In the compare-and-swap-next word, is using the return stack to save base address of string ok? the b...

-1
Q: How to rewrite this piece of code?

Константин БерезинI have the next piece of code. It's handler in python3, aiohttp framework but it looks like awful, how to fix style of this code? async def insert_record(request): redis = await aioredis.create_redis_pool('redis://localhost') merge_param = request.query["merge"] if merge_param == N...

 
10:47 AM
@ankii I can probably add some insight, although I'm not @Mast and their motivation might differ from mine.
 
@Zeta I shouldn't have pinged mast at all.. it's not them who upvoted the comments, and thus expressed their disapproval of the answer
 
I, however, have upvoted Mast's comment ;)
First of all, the coding style is already consistent: every indentation is 3 spaces, long lines are not wrapped, and Pharao style braces are used throughout the whole program.
Eh, screw that.
I just noticed that the if(Opt == ...) conditions are not on the same indentation.
That's a good point to add to your answer.
 
@Zeta so much of conscious effort!
Jun 22 at 13:20, by ankii
it's so enjoyable getting my Spagetti code fixed in an instant
 
Either way, your edit doesn't tell the OP why they should consider clang-format, astyle or another formatter. Provide Opt == as an example and you're golden.
 
ahhh spelling of Spaghetti was wrong.. that's why I couldn't find it faster!
@Zeta even I don't know about astyle...
bias towards clang or ignorance towards others comes from what I use and know about
@Zeta The emphasis of the comment wasn't "why only clang-format, not other formatters?"
or maybe it was.. it just isn't clear
But enough about it, from my side... no grudges!
 
11:12 AM
@ankii It's mid day here, so, yea.
@Zeta Exactly.
Just suggesting OP should use tool X is not a useful remark in an answer.
Instead, state what's wrong with the code and suggest the tool as a solution to that problem.
You stated a solution without stating the problem. Which was not useful at all. I suppose a lot of people agreed with me, seeing the upvotes on the comment.
Also, the question hit HNQ. That brings a lot of people, so a lot of potential votes.
Nothing personal, but your answer getting so little upvotes while it went HNQ indicates something about the quality of your answer. Ordinarily popular questions like that (the question itself has 11 upvotes) attract much more upvotes for their answers as well.
Pacmaninbw's answer got to +13.
 
@Mast IIRC it was at like +6 before going HNQ, that's ~7 votes everyone else could have got
 
You got some very good points in your answer, but how you wrote them down is a bit short and unnecessarily complicated. As in, it leaves people guessing to what you actually mean.
@Peilonrayz Exactly. Yet the other answer is at +1. Could've been +5 easily if it had been better.
Just by the voting crowd.
 
it could very well be halo/ horn effect
 
I've been around here long enough that I can tell you it's a quality problem.
 
@ankii Well if 3 people in chat have said actual verifiable problems I doubt that.
 
11:23 AM
0
Q: Fishy password management

user226435Problem When it comes to security I like to don a tin foil hat. As such I use the, off-line password manager, Keepass. Keepass allows you to to use multi-factor authentication via; a password, a keyfile and the Windows user account. I enabled only two of these, the password and the keyfile. Becau...

 
it was written late in the night, lazily yes. But full in itself.
"bit short and unnecessarily complicated" sounds a bit ironic..
I've always found lengthier texts more complicated.. not single line postulates.
 
Take from this what you will. But if you put in more effort and actually consider the feedback provided, the quality of your answers should rise. Which will translate to more upvotes.
 
@ankii An example for "bit short and unnecessarily complicated": return foo() ? baz() : bar ? quux - 50 : bla() ? (boo(), bias() ^ 0xf3) : 0.
(And yes, that's a joke. :D)
 
How do I expand on "a is too short for a variable name " ?
scratch that..
just had some tea and found something.
@Zeta nopaste.xyz/… here's a comparison of formatting.. it was way over 100 characters at several places
 
11:40 AM
What was way over 100 characters? And why does it matter?
Hint: you shouldn't tell that to me, but to OP in your answer.
 
Ben Popper on June 30, 2020
What happens when your face and fingerprint start to unlock the World Wide Web?
 
12:10 PM
0
Q: Iterating an Array Object & Assigning the Attributes Values to those that Match the Condition

Nɪsʜᴀɴᴛʜ ॐIs there any approaches to reduce the below coding snippet in Angular 2+ with few lines of code by making use of ECMA Script or by some other ways this.testCenterAccomodations.forEach((x: { utilityCode: string; isChecked: boolean; isSelected: boolean; }) => { if (x.utilityCode === 'PSDQRA') {...

0
Q: Enhancing performance using DataParallel

BladeI have written the following code to practice parallelizing a PyTorch code on GPUs: import math import torch import pickle import time import numpy as np import torch.optim as optim from torch import nn print('device_count()', torch.cuda.device_count()) for i in range(torch.cuda.device_count()...

 
12:42 PM
There is a complete example of using pipes and child process to send commands here. — ryyker 33 secs ago
 
12:59 PM
Hi, I need to ask something
 
@VisheshMangla Common chat etiquette is to ask, not to ask to ask.
 
If the code is working and you want feedback, post it on Code Review. But post it there including the code as code in the question, not as a link. — akuzminykh 25 secs ago
 
the first one doesn't need much explanation. The second would've needed some more than just that
 
Is it assumed that a hangman tag means that reviewer should know hangman?
@Peilonrayz sorry @Peilonrayz I was thinking something and wrote the thoughts
 
1:06 PM
@Vogel612 tbf apart from the title on the first neither of them have any explanation.
 
yes
the n and t are confusing
It can be clearly seen that the second user has much better code but maybe is unaware of the site rules
 
The second one is even closed for the wrong reason... :/
 
Yes absolutely
 
@VisheshMangla I don't think you have the knowledge to say yes to that.
 
sorry, I just meant I comply
 
1:21 PM
0
Q: changing from function based view to class based view in Django

ThisThis is my function based view def reset(request): return password_reset(request, template_name='login/reset.html', email_template_name='login/reset_email.html', subject_template_name='login/reset_subject.txt', post_reset_redirect=reverse('success')) TO change this ...

Was that it?
 
@VisheshMangla MRC is very grey and can be applied very differently between different questions.
I see they added that information. Strange
 
Well so was it just forgetting an import line?
it often happens it someone selects code like without ctrl + A
 
Oh, no I just misread it twice. No the code just calls a function password_reset it's like me asking how do I improve foo('bar', 0, baz)? But without foo all we can say is "we don't know".
 
I have a function view which I 'm not knowing is right for a classview or now. Even the docs are unclear about a few things.
I thought maybe I should check if it's already answered and got on that.
 
@pacmaninbw FYI: this is on a tag created by the same user on request by the user of this question.
If you think a word is missing, please make a suggested edit :-)
It's a Unix shell, so I think it's Unix-family indeed.
But of-course it also runs on Windows using cygwin, WSL or similar, so family of OS'es is also correct I guess.
 
1:44 PM
0
Q: follow up: Blackjack with card representation visuals

Zach SonnenblickThis is a follow-up to my original post of Blackjack with card representation visuals I was given some very helpful advice by @Reinderien and @Linny which I greatly appreciate. I have done my best to implement the changes. However, I am unsure if I actually implemented these changes in the best w...

 
Did you use powershell to get those images @CaptainObvious?
 
@VisheshMangla Captain Obvious is a feed
 
What's a feed?
 
An example is an RSS feed, or an Atom feed
 
If the code is working as expected, but you're just looking for improvements, you should post the question on CodeReview StackExchange0stone0 just now
 
1:48 PM
I presume it's known as a "feed" because "it 'feeds' you information".
 
I googled that but it will take time to get that for me
 
@VisheshMangla something like Facebook newsfeed, except better
 
I have a facebook account but all I use it for is one thing ie., one click "Connect with facebook"
 
@Mast The fist shell page seems rather dated since it is now 2020.
 
@pacmaninbw The fist shell ;)
 
1:52 PM
fist is definitely intriguing
 
@Peilonrayz More coffee please, or my stupid fingers.
My first tag edit.
 
I get the feeling that the page's humour is lost on you, @pacmaninbw
2
 
Ya think.
Has to be British humor, it is too dry for an american.
@Peilonrayz Sorry, no LOL for this one.
 
LoL
I've looked up dry humour. I'm surprised Americans don't use it, I'm quite fond of it.
 
You should be, it's cutural.
I like it enough to enjoy Monty Python.
 
2:08 PM
0
Q: std::vector remake

user222866Out of the majority of my c++ projects, the most used thing is std::vector because it allows me to not have to my own memory management. However previously I had never really thought much about how std::vector works internally. Until recently and that's when I decided that to better understand st...

 
I have a T-Shirt from Spamalot (loved it) "I'm not dead yet"
 
Hmm, I've not seen that one :( Come to think of it, I've not seen much of their stuff...
 
It was the musical play version of Holy Grail.
Ran on Broadway for quite a while.
Monty Python's Spamalot is a musical comedy adapted from the 1975 film Monty Python and the Holy Grail. Like the motion picture, it is a highly irreverent parody of the Arthurian legend, but it differs from the film in many ways. The original 2005 Broadway production, directed by Mike Nichols, received 14 Tony Awards nominations, winning in three categories, including Best Musical. During its initial run of 1,575 performances, it was seen by more than two million people and grossed over $175 million. Tim Curry starred as King Arthur in the original Broadway and West End productions. It was one...
Going off line so that I can turn off Norton for a few hours to use VC++. TTYL
 
2:54 PM
@zdim Sure! You guys usually answer questions together. Found a place [at Code Review] that one of you is missing :)! Just kidding! — Emma 48 secs ago
 
0
Q: Fibonacci Sequence using Recursion with Memoisation

FlatAssemblerFile fibonacci.aec: syntax GAS ;We are, of course, targeting GNU Assembler here, rather than FlatAssembler, to be compatible with GCC. verboseMode on ;Tells ArithmeticExpressionCompiler to output more comments into the assembly code it produces (fibonacci.s). AsmStart .global fibonacci #We ne...

 
3:19 PM
0
Q: Build Tower refactoring code is it necessary

Great Khan 2016In the interview you are asked to build a tower in a variable input e.g. n=3 . The output should be as show below. [ ' * ', ' *** ', '*****' ] My solution is the following. Is this a good enough answer for the problem because I know people can solve it using Linq with less lines of cod...

 
possible answer invalidation by Vishesh Mangla on question by This: codereview.stackexchange.com/posts/177511/revisions
 
@Duga It's fine
 
@pacmaninbw Just a flesh wound.
 
3:37 PM
Anyone here a photographer / videographer?
Plan to order a Sony Alpha a6400 camera tonight, looking for last minute alternative suggestions before I do.
 
3:55 PM
@DerKommissar I've only used Nikon D5300 so can't compare it with what you're buying
 
Also these leetcode questions have already been asked here, and you were already told to post that kind of questions on CodeReview which feels like a better place. — MrUpsidown 44 secs ago
 
@DerKommissar Nikon Z50?
 
CodeReview is when you have a solution and want to improve it, mine isn't working. thanks for all your feedback. Feel free to ignore this post and go on with your life — myTest532 myTest532 1 min ago
 
Canon EOS M6, recent edition? (MK 2?)
Panasonic Lumix DC-G90?
They're all in the same range, but the A6400 isn't a bad choice.
Fujifilm X-T30?
 
@MrUpsidown Please don't recommend Code Review here, it's inappropriate. — Mast 29 secs ago
 
4:08 PM
Main downside of the Canon is no inbuilt EVF.
If you really want to focus on videos, the race is basically between the Sony and the Fujifilm AFAIK.
 
@Mast Yeah someone just suggested the Canon EOS M6 Mark II
It is almost identical to the a6400, but the lens ecosystem is apparently better
 
Monking
 
@DerKommissar Canon and Nikon have a great second-hand market going in lenses, but if you want new stuff anyway that shouldn't matter much.
 
FYI: If you have keyboard issues suddenly only in Windows (and not in the BIOS) then you might need actually need to update your Windows (Windows 10, apparently it really fixes the issue)
 
@Mast Yeah I'm going all-new, my friend says he avoids Nikon because they're mostly Sony guts anymore, and the lens ecosystem isn't as strong as Sony or Canon
 
4:20 PM
My dad is into Canon and it's all quality stuff, that's all I know haha
 
@skiwi Same with Bluetooth and all other peripherals.
Whenever you don't update your Win10 fast enough, it will start shutting you down.
 
The used market is really viable too, especially for cameras, as with patience you can find really new cameras and lenses bought by people who in hindsight don't use it and sell it off
 
Annoying system...
 
@Mast Oh.. this is the first time I notice
 
@skiwi Yeah my friend said Canon is still #1, that most of the 'pros' still use it
He's the same one who recommended the Sony a6600 (which I can't afford ATM) and then said the Canon EOS M6 Mark II was a better option if I'm not getting the Sony IBIS
 
4:22 PM
SO is not a code-reviewing service. Even the related site Code Review expects code of manageable size and included in the question itself. — underscore_d 36 secs ago
 
0
Q: Pandas filter dataframe on multiple columns wrt corresponding column values from another dataframe

AnkI have a pandas dataframe, df1: a b c d e f 1 1 1 x 1 5 1 1 1 x 1 6 1 1 1 y 1 5 1 1 1 y 1 7 and another dataframe, df2: a b c d e f 1 1 1 x 1 5 Now I want to filter df1 on columns a, b, c, d if it is present in respective columns of df2. This is what I tried: mask = df1['a'].isin(df2['a']) & df...

 
4:42 PM
@Mast It would be appropriate for the current times, it was a plague victem.
 
I would suggest posting this on Code Review codereview.stackexchange.com but, you would have probably guessed the responses you will be getting there as well. Anyway, there are a lot of other things you could improve e.g. replacing .css('display', 'none') with .hide() or .css('display', 'block') with show() which have same effect. — Muhammad Talha Akbar 50 secs ago
 
-1
Q: py: Converting values of a list into list ids

Andrew OrlowI've got a list like: [5,7,8,9] So it contains some ID's of elements I need to set True value via a func(list). But the func() gets a list of ALL ID's and it's vaules as an argument, so it must look like [0, 0, 0, 0, 1, 0, 1, 1, 1] (5th, 7 etc ID's from the first list get 1 value, others - 0) ...

0
Q: Class or not in Page Scraper (Python BeautifulSoup)

Apolo RadomerI am trying to figure out whether the below is better than just having a raw script or just a script with functions. class WebsiteImages(object): def __init__(self,photographer,Website_url): self.photographer = photographer self.Website_url = Website_url def ...

 
 
1 hour later…
6:04 PM
2
Q: Create a build order from a list of projects and their respective prerequisites

IvenBachAnother graph algorithm, this time to create a priority or build order. Provided with a starting List<Project> and List<ProjectWithPrerequisite> the algorithm will return the order to build them in. For a list of projects a, b, c, d, e, f and their corresponding prerequisites where a, d means tha...

 
6:25 PM
possible answer invalidation by fosionef on question by fosionef: codereview.stackexchange.com/posts/244800/revisions
 
0
Q: LeetCode 652: Find Duplicate Subtrees

EmmaI'm posting my code for a LeetCode problem copied here. If you have time and would like to review, please do so. Thank you! Problem Given a binary tree, return all duplicate subtrees. For each kind of duplicate subtrees, you only need to return the root node of any one of them. Two trees are dup...

0
Q: I made a program in Java that determine if the student's grades had passed or not

fosionefI made a program in Java that asks for the student's name, course, and grades. After the required text inputs are filled, the program will then show the result. If the student passed, the program will show "PASSED"; if the student is failing, the program will show "ACADEMIC WARNING"; if the stude...

0
Q: Can I replace instanceof if I cannot use a common interface (third pary API)?

hsadikI'm using Telegram API and I've different methods wich returns different type of information like this: public SendMessage getTextMessage(Long chatId, String text) { return new SendMessage() .enableMarkdown(false) .setChatId(chatId) .setText...

0
Q: Create or update record via HTTP request

User1973I have an external system that sends an HTTP request to a Jython script (in IBM's Maximo Asset Management platform). The Jython 2.7.0 script does this: Accepts an HTTP request: http://server:host/maximo/oslc/script/CREATEWO?_lid=wilson&_lpwd=wilson&f_wonum=LWO0382&f_description=LEGACY WO&f_class...

 
possible answer invalidation by fosionef on question by fosionef: codereview.stackexchange.com/posts/244800/revisions
 
7:29 PM
@Duga Rolled back.
 
7:50 PM
possible answer invalidation by Great Khan 2016 on question by Great Khan 2016: codereview.stackexchange.com/posts/244790/revisions
 
8:13 PM
Monking!
 
Monking
 
I'm refactoring some code and not satisfied with the design, but I'm trying to figure out the best way to get assistance.
The issue is command line arguments, a configuration file and neatly separating the settings themselves from both of those.
Example: one item in the config file tells whether to overwrite output or not. A command line arg does the same (and overrules config file). A third bit of code actually uses that and I'd prefer not to hand over the whole object containing settings.
It's a lot of code, though, and I'm not sure how (or whether) to post it in CodeReview.
Or should it be a design question on SoftwareEngineering?
 
I recently answered something similar on Meta. I've had trouble getting design reviews lately. Personally if I were to stay on CR I would go for an iterative review starting with the simplest of the three pieces of code. However SE is starting to look appealing, but I know nothing of their site.
 
No environment variables?
@Edward ^^
 
@pacmaninbw Yes, the plan is to also use environment variables, but I wanted to sort out design first.
@Peilonrayz It seems that there is less activity on CodeReview lately in general.
I'm leaning toward posting extracts here, since it follows from a question I asked here four years ago.
 
8:24 PM
That was discussed here a few days ago, we're about half the activity we were at last year.
 
@Edward It could also be the tag, (even though we're 'booming') we've gotten some users that post less than I can get from a linter.
 
-1
Q: How to structure code better? Code duplication

Hossam AlsheikhI am currently working on a project and very recently came across Vuejs. I used it to create a dynamic form on my frontend, however, the approach I took does not seem right to me. Could someone take a look and provide some feedback? var app = new Vue({ el: '.directionsContainer', data: { ...

 
@pacmaninbw Interesting. Not just my imagination (or weak memory!)
 
@Edward I don't think you are senile yet.
 
8:29 PM
@Peilonrayz Good meta answer. I think I will see if I can follow that advise (break into small chunks)
 
@Edward Interesting, does it have git integration? Also you might want to copy the license for a CYA thing
 
@Edward Is this a continuation of the python program you wrote about 4 years ago?
Or replacement?
 
@pacmaninbw Yes, a continuation of that and this:
20
Q: From new Q to compiler in 30 seconds

EdwardReviewing code doesn't necessarily require actually building it, but it's often helpful to do so in order to evaluate fully. I usually create a CMake project and build from there. Since we're all about code here, naturally, I decided to automate part of the process. Specifically, here's how to...

And also an additional piece that is Javascript and automagically puts a pushbutton next to a question to automate it even further.
 
@pacmaninbw 4 years?! :O That wasn't that long ago... D:
 
You two are among the people I'd most like to look over the code, so watch for a question!
 
8:34 PM
If it's got Python I can give it a go but otherwise I'll be more of a hindrance :( If it does just give me a ping here and I'll have a look
 
@Edward Will do. I notice that question references one of my early questions here on CR.
:)
A big one.
 
@pacmaninbw Trying to parse big ones like that was what inspired the tool! :D
 
:D
Glad to be a source of motivation for innovation.
 
@Peilonrayz I've made some updates from the original Python code (not least to Python 3.5)
16
Q: From Q to compiler in less than 30 seconds

Edward(See the newer version here: CodeReview question markdown downloader) As an adjunct to From new Q to compiler in 30 seconds, I've created a Python script to automatically download the markdown from any question on Code Review and save it to a local file using Unix-style line endings. For in...

I see you did review the updated version, but I have not yet incorporated all of the suggestions. I'll have to revisit that!
 
That's an interesting idea. I wonder if someone has a Java version of that.
 
8:43 PM
@Edward Wow, the first half of that review is pretty meh. I've been trying to make a tool to help write reviews for me, it seems I tested it on your question. ;) Saying all the same petty character level comments is starting to get to me.
 
@Donald.McLean I have been thinking about further expansion (it now covers only C and C++).
@Peilonrayz Yes, another idea I had was to do an autoreview. Not to post, but to point people to a hosted version and say "do what this says first."
 
@Edward you default to C++14 rather than C++17?
 
I don't do anything with Python. Script thinking and I don't get along.
 
@Edward It seems like we have similar ideas ;) Maybe I've copied your idea without realizing...
 
8:48 PM
@Peilonrayz The "lint" tool is over forty years old, so the general idea has been around for some time.
Some open source projects (e.g. Wireshark) use a git module to do a sanity check before allowing checkin.
 
I was thinking of cloning Code Review questions to a GitHub repository, so users can just git fetch git checkout {id}. I'd have a helper so you can do helper {url} and it set up the branches for you. I've also got a Sphinx to MD converter so I have most of the Python ecosystem with none of the hassle of setting it up.
 
@Peilonrayz Possible licensing issue here?
 
@pacmaninbw That's why I stopped and haven't published anything yet. But no, I separated anything that is fetched into a subdir with its own licence
 
A meta discussion about five years ago: codereview.meta.stackexchange.com/questions/5244/…
@Peilonrayz Hmm. I should probably remove test code (fetched from CR) other than things I wrote for that same reason.
 
TBF SE have now added a license field to the API so I can fix the licensing issue.
 
8:55 PM
@Peilonrayz It's not a license per question, is it?
Or do I misunderstand?
 
@Edward No, if we get an edit on our first meta post it well have had 3 different licences
 
Looks like I chose GPL 2.0 for mine. I can't remember why.
@Donald.McLean So for a typical Java project, what does one use to build it these days? ant? maven?
 
@Edward is there any possibility of reading the language tag on the question and generating the proper cmake code?
 
@pacmaninbw Yes! That's the most recently added feature.
At the moment it only recognizes "c" and "c++" tags
But the CMakeLists.txt files are from user-definable templates.
 
I did see that in the readme.md
 
9:04 PM
The current unresolved open issue is "add decent documentation" :)
4
 
It's what made me ask about reading the language tag.
@Edward When isn't that a problem.
 
I usually try to document as I go, but I spent much of a recent vacation playing with code and the code got Waaaaay out front of the current docs.
 
@Edward I use Gradle mostly because it can auto-manage library dependencies.
And I don't use regular Java - I use Scala. Though I do still look at Java code reviews.
 
@Donald.McLean Hmm. I might just noodle on how this could be modified to support something like Gradle.
I was already thinking about Fortran... god knows why.
 
That was the first language I learned. I had a lot of trouble because I was awful at typing up the punched cards.
2
 
9:10 PM
This is more of a question for codereview.stackexchange.com. — Joshua Nixon just now
 
@Donald.McLean The only time I used punched cards is when the network controller crashed on the CDC Cyber 170/750 at the university. I learned about drop sort at that point.
 
Yeah, I remember working all night on a project and then dropping the deck. :(
 
Every student did at some point.
 
When I learned Pascal on a PC, that was when I started to understand how not to write crappy, unreliable code.
 
I was using Pascal on the CDC cyber when I dropped the deck.
 
9:11 PM
Though I wish we had had unit testing frameworks back then.
 
I recently was working with a project written in Pascal.
It reminded me why nobody writes Pascal anymore.
 
I think we are dating ourselves with some of the people in this room.
 
Carbon-dating.
You fossil!
 
LoL
 
I worked in an office where we would sometimes use a plug-board computer developed in the 1960s. Now THAT was obsolete tech.
 
9:14 PM
Sounds like a 402
Or was that an IBM 407?
 
I don't know what a 402 is.
 
Had to write C control code to control a system based on the PDP 8.
 
No, it was a bit of hardware developed for special purposes.
 
I wonder how many people know what the origin of "Bug" was (hardware problem) or who Captain Grace Mary Hopper was.
 
9:19 PM
@Edward Similar tech, definitely. It was in use up until about 1985 when the agency in charge of that replaced it with an HP system written in Pascal.
 
@pacmaninbw I've seen her in some memes, so I wouldn't be surprised if other younguns know who she is.
 
@pacmaninbw The irony is that because of all the steam punk fiction, people are more likely to know who Ada is than Hopper.
 
Does this project look like a reasonable template for a gradle adaptation to my autoproject tool?
Just looking at file and directory layout.
 
@Donald.McLean The original Lovelace.
 
@Edward The layout for that project looks fairly standard.
 
9:25 PM
@Donald.McLean OK, thanks!
 
@Donald.McLean They need to name a programming language after Hopper.
 
@pacmaninbw COBOL
 
The Difference Engine (1990) is an alternative history novel by William Gibson and Bruce Sterling. It is widely regarded as a book that helped establish the genre conventions of steampunk. It posits a Victorian era Britain in which great technological and social change has occurred after entrepreneurial inventor Charles Babbage succeeded in his ambition to build a mechanical computer (actually his Analytical Engine rather than the difference engine). The novel was nominated for the British Science Fiction Award in 1990, the Nebula Award for Best Novel in 1991, and both the John W. Campbell Memorial...
 
@Donald.McLean I hadn't heard of that but might see if I can find a copy to read.
 
@Donald.McLean I haven't read that one, I have read a number of Gibson's books.
 
9:28 PM
It was a good read, through hardly one of my favorites.
The Diamond Age: Or, A Young Lady's Illustrated Primer is a science fiction novel by American writer Neal Stephenson. It is to some extent a Bildungsroman or coming-of-age story, focused on a young girl named Nell, set in a future world in which nanotechnology affects all aspects of life. The novel deals with themes of education, social class, ethnicity, and the nature of artificial intelligence. The Diamond Age was first published in 1995 by Bantam Books, as a Bantam Spectra hardcover edition. In 1996, it won both the Hugo and Locus Awards, and was shortlisted for the Nebula and other awards...
Now that one IS one of my favorites.
 
Read Snowcrash and really liked it, The Diamond Age was harder to get through for me.
 
I'm embarrassed to admit that my daughter has read both "Snowcrash" and "The Diamond Age" but that I've read neither!
 
You're just not that much into science fiction.
My uncle that worked for RCA called science fiction bad science and bad fiction.
PHD in Chemistry.
Did very early work on the Plasma TV.
 
@pacmaninbw I like well-written sci-fi. The Strugatsky brothers, Margaret Atwood, and others. I just haven't gotten around to those.
 
For more computer-related SF, I would recommend the works of William Hertling.
William Hertling is a science fiction writer and programmer. He was a co-founder and Director of Engineering at Tripwire, and a web strategist and software developer at Hewlett-Packard where he obtained numerous software engineering patents in the areas of networking protocols, printing, and web applications. == Writing == Hertling began publishing science fiction in 2011 with Avogadro Corp: The Singularity is Closer than it Appears. Influenced by Ray Kurzweil and Charles Stross, his work examines the emergence of strong artificial intelligence and how humankind reacts to and coexists with AI....
 
9:34 PM
Most recent SF I read and enjoyed was "How to Live Safely in a Science Fictional Universe" by Charles Yu.
 
How about a former IBM employee H. P. Hogan?
Make that James P. Hogan
 
James P. Hogan?
OK. :)
 
I don't think I've read any of his work, though I have heard of him.
 
Time to cook dinner. Thanks for the help (and the reading list!)
 
Cheers
 
9:41 PM
See ya!
 
TTYL
 
10:00 PM
0
Q: Constexpr circular queue - follow-up #1

Steve ZhangFollow up to my question here: Constexpr circular queue . I've taken the time to fix the many problems pointed out there and am asking for any tips/corrections for the new version below. The queue will work with non-trivial types in non-constexpr contexts. For types that are trivially copy assign...

 
10:47 PM
Ah I see your issue. Hypothetically you could write a custom merge tool to raise conflicts for any additions to the same file, but that would raise a bunch of issues. Namely, which commits to compare between, how to display conflicts on different lines, etc. While that may be possible, Bill's solution might serve you better. In my experience teams usually solve this through communication and a detailed code review process. I wish I could be more helpful, but I don't think there is an easy solution here. — Daly 9 secs ago
 
11:11 PM
0
Q: LeetCode 212: Word Search II

EmmaI'm posting my code for a LeetCode problem copied here. If you would like to review, please do so. Thank you for your time! Problem Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters of sequentially adjacent cell, where

 
11:34 PM
0
Q: I wrote my first pathfinding algorithm

RebeccaI'm currently writing a small game in Lua, using the Love2d framework. I guess I'm doing it as a practice of sorts, but it did give me the opportunity to write my first pathfinding algorithm. I wrote it based off of a 10 minute Youtube video I saw explaining A*, and luckily it works fine. The pat...

 

« first day (2614 days earlier)      last day (1400 days later) »