These are chat archives for learnclang/general

4th
Jan 2015
Sebastian Thiel
@Byron
Jan 04 2015 08:42
Twitch is strictly chat-only when users want to communicate to the streams author, which is good if there are plenty of viewers. Initially I was thinking that people might want to engage in a verbal dialogue, does that work on Twitch as well ?
Besides I recommend Qt Creator as IDE. It's small, fast, comes with a complete toolchain on windows, and makes writing/debugging C/C++ code so much easier. It's still good to know your tools and be able to operate a compiler and linker yourself, but when projects grow, automation will happen in some form or another.
Marcus Ottosson
@mottosso
Jan 04 2015 09:54

does that work on Twitch as well ?

It doesn't look like it, but that was actually one of the reasons I thought it would work better for us.

Besides I recommend Qt Creator as IDE

Sounds good to me!

Sebastian Thiel
@Byron
Jan 04 2015 10:58
It really depends on how many people want to or should be able to join. Twitch clearly is nice and easy, and judging from Handmade Hero, quality is sufficient for programming too.
Besides, now that there is handmade hero, there is no real need to implement anything in an own stream, as it would be somewhat repetitive ... . Maybe it's still good for questions though.
Marcus Ottosson
@mottosso
Jan 04 2015 12:35

How about we try Twitch, then got through what was great and what was not so great?

Date

Finally, to throw out a date, how about this Wednesday at 8 pm GMT+0. How does that work for everyone?

David Martinez
@davidmartinezanim
Jan 04 2015 13:31
It sounds good to me
Sebastian Thiel
@Byron
Jan 04 2015 13:41
Fine with me
Marcus Ottosson
@mottosso
Jan 04 2015 13:49

Cool. :)

Here's a call to @/all : Does 8 pm GMT+0 on Wednesday the 7th of January suit you, for a walkthrough of how to implement a Rock-Paper-Scissors game in C with Sebastian Thiel a.k.a. @Byron?

Ævar Guðmundsson
@agudmund
Jan 04 2015 13:49
sounds good
Cesar Saez
@csaez
Jan 04 2015 15:00
Sounds good!
Just one thing about twitch's chat: you will probably want to use an irc client to grep/filter the questions to Byron, otherwise it's really easy to miss questions (chat goes fast and there's no notification when someone mention you, just a highlighted text on the chat window)
Marcus Ottosson
@mottosso
Jan 04 2015 15:02
That's a good point, hopefully the chat won't get that polluted during our first run.
Looks like you can do smilies, maybe we can make a smilie be the "Hey, look over here Byron" signal.
Ricardo Viana
@RicardoViana
Jan 04 2015 15:37
Sounds good by me
Sebastian Thiel
@Byron
Jan 04 2015 17:22
Actually I just bought a proper microphone, which will make things for me so much easier. As it will be here for sure on Thursday, I'd be happy if we set the event to that day instead. That is, it would be one day later, same time though.
Marcus Ottosson
@mottosso
Jan 04 2015 17:27
I'm fine with that, proper microphone sounds excellent. :)
Pun!
Sebastian Thiel
@Byron
Jan 04 2015 17:29
:D
Nysuatro
@Nysuatro
Jan 04 2015 17:30
I am learning too much at the same time, haha. But its good. At work I am getting into Directx11, so good practice :)
Marcus Ottosson
@mottosso
Jan 04 2015 17:32
Sweet, are you in too, @Nysuatro? Maybe we could arrange for a DirectX screencast in the future? :)
Nysuatro
@Nysuatro
Jan 04 2015 17:35
I am afraid my only experience for now is debugging problems, not much development. Once I feel like I have something to share, I would love to do a screencast :)
Marcus Ottosson
@mottosso
Jan 04 2015 17:35

Preparing a repo in which to put the code, and final date for reference.
https://github.com/learnclang/screencast-1-rps

@Byron Do you think it could be a good idea to set that repo up with the Python and C code, and any notes?

@Nysuatro Perfect, we'll first have to get a little further in this group too, we've just barely compiled our first program, so there's still time.
And awesome youtube graphics programming playlist of the guy who invented spherical harmonics: https://www.youtube.com/user/raviramamoorthi/playlists?view=1&sort=dd
Marcus Ottosson
@mottosso
Jan 04 2015 17:39
Thanks! Added to Resources
Sebastian Thiel
@Byron
Jan 04 2015 17:45
Absolutely, having a repository for all related resources will be great and help others to compile it. I will use QT Creator for sure, which is good for cross platform compilation.
Nysuatro
@Nysuatro
Jan 04 2015 17:46
And I agree with the mentioned book on game engines ( http://www.amazon.co.uk/dp/1466560010/ref=rdr_ext_sb_ti_sims_2 ) I read half of the chapters and so far an excellent book
Marcus Ottosson
@mottosso
Jan 04 2015 20:15

I will use QT Creator for sure, which is good for cross platform compilation.

I say, go for it, but I just have to share something I fell in love with during the first episode of HH.
https://www.youtube.com/watch?v=Ee3EtYb8d1o&feature=youtu.be&t=19m45s

:)

Marcus Ottosson
@mottosso
Jan 04 2015 20:23
This message was deleted
Marcus Ottosson
@mottosso
Jan 04 2015 20:33
I'm referring to the build system.
Marcus Ottosson
@mottosso
Jan 04 2015 21:00
Hey @alexwidener, welcome first of all! I noticed you were following along with HH as well, I was just going to try and re-create his "traverse hierarchy and execute first build.bat file" for Sublime Text and was wondering whether you had already done something similar?

Seems like a really useful way of storing per-project build-settings, as opposed to hard-coding the location of the build.bat as I've done it currently:


{
    "cmd": "Z:\\handmadehero\\handmade\\code\\build.bat",
    "shell": true,
    "working_dir": "$filepath"
}

Or, have you found another/a better way?

Alex Widener
@alexwidener
Jan 04 2015 21:15
No, I haven't attempted to do that.
Marcus Ottosson
@mottosso
Jan 04 2015 21:16
Okay, are you interested in trying it out? I'm having some trouble figuring some things out, you see
Alex Widener
@alexwidener
Jan 04 2015 21:17
I don't have time, I'm two weeks behind on HH already. Sorry.
Marcus Ottosson
@mottosso
Jan 04 2015 21:17
No worries, I'm also behind.
Will you be here for the Rock-Paper-Scissor screencast?
Alex Widener
@alexwidener
Jan 04 2015 21:18
I don't know what that is.
Marcus Ottosson
@mottosso
Jan 04 2015 21:19
It's @byron making an implementation of a Rock-Paper-Scissor program in C on Twitch, it's for beginners.
Alex Widener
@alexwidener
Jan 04 2015 21:20
That sounds cool. What time is it starting?
Marcus Ottosson
@mottosso
Jan 04 2015 21:20
We're talking about the coming Thursday, at 8pm GMT+0
But I think we can still be flexible about the time, until we hear from all who wants in
The rule is, 45 lines of code in 45 minutes.
Alex Widener
@alexwidener
Jan 04 2015 21:21
I will have to watch the replay, that's 12PM at work.
Marcus Ottosson
@mottosso
Jan 04 2015 21:22
There's a Python implementation posted a few days ago, if you scroll up you might find it.
Ah, understood.
What time would work for you, if any?
Alex Widener
@alexwidener
Jan 04 2015 21:23
Don't base it on me - I work, get off at 5, come home, and work on other projects, then watch HH until 9:30 PM. Literally no time is good for me. :)
Marcus Ottosson
@mottosso
Jan 04 2015 21:23
Haha, fair enough. :)
It's really good isn't it, the HH stuff?
Just got into it myself two days ago.
Alex Widener
@alexwidener
Jan 04 2015 21:25
Yeah, it's informative, but a bit biased.
Casey has many opinions.
Marcus Ottosson
@mottosso
Jan 04 2015 21:26
He does. :) I've found most of them refreshing so far though.
Alex Widener
@alexwidener
Jan 04 2015 21:26
The twitch chat was killing it for me, though.
Marcus Ottosson
@mottosso
Jan 04 2015 21:26
About hungarian notation and his no-build-system mentality so far, brilliant.
Alex Widener
@alexwidener
Jan 04 2015 21:26
I just turned it off and stop logging into the IRC.
Marcus Ottosson
@mottosso
Jan 04 2015 21:27
Ah, I'm only watching the replays so I'm not getting any of that.
Why look at the chat though?
I briefly had a look at the chat as it is today, after streams, and it seems to be filled with quite a lot more opinions than in the stream, to be honest.
Alex Widener
@alexwidener
Jan 04 2015 21:28
That's exactly it: don't if you're in a livestream. Everyone argues about everything, mostly which language is better, and they're all wrong about everything.
Marcus Ottosson
@mottosso
Jan 04 2015 21:29
I can imagine.
Alex Widener
@alexwidener
Jan 04 2015 21:30
@tokejepsen Don't I see you around the Modo forums?
Toke Jepsen
@tokejepsen
Jan 04 2015 21:46
@alexwidener you most certainly have:)
Alex Widener
@alexwidener
Jan 04 2015 21:47
Ah. I use Modo at work, but Maya's my primary tool.
Marcus Ottosson
@mottosso
Jan 04 2015 21:48
@alexwidener You wouldn't happen to also know a little something about scripting in Modo?
Alex Widener
@alexwidener
Jan 04 2015 22:11
I wrote a page in the Wiki, how do I move it to the correct category?
Yes, @mottosso that's pretty much all I do at work is code inside of Modo.
Marcus Ottosson
@mottosso
Jan 04 2015 22:11
You mean putting it in the sidebar?
Alex Widener
@alexwidener
Jan 04 2015 22:11
Yeah.
Marcus Ottosson
@mottosso
Jan 04 2015 22:11
You can edit the sidebar too, it's just another wiki page.
At the top of it, there's a pencil button.
Thanks for filling that in!
Alex Widener
@alexwidener
Jan 04 2015 22:14
I'm trying to edit the formatting right now, I didn't look at the formatting while I was writing it.
Marcus Ottosson
@mottosso
Jan 04 2015 22:14

To maintain spacing and newlines and such, you can put text within a triple-` block. It will make the text inside of it into a monospaced font.

```
Monospace text here
Some indendation
Some deeper indentation
```

Which becomes:

Monospace text here
   Some indendation
       Some deeper indentation
The formatting syntax is Markdown.
Same as in the chat here.

To format code, you can use the language-suffix of the triple-`

```c
#include <stdio.h>
int main() {
}
```

Which becomes

#include <stdio.h>
int main() {
}
Alex Widener
@alexwidener
Jan 04 2015 22:18
That second one worked, thanks.
I guess the standard single-tick result is okay for Terminal-based code.
Marcus Ottosson
@mottosso
Jan 04 2015 22:20
Mm, single ticks makes an in-line box, but I don't think it does code-formatting.
Alex Widener
@alexwidener
Jan 04 2015 22:21
This sidebar thing is weird, how is it linking?
Marcus Ottosson
@mottosso
Jan 04 2015 22:21
It also puts a little more space between the surrounding text, which can be nice.
Have a look at the other links for reference
Basically, it's [[NAME|LINK]]
Alex Widener
@alexwidener
Jan 04 2015 22:22
I was thinking it would have to be hardcoded. Kind of nice.
Marcus Ottosson
@mottosso
Jan 04 2015 22:22
Where NAME is what will appear in the sidebar, and LINK is the name of the page you're linking to
Alex Widener
@alexwidener
Jan 04 2015 22:22
Yeah, I thought the LINK would have had to have been a /path/to/something
Marcus Ottosson
@mottosso
Jan 04 2015 22:23
Ah, right. Yes, normally that would be true, however they're using an extended Markdown for the Wiki which is called Gollum
It's got a few extra tricks, but normal linking works too if you prefer.
Marcus Ottosson
@mottosso
Jan 04 2015 22:31
Night time here, I'm heading out. Thanks again for adding to the wiki, @alexwidener and good luck with HH tonight!