« first day (1539 days earlier)      last day (3402 days later) » 

4:00 PM
good point about the messages
 
@thecoshman unordered_map<thingy, std::function<Sig>> is no design pattern.
as far as I know.
 
I need to represent each functionality somehow so that it's human-readable
 
@Puppy the command pattern
hint: most patterns are just good programming.
 
that merely designates "Pattern" as "Obvious thing to do that people sometimes do"
 
@AlexM. ... a string...
 
4:01 PM
@Alex that's what the name is for.
 
obtw, check out my definition for turning backwards: RotateRight(RotateRight(currentDirection))
#quality
 
Rename to 'Rotate90Right'
 
@R.MartinhoFernandes yeah, but usually in tutorials there's an icon shown for each button, and I will also need to map icons to names in the GUI
 
Add an icon too...
 
@AlexM. Surprise, you can map a string to multiple things.
Either via multiple maps or a map into structs!
 
4:03 PM
I'm trying to say that I realized what I need to do :<
 
The reason I said 'name' and not string is that I meant whatever information can be used to identify the action.
 
@Puppy yes, but you have provided one method of implementing it in one langue. that is useless for anyone outside of the scope of this very exact requirement. If you took your head out your arse you would see that patterns allow people to talk about the architecture with out getting caught up with inane details.
 
I didn't use any pattern to explain anything.
 
Is it time yet for a 'Fuck patterns'?
 
@thecoshman "A map from names to functions" describes exactly what it is without using retarded, cryptic names.
@MartinJames Come back in five minutes.
 
4:05 PM
@R.MartinhoFernandes you did, you just didn't lead with saying you're using the name of the pattern.
@Griwes it's no more cryptic than anything else you have yet to learn.
 
@MartinJames I felt that was not necessary because this is the only (standard) rotation that you can do in the game dl.dropboxusercontent.com/u/17635452/mygeef2.gif
 
@thecoshman It's more cryptic than "a map from names to functions".
 
well, excepting the free look using the mouse while keeping the right button pressed
but that's another thing
 
@AlexM. command pattern also lends itself well to replaying and reversing actions
 
4:07 PM
aside from the free look using the mouse, it's a look-at-cell move-to-cell game
 
@thecoshman which makes it completely irrelevant.
 
well, still
you're going to e capturing the actions that a player makes, so you can easily 'record' that game.
 
I used the word 'command' because I meant "command" not "the command pattern".
What I described is the Strategy pattern btw.
 
I didn't think of patterns while reading robot's message tbh, but that's probably because I never really read about them :(
 
4:09 PM
So yeah, well done.
 
OOOH OOOH I know the strategy pattern!
it's the one based on composition and shit
and interfaces
 
@AlexM. most stuff is based on composition and shit
 
void(*strategy)();   // Design Patterns are important, mkay?
 
user1804599
void(*strategy)(void); // As is C
 
now that you mention it, I kinda use strategy a lot when making characters, in the form of something like...
 
4:12 PM
Strategy is just HOF in Java.
 
@R.MartinhoFernandes Which pattern isn't?
 
Singleton :P
 
if enemy is near
    behavior = aggressivebehavior;
else
    behavior = idlebehavior;
 
@R.MartinhoFernandes HOF? hold over from?
 
@AlexM. if/else is not a Design Pattern. How about a StrategyFactory instead?
@thecoshman Higher-order function
 
4:13 PM
@FredOverflow factories need managers
2
@FredOverflow ah
 
@thecoshman Right, and those are often Singletons.
 
@FredOverflow lol
 
StrategyFactoryManagerSingleton
 
lol managers
 
Factory managers are important.
 
4:14 PM
@Puppy lol staff
 
Without managers, factories would go completely berserk.
And you can't have more than one manager, or all hell would break loose.
Hence the StrategyFactoryManagerSingleton.
 
@FredOverflow Not generic enough; what , are you going to rewrite it for every use case? It must be an abstract base class, hence AbstractStrategyFactoryManagerSingleton.
 
StrategyFactoryManagerSingletonFactoryProxy
 
but any way, I like patterns when they are used to talk about the high-level concepts, but they suck when you have people obsessing over doing them 'right'. You get people reviewing code, "this isn't pattern X, rewrite it all to make it like that pattern, even though it works".
 
StrategyFactoryManagerSingletonFactoryProxyDNS
 
4:17 PM
there's got to be a contest for the longest name in real-life frameworks
 
wait, it's not that kind of proxy
 
@milleniumbug look to jee
jee is a series finger exercise
where jee is your mum's vag...
 
You are all continuously forgetting about making your patterns Abstract. That's just sad :(
 
> Convenient proxy factory bean superclass for proxy factory beans that create only singletons.
>
> Manages pre- and post-interceptors (references, rather than interceptor names, as in ProxyFactoryBean) and provides consistent interface management.
> convenient
 
user1804599
4:21 PM
AbstractSingletonProxyFactoryBean is just a convenient proxy factory bean superclass for proxy factory beans that create only singletons, what's the problem?
 
> Author: Juergen Hoeller
Let's not let him be forgotten.
 
@Griwes who?
lol lol lol
 
lol
 
@Griwes what about a nullObject?
 
4:33 PM
this is how to not write an article about a game pcgamer.com/hatred-reinstated-on-steam-greenlight
 
Victory
 
@JerryCoffin would you consider 50k shutter actuations a short lifetime or is that just me? I can easily make several hundred exposures in a single outdoors photo expedition. When I went to Denmark, I took over 2000 in about a week. That's 4% of that lifetime in 7 days. Or am I worrying too much about that?
 
@AlexM. s/about a game//
 
user1804599
4:48 PM
@CatPlusPlus Looks terrible and inconsistent.
 
user1804599
Why }} and why is ( on its own line?
 
Testing
 
@R.MartinhoFernandes What camera do you have? I think you will be bored before 50k.
 
Lines with closing parentheses should level with the indent level of the opening one
 
@rightføld could be worse
 
4:56 PM
@JohanLarsson I'm selling my EOS 700D. Not sure what I'll replace it with.
 
vim's built-in matching parenthesis jump doesn't ignore comments :cripes:
 
@R.MartinhoFernandes I've been lookng at 5D & 6D for a while. I have a really old 20D.
 
I really like the variable angle screen on the 700D, though.
If I stick it in the telescope, I can flip the screen around instead of contorting myself to look at it.
Yeah that 6D is way overbudget for me.
Delete.
 
5:04 PM
is sqrt an overloaded function in c++
as in can I use ints instead of doubles?
 
@Johan I'll add you when I get home.
 
@DonLarynx Such question are answered the best by manual
 
@R.MartinhoFernandes ok no rush. I'll explain the perhaps strange request then :)
 
such as en.cppreference.com
 
5:06 PM
I thought about putting Skype on my phone, but you have to scroll to see all the permissions.
 
thx I keep checking cplusplus without remembering cppreference. sry
 
The Android Skype app is usable ime.
 
ime?
 
I boycott all apps with ridiculous permission sets.
 
@Nooble in my experience
 
5:08 PM
Ahh
 
@rightføld Why does this remind me of Monads? :)
 
They make the ecosystem bad for everyone by making it commonplace and acceptable to require all sorts of nonsense.
 
"Tetris 2000 - This app requests permissions to: Read your contacts, read your SMS, access your accounts, access your passwords, access your mother's Facebook page, access your email"
Seems legit. Gotta love me some tetris.
 
I know it's primarily Google's fault, but they play along.
 
beat the high score or we send your girlfriend an SMS informing her of your affairs
plot twist: you need to buy 10 crystals for $10 to be able to go above 0.5 * high score
but really are you surprised that Skype requires a lot of permissions lol
if it were some weird unknown app I'd have agreed
but for Microsoft... c'mon
 
5:13 PM
@R.MartinhoFernandes I have a chrome plugin which required only access to Wikipedia. So that's all I required in my manifest file. A few months later I added requirement for access to code.google.com. This triggered a warning message to the users telling that the security settings of this application have changed and users should be very careful. This dropped my user count by 50% (uninstalls). I would have been better off requiring access to everything in my first release (like most plugins do).
It's a silly system.
not that I care so much about user count
but still, I like if the number is high
 
inb4 user count dropped from 2 to 1
:P
 
Currently I only have 970 users left. It peaked at 1800 about 2 years ago.
 
@AlexM. That makes sense
 
@Alex it's not Microsoft that makes it unsurprising. It's Google.
Every fucking app is like that because there's no degradation mechanism.
Your app has some weird function that might need a camera even though the vast majority of users won't use it? (Say, the Amazon app for reading a bar code) It'd be easier if you could not require that permission unless the user actually wants to read barcodes. Google says no.
 
Ell
There is a Swedish person in my house
 
5:21 PM
lol!! LRiO hat-hunting backfires:
http://meta.stackoverflow.com/questions/281621/has-my-rep-been-annihilated-by-a-bounty-without-a-destination
 
Ell
Yeah Google were going to release a reasonable permission system iirc
 
Bork bork bork
 
Ell
But then didn't. I remember leaked screenshots
Maybe they were faked
 
5:23 PM
Dec 29 '14 at 19:03, by bluefeet
@LightnessRacesinOrbit You can't expect to get away with posting nonsense just because it is hat season.
what else is new :P
 
Lesson learned, don't try to put the computer on standby with a 48GB ram drive.
It simply doesn't work...
 
@Ell they were not faked. The functionality was in the system, just not enabled yet. Following release removed it instead of enabling it.
Google sucks.
 
@Jefffrey I choose 60%, because that is the only option that doesn't induce headaches.
 
he he
 
5:24 PM
is that one of those paradoxes
2clever4me
 
@Borgleader Orite, missed it.
 
@MartinJames Not hat-hunting.
@Borgleader Not "nonsense".
 
Ell
@R.MartinhoFernandes yeah that does suck
 
hmm
seems like in C# you can't replace a method with another at runtime?
I have a desperate need to fix a third-party closed-source fuckup
 
TIL about Cloud9IDE.
 
mod deleted your answer, and promised me in PM that you'll be suspended from all of SE for a month
 
lol
was it a pinky promise?
otherwise you have been punked
 
plunked
 
@Puppy you can probably do it with Fody.
 
welp, I'm bored
 
5:32 PM
Guh, ELL and ELU are still as toxic as ever
 
@Puppy Might be possible, but you certainly can't do that without full trust.
 
sometimes I forget that I'm arguing with the nerdiest nerds that nerdom has to offer
 
This reminds me very much of cargo cult. Does your system encrypt header files? Or block cppreference? — sehe 9 secs ago
That's a profoundly ignorant question. And a weird +5 answer
 
@JohanLarsson Not with Fody.
@Puppy Ah, then pretty sure you can't.
 
@R.MartinhoFernandes Ah, the technical term is "monkeypatch", huh.
I keep forgetting it.
 
5:34 PM
@JohanLarsson Sure!
> Well done to whoever at Boots stocked the knee bandages on the bottom shelf, meaning you have to crouch to get them. Sadists!
lol
 
@LightnessRacesinOrbit Found a dupe. Was about full text search of TFS history.
 
@Puppy I'd probably just patch the IL directly.
 
anyway, I've never wanted this before, and I hope to God I don't want it again.
 
I.e., fix the assembly before runtime.
 
You'll lose the strong name though
 
5:35 PM
hmm, you can do that?
 
Also might violate license
 
that can work too.
 
Yeah, that's the only problem. Is it signed?
 
@CatPlusPlus Already done.
 
Wrap it?
 
5:36 PM
@CatPlusPlus Reverse engineering for the purposes of fixing stuff is usually covered under fair use.
 
@R.MartinhoFernandes How do I find that out?
 
@JohanLarsson meh
 
@Puppy In VS, if you select the assembly under References, you can see it's full name in the Properties window.
Signed assemblies have names with key stuff and things.
 
Ell
@Puppy already violated the license?
 
then no
the name is just the filename.
no key or anything
@Ell Yep. Repeatedly. Like a whore.
 
5:38 PM
Well, yeah, then just patch the binary.
 
not much fun maintaining.
 
Ah, it's PublicKeyToken=xxxxxxxxx, the part of the name that I meant.
 
@JohanLarsson Don't have to.
 
There might be a simpler way, but the manual process would be: 1) compile a small assembly with just the replacement you want; 2) disassemble it; 3) disassemble the target; 4) replace the IL for that one method with the fixed one; 5) assemble it again.
 
Or decompile to C# and then recompile
 
5:41 PM
I don't know if there are any tools that would help. I haven't used .NET in a while.
 
@R.MartinhoFernandes To be more accurate, I simply need to change it to being virtual, then I can override it as usual I think
 
You can ~override using new even if it is not virtual.
 
@Puppy Oh, then you can use a Reflector plugin for that.
Don't remember the name.
 
@JohanLarsson Won't work for things that expect the base type
 
Oh right, Reflector is not free anymore. Redgate assholes.
 
5:43 PM
true
 
dotPeek is free
 
@R.MartinhoFernandes Yep, else I'd be using that plugin literally right now.
 
@CatPlusPlus But can it write?
 
5:44 PM
It doesn't have to, the decompilation result should be just compilable
 
I don't think it can
 
@CatPlusPlus It often isn't.
 
four years old today
 
5:45 PM
@Puppy Well, then fixing the IL is easy. 1) disassemble; 2) add virtual to IL method signature; 3) assemble.
 
I think instead I'm going to go home right now
maybe turn up to work a bit earlier on Monday.
 
thanks.
goddamn people who can't put the shit they need on an interface like sane people
 
@LightnessRacesinOrbit That's full of wrong.
Well, not full.
But Taurus and Capricorn are misplaced.
 
@LightnessRacesinOrbit: it goes to where the rules and regulations state it goes. It can go to an answer, or it can go nowhere, but the only constant, per the regs, is that it costs you. But heck, it's only 50 points for gosh sake. You've got plenty of rep points to spare. — Hovercraft Full Of Eels 9 mins ago
ahhhhhhh this bullshit
don't know why this logic pisses me off so much
 
5:47 PM
FTR
 
s/what so ever/whatsoever/ too.
 
I think I equate it to those people who cannot see C++ as an abstract machine and instead focus on "well show me a compiler that doesn't do X, Y, Z"
 
this is after I installed a new driver to virtualize the microphone so I can send in audio input.
 
y'know? nuts and bolts unimaginative people
 
lol snack overflow nerding
 
5:47 PM
I've never been able to pin down whether it's actually a bad personality trait and, if so, what it's called
it's probably not
but it might be
I mean, complaining that I'm trying to gather knowledge just because I can afford 50 rep? how is that good for the progression of the species?
 
50 rep?
You placed a 50 rep bounty for a hat?
 
oh no
 
50 is the lowest value.
 
I put 500.
 
I also put it on an answerless question hoping I'd get it back -.-
 
5:49 PM
5-fucking-00.
 
@LightnessRacesinOrbit lol
@LightnessRacesinOrbit Because all the bounties I put now are 500.
 
I did it on a question that deserved one, though.
227
Q: What are Aggregates and PODs and how/why are they special?

Armen TsirunyanThis FAQ is about Aggregates and PODs and covers the following material: What are Aggregates? What are PODs (Plain Old Data)? How are they related? How and why are they special? What changes for C++11?

Was missing an update for C++14 and I didn't want to bother reading the standard myself and hats.
 
still #11. don't think I'll be able to beat this
@R.MartinhoFernandes haha dat edit
 
5:52 PM
@LightnessRacesinOrbit Actually, yes, it is full of wrong.
 
who gives a crap about hats
 
Nerds
 
Lots of people have life affected by the positions of stars and planets. See also: daylight.
 
@R.MartinhoFernandes I was thinking about people who drowned when cut off by rising tide.
 
Yeah, that too. I agree with the sentiment the author wanted to express, but the execution was terrible.
 
5:57 PM
I think the author is an unimaginative arrogant bigoted prick
Not because I believe in horoscopes — I don't — but running around the internet claiming categorically that X superstition is wrong doesn't really help anyone. Especially when you can't prove it.
(grabs popcorn)
 

« first day (1539 days earlier)      last day (3402 days later) »