« first day (810 days earlier)      last day (3212 days later) » 

11:00 PM
@jacwah Clean Code & Code Complete are both excellent reads.
 
I'm hooooooome!! did I miss anything?
 
I'll look into those, thanks!
 
If you're interested in getting legacy code under test, I also recommend "Working Effectively with Legacy Code" by Michael Feathers
 
@GertArnold More precisely, this question is off-topic for Stack Overflow because there is no specific question, and on-topic for Code Review. — 200_success 36 secs ago
 
You're welcome!
 
11:01 PM
@RubberDuck Mark Seemann recommends this book in Dependency Injection in .NET
 
I've heard it mentioned too
 
that book's definition of legacy code is essentially "code that's so frakkin coupled and shitty that it's not testable"
 
@Mat'sMug I still need to find time to read that.
No. It's definition of legacy code is any code that isn't under test.
Which, after reading, I tend to agree with.
 
it's just that, before reading, your definition of "legacy code" might have been "that old app nobody touched since Y2K"
 
Yeah. Exactly
 
11:05 PM
@Vogel612 Right. I apologize.
 
How are our new moderators doing? The monkey isn't being too rough on ya I hope. =;)-
 
I'm voting to close this question as off-topic because it's better suited to codereview.stackexchange.comDavid Wolever 9 secs ago
 
guys, there's 2 delete votes here. anyone wants to put the 3rd in?
-5
A: Make it easier with color changing

Damonunit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); procedure FormCreate(Sender: TObject); private { Private decla...

 
0
Q: How to Read Over 2 substrings in C#

Uposso Lets say That I have the string "One 8 Cat" and the string "How To Read" I need to know how to get 3 sub strings from each (By using IndexOf)

 
@CaptainObvious
 
11:14 PM
@DavidWolever this does look like an okay CR question, but please take the time to read A guide to Code Review for SO users. Being on topic somewhere else doesn't make it off topic here. Close it because it's too broad, or whatever, but not because it's on topic somewhere else please. — RubberDuck 11 secs ago
 
@Mat'sMug down
 
@CaptainObvious burn
@Vogel612 thanks!
 
@jacwah Sounds way too general for my taste.
 
@DavidWolever You're right that it's off-topic on Stack Overflow and on-topic for Code Review, but please take care to cite a valid off-topic reason instead of making one up. It's off-topic because there is no specific question. — 200_success 39 secs ago
 
@CaptainObvious I did't even get a chance to DV that!
 
11:17 PM
@Mast Well, I was thinking it might be good to actually learn something about comp sci and not only doing practical stuff
 
@jacwah A couple of years ago I learned some valuable advice from a comp sci student.
 
Doesn't really sound like "comp sci" to me. Sounds like "software engineering".
@Mast don't waste your time?
 
If you have that question, build a 16-bit ALU in Minecraft first. When you've done that, you'll know what you want.
It helped him ace the exam he was studying for at that time ^^
 
@RubberDuck I don't really know the difference to be honest
 
That's actually really good advice.
 
11:19 PM
Hence wanting to read more about it
 
@jacwah There wasn't one until recently. Last 6 years or so?
At least, there wasn't a difference in schools.
 
Really?
 
Yeah. Someone finally figured out that they're different disciplines.
 
@Mast I remember looking at youtube videos of those a couple of years ago. I actually made an adder which was really cool
 
@RubberDuck They still had Electronical and Electrical Engineering in the same study when I started my degree. The only difference was 1 semester.
 
11:21 PM
I believe that.
 
Electronical is low-voltage, Electrical is very-high-voltage.
 
Man...... I have a few hundred pages of documentation to read and am entirely unmotivated.
 
So all Electronical guys kept failing the Electrical topics and vice versa.
@RubberDuck Only read documentation if you have specific questions. Otherwise it's a waste of your time.
 
that sucks
@Mast but it's a waste of my money if I miss something important and fry my shiny new toy.
 
@RubberDuck As long as you get the basics down, you won't need the docs.
 
11:24 PM
@RubberDuck The monkey is being quite helpful actually, in a way. We're blaming everything on him.
4
 
Isn't there a Getting Started part somewhere?
 
@Mast yeah. That's where I was going to.... get started.
 
The Getting Started should at most be 50 pages, usually around half of that.
You don't need over 500 pages just to get the basics down.
 
@RubberDuck I believe both @Mat'sMug and I are still learning. There's still some new types of flags every now and then that you have to handle, so you learn what the "right thing to do" is.
 
^^
 
11:28 PM
Speaking of flags, this is the monthly stats: (@rolfl impressed?)
1.4k flags, average handling time 0 days 0 hours 12 minutes 0 seconds
2
 
finding the right balance between "let community handle it" and "just kill it with fire" isn't always obvious, too
 
I think you'll find more and more that the community will handle most things. We're only going to grow.
Heck. I haven't had to answer a VBA question lately.
 
@RubberDuck I know, I answered one yesterday... from my phone :p
and the OP went straight to download Rubberduck :)
 
I saw. But have you noticed the new reviewers?
 
11:32 PM
Chips?
 
@Phrancis you don't happen to have a first answer query do ya?
Yeah. Chip and someone else IIRC.
 
First Answer?
What do you need?
 
Number of first answers over time. I might crack at it. Haven't SQLed in over a month.
 
I think 5 pins is the most I've ever seen.
 
@RubberDuck HAI
 
11:34 PM
@Hosch250 aaaaaand we're down to four :)
TTGTB
 
'night @SimonAndréForsberg
 
See you.
 
@SimonAndréForsberg That's 3 minutes less than last time I checked. Wow.
 
SELECT DISTINCT Q.Title, [Post Link] = A.Id, MIN(A.CreationDate) FROM Posts Q INNER JOIN Posts A ON Q.Id = A.ParentId ORDER BY A.CreationDate DESC
@RubberDuck ^^ I think this will work
 
11:37 PM
1
Q: "Heat spot" image generation performance

StrongJoshuaI wrote a function that generates an image like this. The function is as follows: /** Draws a texture wherein are spots of "heat" where a pixel's spotColor is of highest alpha, fading as distance from heat * spots increases. * @param width * @param height * @param spotCo...

 
No pretty graphs, though.
Supper time, BBL.
 
I was thinking something similar
 
Monkevening
 
@RubberDuck did you notice? we have 200 questions!
 
If there's anyone here with decent knowledge of binary adders, here you go:
0
Q: What is the purpose of a "carry in"?

Ethan BierleinI'm currently trying to learn how binary adders work, but I don't understand what a "carry in" is for. What is the purpose of a "carry in"?

 
11:39 PM
@RubberDuck oops, I just zapped one
 
lol
2
 
@EthanBierlein That is not understanding digital circuitry 101.
 
This is a serious case needing a Code Review... Your Swift is (sorry) horrible — Kametrixom 8 secs ago
 
@Mast Exactly, that's why I'm asking it.
 
11:41 PM
@Duga Issue with the code, not on-topic here
 
@EthanBierlein You could've asked me :-)
 
lol. You can answer it though too. :D
 
I'll see where I have my Electronics book, it's quite clearly stated there.
 
@Kametrixom, you're right, this could use a Code Review, but only if the author's code is working. — Quill just now
 
@EthanBierlein Short answer: it's the result from the previous adder.
 
11:44 PM
@Quill Yes of course — Kametrixom 26 secs ago
 
Ah, okay.
 
Also, there's a difference between half-adders and full-adders which is relevant in this context.
If you really want to understand how they work, build one :-)
All you need is some flip-flops.
 
@Mast That's what I'm trying to do.
The output I'm getting is very confusing.
Anyways, bbl in a bit, gotta go do some work.
 
@EthanBierlein I did half adders and full adders in college.
The carry out is the extra binary digit.
The carry in tells you whether the value is a 2 or a 0 (2 = 10, 0 = 00).
In electronics, an adder or summer is a digital circuit that performs addition of numbers. In many computers and other kinds of processors, adders are used not only in the arithmetic logic units, but also in other parts of the processor, where they are used to calculate addresses, table indices, increment and decrement operators, and similar operations. Although adders can be constructed for many numerical representations, such as binary-coded decimal or excess-3, the most common adders operate on binary numbers. In cases where two's complement or ones' complement is being used to represent negative...
 
@Phrancis any thoughts on how to smooth out the graph?
 
11:54 PM
0
Q: How to create a random number in an oval

Nawal SinghI need to help to find a way to generate a random number in the circle under the variable random_number. I'm new to this, so can you please make this understandable to a rookie? from tkinter import * import random def quit(): root.destroy() def Begin(): canvas.create_text(450,20, t...

 
Group by the week?
 
Anyone interested in Speech and Rhetoric?
 
@nhgrif good idea. Now I just have to remember how to squish a date to the Sunday prior.
Damn... I'm rusty.
 
2
Q: SQL: how to get sunday of current week

EchoI want to get the last day( Sunday) of current week given any timestamp. I tried following script, but it returns Saturday as the last day rather than Sunday as I expected. Select DATEADD(DAY , 7-DATEPART(WEEKDAY,GETDATE()),GETDATE()) AS 'Last Day Of Week' Any answer is welcomed!!

 
Eh. Monday's close enough.
 
11:59 PM
0
A: Second attempt at Hangman in Swift

nhgrifThis is a better approach than your previous answer, but let's make it even better, shall we? Let's take a protocol-oriented approach to this problem. What methods does the HangmanWordGenerator implement that the HangmanBrain actually need? Realistically, only generateWord, right? So let's ma...

 

« first day (810 days earlier)      last day (3212 days later) »