« first day (879 days earlier)      last day (4067 days later) » 

4:00 PM
@Telkitty I have. Zero. clues
 
@DeadMG What you putting up? Docs? Builds?
 
user1357851
@sehe which port?
 
@sehe s/clues/fucks/
 
@R.MartinhoFernandes hehe valid point
 
@R.MartinhoFernandes Probably #1, both for implementation and use, and maybe #2.
 
4:01 PM
@Telkitty I like a little bit of red port
 
@Telkitty yes :)
 
I have changed so many interfaces while writing the docs, I lost track now.
 
Could somebody guide me on the process of changing ones name on chat?
 
@user190929 You need to change it on Stack Overflow.
 
user1357851
64738? I am not doing port scan :p
 
4:02 PM
@user190929 I think you need to edit it in your profile
 
@user190929 I actually don't recall, but it's a StackOverflow-wide change, not just chat.
 
@Telkitty looks familiar
@Telkitty meh. go ahead
 
@user190929 Oh, you already did. Just wait until... it happens.
Takes a while to renew the caches.
 
Ah. Ok then. I was wondering if that was the case.
 
@Telkitty it's the default port, what ever that is
 
4:02 PM
And refresh the browser. That delays it even more
 
May also need a refresh.
 
Ahaha "Pawnguy7"
 
send an email to the new pope, that helps too
 
I still got "userI'MAFUCKINGTROLL".
 
@DeadMG :)
 
4:03 PM
lol
 
I used that name on a chess site, grew found of it :D
 
@Telkitty <W>2013-03-13 17:03:13.147 1 => <338:(-1)> Connection closed: Error during SSL handshake: error:1408A10B:SSL routines:SSL3_GET_CLIENT_HELLO:wrong version number [13]
 
nyway, time to go home. I think I might watch the same movie again. Maybe this time I'll get the plot.
 
@R.MartinhoFernandes what movie?
ooh, that german one
 
@R.MartinhoFernandes A German movie?
 
4:04 PM
The german movie about kids.
Which isn't porn.
 
@R.MartinhoFernandes The plot is to axe murder you.
 
Ew
 
Has anybody seen a movie called "Inception?" I believe it had a Spanish translation. but not sure on others.
 
user1357851
only woof is on
 
user1357851
ede is deaf & mute
 
4:05 PM
guess why
I am getting too old for this shit.
I had to check glTexImage2D details and I opened manual instead of spec
 
Why is it that openGL corner is in bottom-left?
 
@user190929 Yeah - it wasn't very good.
 
Every other graphic thing I have seen, is top-left... confused. Although, it would be nice in that greater y IS, in fact, up. If it were consistent.
 
@user190929 it's mathematically correct
Also, what's the problem to turn it upside down really...?
 
@BartekBanachewicz in terms of coordinates planes?
 
4:11 PM
@user190929 i mean, why does it matter anyway?
You need to specify your own matrices anyway, so the fact that initial is y up or not doesn't really matter
 
True enough. Although, why did windowing systems, then, choose top left? (I pressed enter by accident)
 
@user190929 why should I care exactly?
I don't know. Maybe it seemed more natural for them
 
@user190929 screens use top left, because CRTs scanned top down, and we read lines of text top down
it made sense, at the time
 
(and the CRT raster scanned left-to-right)
 
@thecoshman ah, that makes sense. One more thing we can never change.
 
4:15 PM
@Useless captain obvious
 
I should play super hexagon right now
 
I discovered, I see to have an OOP problem. I strongly tend towards making classes full of static methods and variables. The static variables are generally private, sort of like a state machine, but from what I have read, that is not really OOP as it was meant. Any thoughts on the concept?
 
yeah, that's bad.
that's like, "Fuck OOP, it's too hard, I'm going back to procedural, and then just to make it even worse, I'mma make all my variables global."
 
static variables are bad.
You can have static functions as long as they are stateless.
 
user784668
@user190929 you keep misspelling namespace
 
4:17 PM
@DeadMG deja vu
 
@BartekBanachewicz After all the posts on Lounge, I downloaded that Hexagon thing. It was less interesting than the release history of the Dacia Sandero.
2
 
I do that to - seems hard to not make globals. Passing globals seems a hassle, and messier, to me.
 
@BartekBanachewicz Not really the same thing.
 
@MartinJames dude. It's an action game. What did you expect.
 
user142019
@user190929 because Quartz Compositor chose bottom left. So "window systems" didn't, only some did.
 
4:18 PM
there's nothing wrong with, say, today().
@user190929 They're not supposed to be global in the first place.
 
@DeadMG oh, you are right. Stateless, impure.
 
user142019
Stateless and impure aren't the same things.
 
@DeadMG string today(){ return "sucks";)
 
@Zoidberg no shit.
 
rather, they are almost opposites
 
user784668
4:20 PM
aw usb
 
@BartekBanachewicz So is Call of Duty.
 
How do you recommend I fix my unfailingly procedural thinking? I tried other languages to get an idea of the paradigm better (cough java *cough), but I just carried it over, as well as the brace-on-own-line
 
@user190929 Java has the worst OOP model. It's a lot worse than C++'s.
 
user142019
 
user142019
Gimme now.
 
4:21 PM
@DeadMG what language would you say has the best model?
 
lol! Today's XKCD has epic 'alt text'
 
user784668
Haskell has the best OOP model.
 
@user190929 Probably C++, actually.
 
@melak47 Platform-specific. But on Windows, it's actually both a Direct2D overlay and a Direct3D implementation which supports drawing anywhere in the scene, be it a "perspective HUD" or suggestion UIs over, for example, NPCs, buildings etc.
 
home time!
 
user142019
4:22 PM
@thecoshman Misspelled "Stack Overflow". :(
 
@MartinJames meh.
 
Slept so damn good today.
 
Very well. Let's say I try learning this in C++. How do I retrain myself? I think the reason is, my way of doing things, currently, seems mor.e logical
 
It's 17:23 and good morning to you all!
 
morning
 
4:23 PM
@user190929 hahahahahhaa... haha
I wish it was that easy
 
user142019
@user190929 read a good book for C++ beginners.
 
user142019
2235
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are released every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a good C++ book...

 
user142019
If it's not on this list, it is very likely it sucks donkey balls.
 
there should be a list of books that suck too
with Bullschildt and Primer Plus and whatnot
 
It's easier to compile those which don't suck, the set is much more manageable. Unfortunately.
 
4:25 PM
Would these books be specifically geared towards correct OOP/abstraction and design? Don't really want another "a variable is like a box you store things in" books.
 
user142019
"OOP/abstraction" you cannot put a slash there.
 
user784668
assert(OOP / abstraction == wtf);
 
@DomagojPandža I vacuumed up most of my suckage a few months ago. Somehow 'XML and Web Services' is still on the shelf.
 
user142019
They're not the same thing and they don't imply eachother.
 
@Zoidberg I mean to say, both - both the practices and benefits of OOP, but also in abstracting things in terms of design and interactions with each other.
 
user142019
4:28 PM
In C++ don't try to make everything "OOP" just because "OOP is good".
 
user784668
OOP is bad
 
user142019
No.
 
user142019
It is often abused.
 
user142019
4:29 PM
But it's not bad in general.
 
Dammit, Zoid.
 
no.
 
FUCK OOP
2
now go home and eat shit
 
FUCK EVERYTHING.
 
user142019
Fuck Java-style OOP.
 
4:29 PM
I agree - I have heard this myself from several people. However, abstraction in some way, shape, or form, can be very beneficial, even if only in terms of organization.
 
user142019
C++-style OOP with RAII is awesome.
 
oop is the best thing we have today.
 
I love OPP.
 
user142019
@user190929 Functions are also abstractions.
 
4:30 PM
=\
 
You misspelled 'OFF'
 
user142019
OOP IS A FAGGOT
 
C++ puts his ++ in your shitstream?
 
@Zoidberg Yes. But, if I were to only use functions, then I still tend towards globals and similar constructions.
 
user142019
std::copy, for example, is an abstraction. It copies objects but who the hell knows how.
 
4:31 PM
I like faggots, but I'm off them until the horseocalypse is over.
 
user142019
@user190929 simple start: avoid globals.
 
user142019
This is very easy.
 
user142019
Instead of using globals, you pass things as arguments.
 
@Zoidberg by globals, are we referring to mutable globals, where const would be fine, or all of them altogether?
 
what's better for a Windows game, ogre or irrlicht?
 
user142019
@user190929 const globals are usually referred to as constants and fine in most cases.
 
user142019
Mutable globals are bad in nearly every case.
 
@TonyTheLion oh my, it's eating it alive
 
user142019
@Abyx Irrlight has the worst API imaginable.
 
user142019
4:33 PM
And even though Ogre uses singletons, I'd still prefer it over Irrlight.
 
Write your own, man.
 
@Abyx neither
 
@Zoidberg ok. Let's say I was to make a "pong" clone. We have two paddles. Let's assume that we do the collisions checking for paddle hits ball, in the balls move() function. Am I supposed to do move(paddle1, paddle2)? Seems messy to me.
 
@DomagojPandža that starts to sound like ThePhD. It's nontrivial thing
 
If you really want an engine or a framework, use UDK.
 
user142019
4:34 PM
@user190929 no.
 
@user190929 no.
 
What, then, do you do?
 
@BartekBanachewicz Of course it's non-trivial. That's what makes it fun.
Unless he's considering a commercial project? @Abyx
 
user142019
class paddle {
public:
    point coordinates;
};

move(paddle& p, distance delta_y) {
    p.coordinates.y += delta_y;
}

int main() {
     paddle player_paddle, cpu_paddle;
     on_key_press(key::up, [&] { move(a, 1_px); });
     on_key_press(key::down, [&] { move(a, -1_px); });
}
 
user1357851
 
user1357851
4:35 PM
:p
 
@DomagojPandža a non-commercial one.
 
@Zoidberg I may have phrased that incorrectly. I meant, in the Ball class. When the ball moves, it would check if it would be in the region from the, say, left wall, with a width of the paddles width, and then check its y with the paddle. Thus, the ball class would have a move() method, and passing both paddles to it, not the paddle classes's move.
 
user142019
Ohh. :P
 
@Telkitty Looks more like kitten-strangulation to me :)
 
user142019
@user190929 You can do that. That's fine.
 
4:38 PM
Then roll your own if you have time to write one. If you just have this idea for a game and want to prototype it, then go for UDK.
 
user142019
Or maybe even better:
 
user142019
template<typename Iterator>
move(Iterator begin, Iterator end) {
    // ...
}
 
@DomagojPandža sometimes you want to make a game, not an engine. Think about it.
 
user142019
// Then you can pass iterators to paddles.
std::vector<paddle> paddles{ player_paddle, cpu_paddle };
ball.move(paddles.begin(), paddles.end());
 
@Zoidberg Y U NO boost::range?
 
4:39 PM
@DomagojPandža UDK looks kinda heavy to me. I'd rather try to use ogre at first
 
user142019
@BartekBanachewicz Because I don't know shit about ranges and I have never used them.
 
@Abyx what
 
user1357851
@MartinJames under age ***
 
also just I hate UE for some reasons.
 
@Abyx UDK is much nicer than Ogre. Also, someone actually made some games on the UDK
 
4:40 PM
You can use the CryENGINE 3 SDK too.
 
which is fucking terrible
 
True, just laying out options here.
 
user142019
Write your own abstractions for Windows API or X or Cocoa and OpenGL or DirectX.
 
UDK or Unity are OK
 
Zoidberg's actually right. You can overlay the game directly on a very specific API basis.
 
4:41 PM
yea.
for simple games it works sometimes
 
You only define abstractions useful to your game, rather than a whole bunch of general games.
 
I need native code support, so I can't use Unity free.
 
you can always use my Engine :P
or parts of it.
 
UDK is OK since there are native plugins support
 
It's work-in-progress, no docs and unstable api but welp.
I am heading home to work on it actually.
 
4:43 PM
@BartekBanachewicz is there a game which uses your engine?
 
Well, I have to get to work. My code ain't gonna write itself.
I think.
 
user1357851
user image
3
 
user1357851
ain't I so popular! ♥ ❣ ❤ ❥ ❦ ❧ ♡ ɞ ʚ ღ ஐ ლ დ ഇ
 
well, todays wtf is absolutely awesome.
 
Heh, how come this is possible?
 
4:52 PM
1
Q: Program that detects which letter is the most common

user2166357I am a beginner in C, I am trying to make a program which detects which letter is the most common of max 10 letters. Here is what I've got so far: char one = 'a'; //0110 0001 char check[10]; scanf("%s", &check); char *ptr; int a = 0;int b = 0;int c = 0;int d = 0;int e = 0;int f = 0;int g = ...

^^ oh god...
Some pretty if-statements...
 
@TonyTheLion The typename is here: template<typename U>, so it already knows U is a type.
 
ah I see
 
@TonyTheLion also you never instantiate anything: coliru.stacked-crooked.com/…
though that error is very unclear. It should be complaining that U::X doesn't exist at all, not that the int is not a class.
 
but if you instantiate with Y<X> it complains too
 
Ok, another one of my designs was something to draw text. With the library I was using, there was a graphical text class, built on top of the libraries framework. You can make a text instances, and set font, size, color, style, position, text, and call draw(), and there it is.
Now, I was thinking, That is a lot of different text instances for each piece of text, and often times the settings, such as color or font, remain the same. So, I built a class with static methods, wrapped around a static private text instance.
 
4:58 PM
@TonyTheLion because X::X<int> doesn't exist.
 
user142019
@DomagojPandža use Visual Studio and C#.
 
You could call TextDrawer.setX, which would set the property on the text. You could then call TextDrawer.drawText(const char[] text, x, y), and it would draw. This seemed better than an instance of text drawer, because if it is function-local, no other function can use it, and similar things would happen if it were a plain member, unless it was static, which is essentially the same. Good design? Bad design?
 
user142019
Wtf TextDrawer.
 
user142019
Make it a free function; do not put it in a class.
 
user142019
void draw_text(font const& f, point p, std::string text)
 
4:59 PM
@TonyTheLion maybe you wanted U::foo<int>(); in that function? I'm not sure what you're doing.
 
@Zoidberg it was wrapped around an instance, though, otherwise I would need to specify every property (color, font, size, etc) in one function call, every time.
 

« first day (879 days earlier)      last day (4067 days later) »