« first day (1409 days earlier)      last day (3540 days later) » 

12:01 AM
smh
 
Ell
I need a new phone
 
I'm thinking about getting a controller like this for my phone
especially since you can also run n64 emulators and whatnot
 
@sehe What's "weird" about it? Food on a plate...
 
Ell
I'm gonna get a moto g lte
 
the early Sonics were ACE
 
1:07 AM
 
 
1 hour later…
2:15 AM
Hello :)
 
@BobParker Hi, how are you?
 
user3010322
Guess I have to enumerate the Registry to figure out some of the fonts installed on a system...
 
user3010322
2:30 AM
Sounds nightmarish, to be honest.
 
@ThePhD Why in the world would you do that? Is there a problem with using EnumFontFamiliesEx and such?
 
It doesn't work on Linux obv.
:p
 
@Rapptz "enumerate the Registry" doesn't either.
 
user3010322
@JerryCoffin Why didn't that turn up for several variants on "Enumerate Font/Families in C++"?
 
user3010322
Google doesn't like me. :c
 
2:37 AM
@ThePhD Google obviously doesn't have anybody as good as me! :-)
 
user1646075
If Python 3.5 want to do it properly they need to take a leaf out of APL and all the languages that offer 'function operators' - eg

a * b ------ element-wise multiply - cool so far
a +.* b ---- traditional matrix multiply

i.e. for A(mn) and B(np)

sum over k=1..n of A(i,k) * B(k,j)
 
user1646075
then, they open up a whole smorgasboard of capability by inserting different operators in place of + and *
 
user1646075
until they accept operator and function literals, function operators and higher-order operators, they'll always be doing it the hard way.
 
user1646075
... and the . in the sample is just APL's choice of combinator operator for this thing. Doesn't have to be the thing used. Haskell manages to make higher-order work with wordy syntax...
 
I have been having too much seafood lately, need to cut down on it after tonight's 9 course Japanese seafood dinner ... don't want the cholesterol level to shoot over the roof & die from a heart attack, no matter how much I love seafood
 
user1646075
2:50 AM
have you measured your cholesterol?
 
3:19 AM
I should but I hate go to the doctors ~_~
 
user1646075
heh - I hear ya! I think you can get a personal testing kit for that - now I'm curious....
 
user1646075
mehh - "Bottom line: At-home cholesterol tests may satisfy your curiosity, but they don't provide enough information to be truly helpful."
http://www.webmd.com/cholesterol-management/features/accurate-or-not-at-home-cholesterol-tests-blood-pressure-monitors
 
It's more of a prevention thing, I am sure if eating seafood would give you heart attack, half of fisherman would have died young
 
user1646075
a year or 3 ago, i read something persuasive (that is, scientifical enough) that said the cholesterol cycle isn't nearly as simple as Ch.(blood) == Ch(eaten) but it's highly linked to the body's self-production of trigicerides (or fats or whatever TF) due to the metabolism of carbs. The general ghist of it was - enjoy your seafood, meat and eggs and avoid the refined shite (unless you are truly in training for a marathon)
 
user1646075
so, yet another argument saying that endless bread, pastries, sugars and so on is killing people
 
3:33 AM
a kilo yabby, half a kilo scallops, a fair bit of shrimps/prawns & fish in 3 days time can not be good for health ...
 
user1646075
geez - that must have been a big weekend! Is this regular ?-)
 
nope
went to the market & bought too much fresh seafood, as you know seafood don't last, even in the fridge
 
user1646075
heh - invite us round the next time, sure you'll get some help
 
lol, sure, fly over first :p
seafood here is quite cheap if you go to the right places, but then you have to bulk buy to get that price
thus, my current problem ~_~
 
4:06 AM
 
4:57 AM
@Jefffrey WTF? I hope that was an intentional stunt.
@Rapptz Asian racist and batshit crazy feminist?
 
yes
 
5:54 AM
@LightnessRacesinOrbit I've been hoping to see some RJ aftershock in CBI and FBI and everywhere, with people working from behind the scenes on his behalf (considering his "deep influence"); but they don't seem to care - they will focus on Patrick's relationship - great :-\ :)
 
6:33 AM
@ScarletAmaranth RJ?
 
7:24 AM
the latest video driver upgraded my old benq screen to a dell :v
 
I'm so on drugs right now
 
@Puppy unless they also do lord-title-worthy things!
Singing scientists are the worst, though.
 
I went to oculist and they put an eye anesthetic of some sort to make my pupils look like I'm on drugs
completely dilated
I can't see shit
Also john hammond died today/yesterday
I hope his prehistoric studies won't get forgotten
 
Huh, cool
I'm looking at the request log of my development server and apparently Chrome sends a request before you hit return in the omnibox.
And when you wait before you hit return the web page appears instantly when you hit return.
 
7:41 AM
there is nothing cool about it
Firefox did that 10 years ago
@Jefffrey may be you actually are on drugs
 
@CatPlusPlus Do you serve a REST API with Django by any chance?
 
@Jefffrey Give it couple of hours.
IIRC I could usually see normally after about 3
 
Yeah, they said it will last for 2 hours
 
I should probably visit eye doctor soon as well. Had these glasses for 5 years and it starts to show.
Especially how they got hit by a squash ball... :-D
 
8:07 AM
Aaaand I killed the chat.
 
"Step 3: Begin talking about glasses at 4AM. This kills the chat."
 
Its 10 AM here, stop being american.
 
@OmnipotentEntity I see you too are an EST master race.
 
@Rapptz So much text there
 
8:13 AM
That's what happens when you shitpost.
 
@Rapptz Hail, Rapptz.
When will we start the secret society meeting
something something East Standard Tribe
 
Probably next week.
Also a fun note.
Your name is long so it continues in a newline.
 
I blame 16 year old me for being a little shit
 
You made your username when you were 16?
 
Maybe even younger, it's been so long I don't remember. I've had this name since at least 2000
 
8:18 AM
I made this one 6 7 years ago.
 
Oldest google mention of this name is from 1998. But I think that's a bug.
I'm pretty sure that I made it Spring 1999 when I was in 9th grade.
 
I'm looking at the last question you answered.
Kind of curious why the OP is against using -O3.
'My program is faster with -O3 than with -O2. How can I get this speed without using -O3' seems like a really silly question.
 
Me too, probably outdated info about compiler optimization bugs from GCC 2.x series
Either that or a boss who etc etc.
A tongue in cheek answer to that question would be "use -Ofast"
 
Yeah I always got advice that I should avoid -O3 and use -O2 when I was new to gcc eons ago.
Something about optimisations causing bugs in your program. I now know that the compiler will only do that if I have UB (or if there's a bug in the compiler).
 
Everything is horrible. C++ sucks. Oh god why.
6
 
8:26 AM
@Rapptz See, that is shitposting.
 
On an unrelated note.
I'm not entirely sure if the main menu of a game should be a game state.
or well how I'm designing game state it makes the whole quit button thing harder than I thought
 
oh, for a second I thought this was Re: Starbound docs.
 
Paging stuff is nice. If you can break it into unrelated components that's always good.
 
We use a game state for the title screen.
 
how do you handle quit buttons?
 
8:29 AM
Let me double check.
Quit to Title or Quit Entirely?
 
quit entirely
 
I wish YouTrack agile board didn't require refresh. :c
 
We have a MainAppState enum, that each of the state functions returns the new state every frame.
one of the states is Quit
 
I pass around a context to the state but the quitting and other state information is in the game class and isn't available to the state. Might be bad design on my part I guess :s
 
C++ is awesome. I'm loving it! *two thumbs up*
 
8:31 AM
Sounds a bit overcomplicated. Here's our top and 2nd to top client cpp files:
 
@Neil Then you are not doing it right.
 
Oh god m_ prefixes
 
> CONFLICT (content): Merge conflict in www/application/third_party/dompdf/lib/fonts/log.htm
Why is there a log file in my repository.
 
Also auto everywhere
why
 
8:34 AM
I like auto with m_prefixes, writing auto is much shorter than writing int and also it works really well in practice.
3
 
auto auto_ = Auto();
auto didCrash = autobahn.fahr(auto_);
 
mostly because lazy
 
auto m_auto = auto();
 
So why is m_ prefixing a bad idea? If I may
 
Why is it a good idea?
 
8:36 AM
people here don't like hungarian notation
 
everyone uses it at my workplace
 
@OmnipotentEntity If you want an idea on how 'overcomplicated' my state system is, it's basically like this: coliru.stacked-crooked.com/a/c48a3ff73a357692
 
I kinda got used to it
 
@OmnipotentEntity You are not "coding" as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
 
m_ is the only hungarian prefix I don't care about.
I personally do stuff instead of m_stuff though.
 
8:37 AM
I guess when we're sending tiny code snippets around it's easier to tell what's a member and what isn't w/o adding extra info
 
@Rapptz That's very clean
 
I think
no idea, I didn't think that much about it
there's an answer to a question here on SO that says why m_ is good
 
Yours is nice too
Outside of the um.. singletons..
 
@OmnipotentEntity Classes should be small enough that you don't need m_ to avoid name clashes.
 
I do _stuff for private properties in some projects but mostly I just stick to the coding standards.
 
8:38 AM
isn't that C#?
I mean Microsoft's standard for it
 
@BenjaminGruenbaum Unless you are using python, you are terrible.
 
Also +1 for... you know. Not being one of those gamedevs.
 
@Jefffrey why?
 
_thisisterrible
everything_is_terrible_tm()
 
@OmnipotentEntity should be my senpai instead of @ThePhD
 
8:40 AM
Hahaha
no, I suck too much
 
1 min ago, by Jefffrey
@OmnipotentEntity Classes should be small enough that you don't need m_ to avoid name clashes.
s/m_/_
 
@Jefffrey who said anything about name clashes?
 
Then why are you doing it?
 
To differentiate between class members and local variables at a glance.
 
I understand it.
 
8:41 AM
@OmnipotentEntity and parameters
 
Like I said, I don't hate it.
 
I don't see what's wrong with camelCase
 
First of all I'm (a) not actually doing it very often and (b) to convey intent and remind myself that I'm using a property that users of this could will not use.
 
You classes should be small enough that you can see everything in one shot.
 
It's not as bad as i_my_int_variable.
or g_my_global.
 
8:41 AM
g_ is ok
 
well g_ isn't terrible but having globals in general is bad.
 
that^
 
essentially we use m_ to mean mutable and s_ to mean static/const
 
but but
 
Use l_ for locals while you're at it.
 
8:42 AM
@Jefffrey Sometimes you write code that implements an algorithm that's 50-60 lines of code, even if you split it into 4 or 40 methods it's still not something you'll be able to "see in one shot"
There is no point in splitting everything into classes, classes group things logically, classes for the sake of having short classes is stupid.
 
I live in a utopia, OK?!?
 
Btw I for interfaces is terrible as well.
Ugly and completely pointless.
 
@OmnipotentEntity Oh.. you do your game states as an enum.
 
@PolymorphicPotato yeah I hate that in C#
 
@PolymorphicPotato inb4 "But then I know IWhatever is an interface at a glance!"
 
8:43 AM
@Rapptz Yeah, just an enum.
 
@PolymorphicPotato there's this guy on programmers.se who used names like
 
I like the "-able" for interfaces though
 
@Jefffrey Which is the most irrelevant information ever!
 
ICanMine, ICanEat, ICanCutTrees
& stuff
 
When I saw the roslyn compiler's source and saw a 4000 LoC tokenizer file I cried a little :D
 
8:44 AM
lol
 
let me see if I can find the answer
 
@OmnipotentEntity I chose this way of doing it because I wanted to separate the game logic etc. How do you handle different character states? Like jumping, attacking, crafting? Is that an enum too?
 
10
A: Alternatives to multiple inheritance for my architecture (NPCs in a Realtime Strategy game)?

Robert HarveyComposition and Interface Inheritance are the usual alternatives to classical multiple inheritance. Everything that you described above that starts with the word "can" is a capability that can be represented with an interface, as in ICanBuild, or ICanFarm. You can inherit as many of those int...

here it is
 
lol Harvey
 
yeah lol had no idea it was him
 
8:45 AM
@Rapptz Oh, entity states are carried around by the character.
 
Ah..
Maybe I should rethink my design.
 
I was constantly reading public class Worker: ICanBuild, ICanFarm as "Hi, I'm a worker, I can build and I can farm!"
 
Animation state is store separately from Physics state is stored separately from AI State, etc.
 
Scala uses CanBuildFrom.
BuildableFrom sounds funny.
 
btw my friends have been asking when you're going to update Starbound
 
8:47 AM
BuildFromable
 
@FlorianMargaine turning ICanEat into Edible is problematic though :p
 
@Rapptz And the entire rest of the world. I still really want to see 1.0 out this year.
I'm personally shooting for that
though I'm not certain how realistic it is.
I'm just trying to take this stuff one step at a time, and eventually I'll have a finished game.
 
user1804599
@GamesBrainiac I'm not :<
 
The major problem is we have a lot of technical debt from another programmer that we're having to clean up now that he's gone, because neither I nor my coworker/boss is willing to maintain it (and because he was super territorial we really couldn't before...).
 
you are
also where is the potato
 
8:51 AM
Ah yeah. You mentioned that.
 
@rightfold you're clearly male
 
user1804599
NO :'(
 
I'm not sure how to do menus through an enum like you :(
there's so much code for menus
I admire how clean your enum is.
 
@AlexM. He is female inside.
 
I have to buy new glasses
I don't see shit in those
 
user1804599
8:52 AM
To drink more vodka from?
 
no, the seeing glasses
 
user1804599
Ah, you don't C#.
 
@Rapptz There are downside to using the enum, I don't like how many switch statements there are in various functions.
for instance.
 
Xeo
@OmnipotentEntity All for the same enum?
 
Luckily clang errors when you don't cover all enum cases in a switch. :P
 
8:54 AM
@Xeo yeah 7 of them in 700 or so lines.
 
wait why is the potato in the same room with righfold
 
self.profile.privacy_permission = 0
self.assertEqual(self.profile.privacy_permission, 0)
 
@Jefffrey You never know with custom getters and setters. :D
 
Except self.profile is a Django model.
 
anyway,
 
8:55 AM
@Jefffrey since when you're doing django?
 
You guys have fun teasing the loli. I'm going to get some sleep.
 
I'm expecting that to be covered in their test suite, not in a random Django application.
 
night
 
@OmnipotentEntity the what
 
thanks for the help
 
8:55 AM
@BartekBanachewicz Since it's been a joy to work with.
@Rapptz Good night.
 
@BartekBanachewicz Talking about rightfold / rightfold's avatar.
 
Like this test suite is completely useless.
@BartekBanachewicz He found a way to login from two different devices.
 
@rightfold Welcome "back" by the way. :D
 
I liked him more when he was female
 
8:58 AM
Remove the setters and remove the tests.
Setters are suck. namedtuple FTW.
I smell internships.
 

« first day (1409 days earlier)      last day (3540 days later) »