« first day (2014 days earlier)      last day (2996 days later) » 

9:04 PM
That guy needs to lose some weight and kick that smoking habit if he's gonna be a woman.
 
Jon
9:16 PM
just posted it
Anyone play Firewatch?
Spoilers -- Live stream here: youtube.com/watch?v=D5_kZ8NUPss
it is very pretty
aside from it being pretty -- the gameplay seems to be a walking sim
and listening sim, lol
 
@Jon is it finally out?
 
Jon
yeah it has been out for 2 days
 
oooo
i've been buried in this ...
0
Q: How do I build a 3D array result set from a compute shader in unity?

WardyI took this right down to the absolute most basic scenario but for some reason I can't get anything back from the GPU when this completes, could someone explain what I am doing wrong ... Here's my CPU code: using (var debugBuffer = new ComputeBuffer(27, sizeof(int))) { var kernel = compute....

I think my problem is not the building of but the debugging / visualisation of the data
 
@Jon No. Been hearing all about it though.
 
may have to change the question slightly
wait what ...
3:45 to complete ?
 
9:30 PM
@Jon From what I understand, it's like a mystery game. The walkie talkie dialog is pretty diverse.
 
Jon
seems to be
 
@IcyDefiance I really see what you're saying with this "just use static" stuff. Why have some stupid singleton when you just want one copy?
 
9:44 PM
"Why?" - because you might want to control when initialization happens.
 
^
 
See also: "What if I told you static fields are just globals?" See also: "What if I told you globals are just fields of the global namespace singleton?"
 
@MickLH you can do that with nearly the same technique as a singleton, but without the GetInstance() method, still using static or a free function. I have an example here: icydev.net/when-to-use-singletons
in C# or Java it's even easier, since it has built-in static constructors
 
I knew this was waiting on the queue and I was already pissed off
I don't even have to read it, it is just an implementation of singleton.
Saying that "no it has to have!" is no true scotsman
 
the singleton design pattern has a "GetInstance" method. if you're talking about something without that, you're using a different definition of "singleton" from everyone else.
but sure, with your definition, it's GetInstance() that I'm really arguing against
 
9:49 PM
The argument is invalid because the logic is based on the "No True Scotsman" fallacy
And your "proof" for that NTS fallacy is itself an appeal to authority fallacy
The static class is just a singleton, where the initialization is triggered in the global scope
 
"No True Scotsman" is a subclass of "moving the goalposts", but my goalposts were already set from the beginning. we just disagree on definitions.
 
The constructor is the GetInstance method, and the singleton object is stored in its global variable.
@IcyDefiance This is so fucking wrong I don't even know where to start, so instead I'll stop.
 
and I'm not trying to "prove" anything, and even if I were, it would be an appeal to popularity, not authority. I'm just saying we're talking about different things.
 
You are proving me right at an increasing rate, despite me stopping.
 
> but sure, with your definition, it's GetInstance() that I'm really arguing against
 
9:52 PM
singletons are fine
hides
 
They honestly are.
And static classes are singletons. Period.
 
now please, stop trying to talk about something different form the rest of us, and give us a good reason to create that method
 
I did.
You're apparently too lost in the sea of fallacious dogma to see it, so I'll repeat.
 
no, you just said "not using that method is the same thing under the hood"
that's not helpful
 
8 mins ago, by MickLH
"Why?" - because you might want to control when initialization happens.
 
9:53 PM
and I gave you a way to control that initialization without the extra method. try again.
 
Making a static class is making a singleton, and then calling "GetInstance()" in the global namespace. Do you understand what these words mean?
 
I understand perfectly, but you still don't have to type "GetInstance()" anywhere, meaning it's objectively superior
 
No other side-point matters unless it directly answers the original argument, or provides the premise for a LOGICALLY CONSISTENT counter-argument.
@IcyDefiance "objectively superior" does not make it not a singleton
Your logic is "objectively" invalid, and you're only proving it worse and worse here.
What is your goal again?
 
LOL and you go right back to trying to change the subject
 
@MickLH lol ... it would have to be one of a kind lol
 
9:55 PM
you mean LoL
 
"What is your goal again?"
This is directly the subject.
 
well at least you admitted that you don't have to type GetInstance() anywhere...kind of...
I'll take it
 
So, what is your goal again?
Why are you talking about this, I mean?
 
@MickLH why would you ever do both ???
 
to convince people that they don't need the extra layer of indirection when making people use their single-instance classes
 
9:56 PM
kinda pointless getting an instance of a static type
is that even possible
 
@IcyDefiance This is not related to singletons.
 
it's literally what the static keyword was designed for, but so many people want to replace that keyword with GetInstance()
 
You're arguing against poorly designed code, not against singletons.
Indirection is not inherent to singletons.
 
@IcyDefiance Why?
 
It's simply an optimization technique.
 
9:57 PM
I hate poorly-designed code.
 
My latest blog article wasn't as popular. Hmmm.
 
I hear Brent in BBC's The Office saying "which I hate..."
 
Indirection allows you to allocate the heap memory your singleton uses at runtime.
 
What's funny is I would think it was the most important I've done.
 
@PearsonArtPhoto :(
 
9:58 PM
@MickLH it's inherent to the definition of "singleton" that everyone besides you is using, and since pretty much every blog post on the internet says "if you want to limit a class to one instance, use a singleton" then shows an example with GetInstance(), that's what I'm arguing against.
 
Isn't it funny sometimes how that works? reddit.com/r/gamedesign/comments/44wey2/…
 
@IcyDefiance A static class is a fucking single instance class (singleton) by definition. What do you not understand? Can you make multiple instances of the static class? So it's a convenient singleton? Ok thought so.
 
@MickLH Hmm that heap allocation comment is not one I've heard in this argument.
 
That's because people who argue about singletons are morons.
 
@MickLH lol you're too angry to even read now
 
9:59 PM
Languages are simply not designed by morons
 
no point in arguing against someone who only wants to preach and not read the responses
 
@IcyDefiance You are clearly projecting, my mood is positive.
@IcyDefiance I'm sorry you feel this way, should I stop rebutting every single thing you say?
 
so you're too positive to read. I don't fucking care.
either way you haven't read a damn thing I've been saying
and you keep trying to change the subject
 
lolumad? bro? :P
Sorry I rebutted every single thing you said, I guess that means I didn't read them.
Can you explain that to me?
 
if you want to argue with someone head to google and start sending messages to all the shitty blog posts that people take advice from
there are thousands of them. good luck.
 
10:00 PM
Here I will be as simple and clear as possible...
 
@MickLH There are programming languages that are moronic, but they usually don't get to be popular.
 
2 mins ago, by Icy Defiance
@MickLH it's inherent to the definition of "singleton" that everyone besides you is using, and since pretty much every blog post on the internet says "if you want to limit a class to one instance, use a singleton" then shows an example with GetInstance(), that's what I'm arguing against.
> then shows an example with GetInstance(), that's what I'm arguing against.
 
LOLCODE HAHAHA
 
Singletons are interesting...
 
> ...an example with GetInstance(), that's what I'm arguing against.
^ correct, this is what you are arguing against. This specific implementation. Not singletons.
 
10:01 PM
They have a specific purpose, which when used correctly is great, but otherwise is horrible...
 
Can I be more clear?
 
Speak in Lojban and maybe you could.
 
tell me how many results from the top you have to go to find your definition of a singleton
 
You understand that no number of "shitty blog posts" can ever change the definition of a concept right?
I think you must not understand this fundamental property of logic.
 
on the contrary, words are defined by how people use them, and definitions change over time
 
10:03 PM
No amount of incorrect answers changes the correctness of a correct answer.
Ever. Period.
Words are defined by what they mean. If words were defined by how people use them then I'm gonna go take a big fat IcyDefiance.
 
feel free, if you can make that catch on with a few million other people
 
It's funny it smells so IcyDefiance since I IcyDefianced all over the place
Your logic leads to a world defined by people who do not know the definition of that which they define.
 
you can try to resist that change if you want, and plenty of people do, but when people are trying to discuss something with a certain definition, then trying to argue with a completely different definition is just dishonest
 
That's deeply irrelevant
Singletons are single instance classes.
Static classes are one implementation of single instance classes.
Classes which you only ever make a single instance of are another.
Problem?
And again, what is your goal here?
 
if someone random comes in here and asks "should I use a singleton" and you say "yes", 99.999% of the time they'll type GetInstance(), and you would never qualify your statement to prevent them from doing that.
 
10:06 PM
Cool story bro!
I'm glad you can invent hypothetical situations in your head!
 
not hypothetical, because Adrian is that person
 
How does that apply to what is or is not a singleton again?
 
we're literally discussing that situation right now
you told him to use a singleton with no qualifications
 
Oh, so you're proving yourself objectively wrong and admitting it, how convenient.
> ...and you would never qualify your statement to prevent them from doing that.
I wonder what this entire discussion is rooted in? Hmm.....
Oh yeah, qualifying the specifics of possible implementations of singletons.
 
it's rooted in me trying to give actual advice and you just going "anyone that doesn't want to use a singleton is retarded"
 
10:08 PM
Again, projecting.
I am not you, you can not infer my emotions based on your own.
So what is your goal again? Is there a reason to keep talking about this?
 
lol even Jon Skeet disagrees with you: bytes.com/topic/c-sharp/answers/…
you picked a fight with the fucking Chuck Norris of programming
 
Sweet! Good thing I'm right :D
 
I'm trying to find someone on the internet, anywhere, that uses your definition
it doesn't exist
 
Lol lets just let your logic prove your intelligence, and let that disqualify your opinions.
 
you're completely alone here and arguing something completely pointless
 
10:11 PM
You are the only one arguing anything, honestly.
I keep asking what your goal is here...
 
and you don't even realize that definitions come from how words are used
 
I have only said objective facts, sorry your butt is hurt.
 
but literally no one uses the word how you're using it. absolutely no one on the entire planet, that I can find.
 
So, we've covered objectively that a single instance class (singleton) can be implemented by static classes (which is your recommended strategy), or by a GetInstance method (which you recommend against)... is there anything else @AidanMueller needs to know about this topic?
 
only by your definition, which you're free to use, but the definition that every other programmer on the planet is using disagrees with yours
 
10:12 PM
@IcyDefiance Practice what you preach.
 
and you shouldn't just expect everyone else to know what you're saying when you make up definitions like that
 
When you consider the opinions of every "shitty blog post" about religion and "the chuck norris of religion" into your religious viewpoint, then you can come back to this argument.
 
the next time someone discusses singletons, feel free to give your definition before making an argument, like some philosophical paper
 
Read above
 
just don't make the argument before giving your definition, because no one will understand you
 
10:13 PM
Read above.
 
2 mins ago, by Icy Defiance
and you don't even realize that definitions come from how words are used
 
Read above.
 
"above" doesn't counter that point
 
There's no need to counter that, it's trivially ridiculous.
 
lol go look at some english from the 1800s then try making that point
 
10:15 PM
@IcyDefiance logic: All raisins fly harder than fluffy. Therefore your point is invalid.
I can prove this reasoning to be exactly equivalent to yours. Were your parents religious or something?
Because you are.
So, we've covered objectively that a single instance class (singleton) can be implemented by static classes (which is your recommended strategy), or by a GetInstance method (which you recommend against)... is there anything else @AidanMueller needs to know about this topic?
Also, just to be clear, Jon Skeet's definition agrees with mine with exact precision.
 
"I can prove this reasoning to be exactly equivalent to yours." you can, IF you define "raisins" and "fluffy" yourself. if you neglect to do that, then people will use the normal definitions for those words, which would make the statement nonsensical. just like when you neglect to define "singleton" yourself, people will use the normal definition, which is mine, not yours.
 
I thought it was Jon Skeet's?
lol, his definition agrees with mine exactly, not yours. Yours assumes more than he said.
 
nice, you completely dodged the point
I'm glad you can use humor to distract from you being wrong
 
Here's the discrepancy, I'm using formal logic whereas you are using... not logic.
You have not reconciled the fallacies I've outlined
 
890
Q: Difference between static class and singleton pattern?

Jorge CórdobaWhat real (i.e. practical) difference exists between a static class and a singleton pattern? Both can be invoked without instantiation, both provide only one "Instance" and neither of them is thread-safe. Is there any other difference?

 
10:18 PM
Did I light a fuse?
 
The biggest difference between a singleton and a static class: The singleton is more general.
 
sigh be nice to each other, or leave. Is the choice so hard?
9
 
I'm controlling where initialization happens I think it makes sense.
 
Sweet, singletons are very useful.
 
No, I'm not using a singleton.
 
Jon
10:20 PM
i never use singletons
i also don't like their name
 
Either way, don't let religious people beat you up for using them. They are fine.
 
In Unity, if I want to have a GameObject, it can't really be used as a static class.
 
Neither do I.
 
Jon
Use them if you want, but I don't see why you would need to
 
You can either FindComponent("SomeObject"), but that's slow, or use a Singleton.
 
Jon
10:21 PM
I will eat your children if you use singletons
That being said.. use them if you want
 
It's really crazy how some people bash something so religiously just because they have never experienced the actual need for it.
The moment you actually need a singleton once, ever, you will understand what it actually is. Your understanding will not be subject to "shitty blog posts".
 
Jon
LOL, everything has a use
 
I asked myself, "who needs to use X". The answer was "Y needs to use X". So anytime I make a new Y, I first make sure that X is ready. Of course, I don't leave Y responsible for the initialization of X, I made an X manager (I will call it X-man).
 
Jon
The only time you need a singleton.. is if for example, you only need one instance of an EXE running at once, for a critical reason
 
Singleton is by far the Design Pattern I most use.
 
10:22 PM
There's plenty of cases for using singletons, they're used all the time including in a lot of major software frameworks
 
Jon
LOL, ok.
Singleton Pearson here
 
Observer second.
 
Jon
SINGLETON EVERYTHING!
 
For me the question isn't "is there a use", it's "is there a better way".
 
^
 
10:23 PM
That's also not a good choice...
 
Jon
Point is.. in most cases if you are using singletons, you shouldn't be
 
lol unless you know how to use them properly
 
Jon
More than likely, if that is your most used design pattern, you are doing it wrong.
 
The problem that I always have that leads me to using Singletons is where there is a class that does one thing, which needs to be called by a lot of things.
The problem I have is that I don't know the proper use of other design patterns well enough...
 
You just don't know the names of the patterns you already use...
 
10:24 PM
And I finally decided that thinking about which mine field to cross wasn't getting me anywhere, so I picked a mine field and started walking. I think the mine field I ended up picking isn't too dense. It's working pretty good. In fact I think I boom OW MY LEG OUCH NOT THE RIGHT MINE FIELD.
 
That's likely the case.
 
Jon
yeah, everything has a name now
Business people like to name things
 
When a single class has core functionality, there are 3 ways that I know of for others to use that functionality.
 
But seriously, I waste too much time theorizing.
 
Observer, Singleton, or some kind of tightly coupled system.
 
10:25 PM
@AidanMueller I told you how to deal with this already! Damnit!
 
It never gets me anywhere.
 
I like to use loosely coupled systems in general, which leads me to the Observer vs Singleton debate.
 
@MickLH I know. You said to just practice programming. That's what I'm doing.
 
No, I meant you blow up 2 mines and then follow the straight line through them to the other side
 
Oh, right.
 
10:26 PM
The probability of a 3rd mine being randomly on that line is zero
 
The biggest thing that I gathered from reading Design Patterns was understanding how OOP should work, and using that knowledge to make "my own" patterns.
 
Well you were joking around a lot, so I wasn't sure if you were being serious (still am not :D).
 
I say "my own" because I don't doubt that almost all, if not all, of them exist already, I just don't know the name for it.
 
And for the record, pokemon is on it's way.
 
Dependency Injection FTW :)
 
10:27 PM
@AidanMueller good observation! I was joking around a lot, and whether or not I am serious even still is not clear!
 
Yeah, I guess there are a few things like that which if I took the time to learn, would probably ultimately make my life easier.
 
Actually I am serious about 3 points on a line, think about it there is 1 possible value of Y on a line with known X, out of infinity possible random choices, therefore probability zero. But mines are not points so of course don't actually trust that algorithm with your life
 
I take it back, Observer is definitely the pattern I use most, followed by Singleton.
 
The best alternative to singletons is dependency injection - although often you inject what is essentially singletons :)
 
Also, I was serious about the horse gibs method being a las vegas algorithm for actual mines
 
10:30 PM
@TimB Dependency injection is great and all, but what if are trying to abstract everything, and you won't always need to have the dependency? You get what I'm saying?
 
My Astar code, while small, is pretty typical of code that I write. github.com/kd7uiy/AStar
 
You're gambling with your horse gibs as you throw them in the line, you may lose some number of horse gibs during mine-tests but never gambling on the correctness of the next step
 
@AidanMueller Not sure what you mean?
 
The problem that I was trying to solve is this:
* Main creates an A
* B is an implementation of A
* All Bs need a C, but not all As are B. Therefore, not all As need a C
* ...Meaning that Main can't be responsible for the creation of C, since C is implementation-specific
 
@AidanMueller so use IoC and forget about it
 
10:32 PM
And also it follows from there being 3 random points on a line with probability zero, that the number of horse gibs used is proportional to the density of mines in the field, not the size of the field itself
 
user136984
My browser crashed so I got quite a bit delayed, but is everything ok in here now? Or perhaps I have the wrong room? :D
 
IoC being Inversion of Control? Yeah that's Dependency Injection ... well they're related rather than identical
@ParanoidPanda we deleted some comments, people seem to be behaving now
the conversation was interesting so I joined in :D
 
@MickLH The probability of there being 3 random points on a line is not 0.
 
goodnight all, I'm off o/
 
night
@AidanMueller Prove it
 
10:35 PM
Since in between the two points is a possible position for a 3rd point.
^
 
You'll get money if you actually prove it with formal logic, not a steaming IcyDefiance
 
@MickLH rofl
 
user136984
@TimB: Well, I'm glad that all has settled down now. Goodnight! :)
 
I'm not going down this road. I just like to think of the probability as being 1/Infinity.
 
And asymptotically 1 over infinity is.... ;)
@AidanMueller What is the probability of a random choice being on this exact point?
 
10:37 PM
I call it "next to zero".
 
@AidanMueller a line by definition is drawn between 2 points right .. so the probability of finding any random point in between those 3 ... 3 times in a row ... is probably > 0
im sure @MickLH will disagree though
 
It's strictly not greater than zero
 
It's the weirdest concept ever, but I don't care because I have better things to do.
 
The "next to zero" notion is workable
You can introduce infinitesimals and then you can say it's > 0
 
I guess you could say that the probability is not quantifiable.
 
10:38 PM
But any infinitesimal is strictly closer to zero than any possible number
It is quantifiable, it is probability zero.
How about you guys learn some stats then we will finish this talk, cool thanks
 
But zero would mean that it is not possible, wouldn't it?
 
No
It means that the chance of it happening is zero
 
...which means that it's not going to.
 
It's still possible, just has no chance of happening. Out of infinity tries you will probably get zero hits.
This is effectively saying it "will not happen", not the same as saying it "can not happen".
 
But anything can happen with randomness.
 
10:40 PM
And that anything has a probability, which is in some cases zero
 
Free animation classes from Pixar w/ Khan Academy - khanacademy.org/partner-content/pixar
 
OK. You could think of the possible places for the point to end up as an infinite set. That infinite set would also include the infinite number of points on the line.
Well, really, the points of the line is a subset of the infinite possible positions, but...
 
Divide both infinities by the smaller infinity
Now you have 1 over infinity again
 
OK, I don't really see too much practical application for this in my life, especially since physical objects don't really have zero size. At least not any physical object that I will be working with, so...
I have stuff to do.
 
That's fine, most people can't see it
And most people don't understand it, which is good for the engineers who do
 
10:44 PM
I just am not good at math enough to discuss this.
...yet...
 
Pip
o/
 
That's why $100 per hour is insulting, and $300 per hour is cheap for this class of people
hey @Pip
 
Pip
Hey!
I've been learning about vector images
 
fun fun
Are you supporting them in your framework?
 
Pip
I'm going to try
did a little bezier curve implementation. It ended up very similar to Microsoft's patented method
 
10:45 PM
lol
 
Pip
For doing it via shader
 
Jon
I love you guys
 
OK. After 5 seconds of google, the answer appears to be undefined.
I'll leave it at that.
 
In reals, yes
 
Jon
Not sexually but like gamedev wize
 
10:46 PM
I love you platonically too jon
 
Jon
My gamedev support group
 
@AidanMueller anything divided by infinity is undefined in the real numbers, which is why I said earlier that you must go into the infinitesimals to explain "next to zero" exactly
lets hear Icy saying that actually math is defined by how you use it
and therefore 1337 / banana = I win.
 
I still think that "next to zero" is an amusing concept.
 
Jon
You plutonic, me uranusnic
 
listens close ahhhh I love that sound :)
 
Pip
10:48 PM
@MickLH that's true though :D
 
lol but only in a strictly incorrect way
I mean sure, you can do and say anything you want all the time without giving a fuck about the real world or anyone else
But that is what it is.
 
@PearsonArtPhoto or use a static class that wraps the GameObject, which Mick calls a singleton, but no one else on the planet does so I doubt that's what you were thinking of.
 
@MickLH I have a feeling that 1337 / banana is undefined :P
 
lol, feelings are very useful in math
 
@TimB dependency injection solves a different problem than singletons do. DI is to let something else manage the lifetime of an object, while singletons are just global.
 
10:52 PM
I've literally never seen DI used to manage the lifetime of an object, the notion itself almost seems nonsensical to me, so I'll keep an eye out, thanks for the heads up!
 
DI isn't used to manage the lifetime, it's used to push the responsibility for that management outside of a certain class.
and @AidanMueller, Mick is being loose with definitions again when he talks about 1/infinity, though he did fix that by finally saying it's undefined and the end of your discussion. much simpler explanation here: mathsisfun.com/calculus/limits-infinity.html
 
I am never loose, I just expect you to not assume wrong things.
It's really that simple.
 
using something similar to his initial logic, you can also "prove" that infinity = -1/12: youtube.com/watch?v=w-I6XTVZXww
 
Only if you put a big load of IcyDefiance into the logic and assume it's true.
You know what's fun? How similar to "similar" does a concept have to be, to be considered similar?
My logic does not change, just to be clear.
If you have two views of my logic and they seem to conflict, build a system of equations out of them and solve for the intersection.
 
in this case, the similarity is trying to say that a formula that approaches a certain number is equal to that number
 
10:56 PM
I made sure to handle "probability zero" differently than "real zero"
 
and hey, feel free to prove that your definition of "singleton" is the right one. of course you first need to come up with some metric for rightness better than popularity. unfortunately just saying your definition is right doesn't make it so.
 
So get owned son. Suck on your own assumptions ayyyyyy
Also, I didn't google anything in over 30 minutes
I know for sure because you're back and I had not googled anything before you left either :P
I don't argue something I have to google about, that's kindof a big part of why I'm "1337"
It's not that I know everything, it's that when I can't prove I know and can't prove that my proof is valid. I shut up.
It's that easy, I just shut up unless I know.
 
@MickLH yeah I noticed that, but since you just expected people to infer the definitions you were using, Adrian didn't get it, at least not at first. my mathsisfun link is a lot simpler because it didn't beat around the bush and try to "blow your mind" by using words in strange ways.
 
I don't do that, I think this is the projecting thing again.
Can you stop trying to use your own emotional reactions and compensations to model mine? They are simply not related in any meaningful way outside of any other pair of humans.
 
3 mins ago, by Icy Defiance
and hey, feel free to prove that your definition of "singleton" is the right one. of course you first need to come up with some metric for rightness better than popularity. unfortunately just saying your definition is right doesn't make it so.
 

« first day (2014 days earlier)      last day (2996 days later) »