« first day (1464 days earlier)      last day (3478 days later) » 

Ell
9:00 PM
it dm, this is fine anyhow
I have bigger problems now
like failing boost::any_cast :S
 
YOU'RE A BIGGER PROBLEM NOW
ahem.
 
Ell
I'm reading some code and I have no idea how it compiles
 
show
 
Ell
ohhh. I think I know where the error comes from now
I hard coded a return overloads.begin() by accident
ah wait never mind. it still doesn't work
 
Xeo
yay, home~
 
Ell
9:11 PM
I'm writing horrible code in desperation
 
@Ell stap D:
 
Ell
I fixed it now
damnit. I don't know if what sehe gave me yesterday is actually what I want
 
Whats best for starting on game development.. c++ from scratch ir unity 3d?
or*
 
user1804599
9:26 PM
How about write Hangman in some language you're comfortable with.
 
I already did some Games on html5
 
sbi
@Ell You are using something some random stranger on the Internet gave you?!
 
I am very confortável with js
 
how about working for a company that already makes games so you can learn how graphics work
 
user1804599
@AfonsoMatos Then you're not starting with game development. :v
 
Ell
9:27 PM
@sbi he's not random!
 
sbi
@AfonsoMatos You can edit your messages here! (See this.)
 
Ell
And he's on the less stranger part of the spectrum
 
I am on my phone
I can't edit messages
 
sbi
@AfonsoMatos Depending on your weight, this might have to be quite an enduring phone then.
 
@AfonsoMatos then you're not starting.
 
sbi
9:28 PM
Anyway, a very good starting point for game developers in C++ seems to be C With Classes. At least they all seem to know that.
 
god damn why this thing won't work
 
I want to start game development..
 
I'm trying to read data from two simple shift registers
what could go wrong
 
sbi
@AfonsoMatos You said that before.
 
I heart unity 3d is perfect for starters
 
sbi
9:29 PM
@BartekBanachewicz Everything. (As always.)
 
@sbi hardware development is hard :<
inb4 software dev is soft
 
I don't really know wether I Should pick flash, html5, unity or c++
 
sbi
@BartekBanachewicz Of course. Otherwise it would be easyware development .
 
user1804599
software dev is soft
 
sbi
@BartekBanachewicz You are lame.
 
Ell
9:30 PM
@BartekBanachewicz do you mean developing hardware or developing software for hardware?
 
Ell
I'd call the latter software development still :P
 
user1804599
@AfonsoMatos The tool you should use depends on what you want to do.
 
I want to make Games rightfold
heh
 
then go and make them, duh
platform is irrelevant
 
9:31 PM
Which languages should I dive in
 
sbi
@rightføld Exactly. If you wanna write C++, the tool you should pick is a C++ compiler.
If you wanna write games in HTML5, the tool you should pick is a loop around your neck.
 
@AfonsoMatos whatever you like
 
I made myself some noodles
 
user1804599
@AfonsoMatos Yes, you already said that like a hundred times.
 
my parents bought chicken&mushroom instead of chicken and it smells most foul
here's to hoping it tastes better
 
user1804599
9:32 PM
What kind of games?
 
user1804599
inb4 MMORPG
 
sbi
@rightføld Those you can play?
 
2d Games for mobile and desktip
 
sbi
@rightføld You are lame.
 
user1804599
I wish I got tips for sitting at my desk.
 
9:32 PM
@sbi You're just jealous he got there first
 
@AfonsoMatos then whatever you pick will be fine
roll a die
 
sbi
@Puppy He got nowhere.
 
I'll pick Unity I guess. HTML5 is too low-level for starters and is damn slow.
 
sbi
@BartekBanachewicz JAVA!
 
to be totally reasonable
 
9:34 PM
@AfonsoMatos great. off you go.
 
AFAIK C++ is the only language that works well on all mobile platforms.
 
so
@Puppy lol
 
except perhaps HTML5/JS
 
sbi
@BartekBanachewicz You want to see him gone?
 
9:34 PM
depends on your definition of "works" and "well" I guess.
 
@sbi I want to see my LED light up to be honest
I've been trying to diagnose the problem for the past few hours and I'm reaching the breaking point
 
sbi
@BartekBanachewicz TBH, I have never seen a LED light being honest. Sorry to break this to you.
 
whatever I do, however I configure those pins, I get 0s
the connections are okay
 
sbi
@BartekBanachewicz You need a rubber duck.
I have found me cow-workers to be perfect rubber ducks.
 
@sbi ... just found one
 
user1804599
9:36 PM
@BartekBanachewicz s/a/and/
 
Ell
@BartekBanachewicz what hardware are you programming?
 
@Ell STM32F4 MCU
 
sbi
@Ell He already that that it was the hard kind.
 
which is arguably braindead easy
 
sbi
Then it would be easyware.
 
Ell
9:37 PM
can I see some code?
 
but I can't do a thing as simple as reading a few button states
		for(int i=0; i<16; i++)              // Iteration over both 8 bit registers
		{
			MyWrite(SHIFTER_CLOCK_PIN_BIT, 0);      // Generate clock falling edge
			Delay(10);						             // Wait for signal to settle

			b[i] = MyRead(SHIFTER_DATA_PIN_BIT);     // Read data bit and store it into bit array

			MyWrite(SHIFTER_CLOCK_PIN_BIT, 1);     // Generate clock rising edge
			Delay(10);             // Wait for signal to settle
		}
@Ell sure.
 
sbi
(And did I mention I drank a few beers in a quick succession?)
@Ell Have you tried github?
 
@sbi I didn't buy any and now I regret
 
Ell
@sbi yeah. but most of it is rubbish, not code :/
 
@Ell my code is rubbish too
it's C, for christ's sake
 
Ell
9:38 PM
@BartekBanachewicz have vodka, you're in polandball, right?
the home of vodka
 
I don't drink vodka
 
Ell
because of the taste?
(or lack thereof)
 
mostly. I don't drink high-% alcohol in general
 
Ell
even mixed?
 
sbi
@BartekBanachewicz I can tell you right away that the problem is either 1) in MyWrite(), or 2) in MyRead(), or 3) in code you didn't show.
@Ell Then it isn't all that high-% anymore, you silly.
 
9:39 PM
^
Haaa found a beer!
it's not mine but I was quick about it
 
sbi
@BartekBanachewicz Not buying beer is something regrettable, indeed.
@BartekBanachewicz Oh, you share an apartment? With whom?
 
Hello! I have operator [], that get a item from a data structure: const TableItem& operator[] (int index); What I should return, if there is no item with some index?
 
Ell
@sbi I mean mixed with other high-% alcohol, you silly.
 
@sbi a room with my GF, and the apartment with 3 more friends
 
Ell
;)
 
9:41 PM
@QueueOverflow throw exception
 
Ell
@QueueOverflow throw out of index exception
 
@Ell Thanks!
 
anyway, rubberduckin
 
Ell
np
 
sbi
@BartekBanachewicz You know, when I look at this code I keep thinking that my Golden Rule™ says: If you feel like you need to add a comment, fix the code.
 
9:42 PM
@QueueOverflow or return an "undefined" value
 
void MyWrite(uint32_t pin, uint32_t val) {
	GPIO_PinWrite(USER_PORT, pin, val);
}

uint32_t MyRead(uint32_t pin) {
	 return (GPIO_PinRead(USER_PORT, pin) != 0);
}
 
@Abyx Thanks!
 
sbi
@Ell That would be silly, you silly.
 
@sbi this code is awful. it's terrible. it's absurdly bad.
but I want it to at least show some signs of working before I refactor.
 
@Abyx I thought about "undefined value". But how to realize it perfectly? Add some flag to TableItem or something else?
 
9:43 PM
no.
no, that is very very bad.
it's exceedingly bad.
throw an exception.
 
sbi
@BartekBanachewicz Yeah, I just told you so.
I mean, this code needs comments. What could possible be worse?
 
@QueueOverflow either throw or return optional.
 
sbi
Either throw or we'll throw up.
 
@sbi I didn't write them. I copy-pasted them.
 
Ell
@BartekBanachewicz I'm kind of confused about this read one. why are you returning the value of the comparison?
oh wait you're in digital aren't you
my bad :P
 
9:44 PM
yep.
 
sbi
@BartekBanachewicz OF COURSE, then the code is just fine!
 
it was a code for arduino, and I adapted it for STM
but it refuses to work
 
"a code"?
 
you suck.
 
9:45 PM
you of all the people better stay away tonight
 
@QueueOverflow well if that TableItem class have a set of invalid values, you can use one of those. but it's easier to throw an exception. or return a pointer instead of reference, maybe not in op[] but another method, like try_get_at
 
stay away from what?
 
from me, duh.
 
sbi
@BartekBanachewicz of
 
Especially if your only plan for the evening is to be an annoying ass
(so, like most of the time)
 
9:47 PM
@Abyx Thanks a lot. I will think.
 
well
 
please do, thinking usually helps
 
sbi
@Abyx The common way is for operator[]() to assume that the index is correct and at() to check and throw an exception. /cc @QueueOverflow
 
didn't check it though
 
it wasn't
but now I'm definitely feeling like it
@sbi The incorrect common way.
 
sbi
9:49 PM
@Puppy It's standardized, so it must be the correct way!
Yelp.
 
@sbi dunno about common, but yeah if std lib does so, most of programmers will expect such behavior
 
personally I'd prefer sane behaviour.
4
 
sbi
@Abyx You can't get more common than the std lib.
@Puppy That'd be a first.
 
don't go around using codepages just because stdlib does.
 
@sbi not everyone use std lib
 
sbi
9:50 PM
@Abyx Indeed. BASIC programmers don't use it.
 
@sbi like you don't use the latest version of C++ and its std lib
 
can I somehow verify this clock pulse is ok without an oscope?
 
sbi
@Abyx There's nothing I like about this.
 
@Abyx Er, he's stuck in the past with, like, GCC 4.2 or something.
 
9:52 PM
@Puppy I know
 
@BartekBanachewicz Increase voltage to 230 and put your finger inside
 
sbi
@CatPlusPlus As you have done?
 
Ell
@BartekBanachewicz logic analyzer? :P
 
@sbi FTR, I have not written a single getter that returns an invalid value on failure.
@CatPlusPlus Current needs to be 13A too.
 
Ell
How long is the pulse length?
 
9:52 PM
@Ell okay "without some absurdly expensive tools I don't have'
 
sbi
@Puppy FYI: There's more to sanity than that.
 
Ell
maybe a multimeter would work
 
maybe I could use another STM unit for that
 
true.
 
@BartekBanachewicz you can measure average voltage
 
9:53 PM
I'm merely saying that for this particular aspect, I'm feeling confident that I'm on the good side here.
 
@Ell right now it's 10ms, and should be 10us in the final version
 
Ell
@BartekBanachewicz rigol just released their new entry level oscilloscope that doesn't cost mega bucks
 
sbi
@Puppy Do you ver feel otherwise??
 
I set it so slow to ensure that the registers will keep up
 
Ell
@BartekBanachewicz a multimeter might be able to detect that maybe?
 
9:53 PM
not mine
well, I could technically drive the clock at 1s pulses
 
@sbi Well, right now at work I've been pretty sloppy about a couple things.
 
because why not eh
 
I'm a new hire and it's my first job so I doubt they're expecting miracles from me, but still.
 
sbi
@Puppy Of course, that'd be a first, too! :)
 
but I popped a led blinking each time the read session ends and it blinks okay
 
9:55 PM
you can't simultaneously complain that I always assume I'm correct and then bite me if I admit fault.
pick one
 
this thing just refuses to work
 
sbi
@Puppy Like, me? Of course, I can!
 
well you can, but then I'm just off to bed.
 
sbi
Mission accomplished.
 
I turned all my clothing inside out to find a thing that it turns out I left behind, so there's a bunch of clearing up to be done before I could even consider sleep
plus a few borings like my brother ripped the batteries out of my alarm and then left them there for some reason so I've gotta reset it
my father had a brother who died in a motorcycle accident before I was born
 
Ell
9:59 PM
@BartekBanachewicz not to be condescending, but is the LED in the right way round?
 
yes
when I take the GND cable out, it pops on
 
Ell
huh
I think we need to see your circuit too
 
sbi
Dammit, @Abyx, why do you have to delete all your message? It's not like you have a good reason to do so!
@Ell May I remind you that @Bartek is human? @R.Martinho is the one with boards instead of tissue.
 
@Ell I'm facing another device. I only get a plug, which gets connected directly to my board
anyway I give up
I won't do it today
 
@sbi because they make no sense without your messages, but actually I did it to increase amount of those (removed) messages
so basically it boils out to "because I could"
 
sbi
10:06 PM
@Abyx How come I knew?
Anyway, I guess I need to go to bed. I just had my fourth beer, and I have trouble to type. Also, it's dark outside and that's always a decent indication for sleeping time. Good night!
 
isn't it to early to sleep? it's still 2 AM here
 
sbi
Well, it's midnight here.
But then, my alarm goes off at 5:45 half the time.
doesn't stiffle yawn
 
wow that early
 
sbi
Indeed. I hate it.
Anyway, I'll be off now...
 
Ell
@sbi Night night!
fuck. I have my children and parents backwards
 
Ell
10:28 PM
I think I'll like emacs much more than vim
 
@Ell Why?
 
nah, both suck equally
notepad++ ftw.
it even had nice sexist jokes inside
 
Ell
@sofffia I prefer combinations instead of sequences
 
@Ell I don't follow
 
Ell
Like Ctrl something something
Instead of :y
 
10:45 PM
oh
 
eggs are so good
almost as good as cheese
and cheese is the Supreme Food™
 
Ell
I need cheese curs
Curds
A is a substitute for b if a can be dynamically cast to b
A is a substitute for b if a can be upcast to b
^I think this is it
 
@FilipRoséen-refp I'd say more like, "Object is the base class of all evil".
 
Ell
My inheritance checker checks the wrong relationship :L
Its also not dynamic enough
Wait. Maybe it is.
Can dynamic_cast upcast?
It ought to be able to
 
dynamic_cast can upcast and sidecast too.
 
10:58 PM
@Ell That's what you use dynamic_cast for, usually
 
the only time where dynamic_cast fails when there is an inheritance relationship is in bad cases of ambiguous inheritance.
 
The beauty of dynamic_cast is that it returns nullptr if it can't upcast
 
Ell
@soffia downcast?
 
and by beauty I mean "beauty"
 
Ell
You want to cast a Parent* to a Child* usually
 
11:00 PM
Yes
Oh, you mean the other way around?
Yes, you can do that too
I would use a static_cast though
 
Ell
Yeah just checking you can do both
My open multi method thing is close to kinda working
I think by tomorrow it'll be kinda working
 
I wonder what swi-prolog's limits on stuff are
 
"stuff" !?
 
can I just load a program consisting of more than 6GB worth of predicates when stored on a HDD in it
maybe if I use the 64bit interpreter things should be fine
 
http://t.co/XgiHKxypzA
 
11:33 PM
@sbi I was in Essen, not Berlin!
 
Never realized you need to have minimum inteliigence to stay oriented in metropolitan cities ...
I guess I have nothing to worry about ...
 

« first day (1464 days earlier)      last day (3478 days later) »