Skip to content

Instantly share code, notes, and snippets.

View remzmike's full-sized avatar
💭
Where's your code? ¯\_(ツ)_/¯

remzmike

💭
Where's your code? ¯\_(ツ)_/¯
View GitHub Profile
@remzmike
remzmike / _.txt
Created November 30, 2023 19:44
Guido van Rossum on fluent interfaces
[Python-Dev] sort() return value
Guido van Rossum guido at python.org
Fri Oct 17 10:56:38 EDT 2003
Previous message: [Python-Dev] Trashing recursive objects comparison?
Next message: [Python-Dev] accumulator display syntax
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'd like to explain once more why I'm so adamant that sort() shouldn't
return 'self'.
@remzmike
remzmike / 07-guide.md
Last active March 28, 2023 20:17
Hello C : 07 : tic-tac-toe : problem solving

Part 7: tic-tac-toe: problem solving

In part 6, we left the definition of is_winning_position as follows:

int is_winning_position(int x, int y, char c) {
    return 0;
}
@remzmike
remzmike / 06-guide.md
Last active March 28, 2023 20:08
Hello C : 06 : tic-tac-toe : getting started

Part 6: tic-tac-toe: getting started

In parts 6 and 7 we will write a tic-tac-toe console program that plays itself.

The goal is to learn how to understand and solve problems.

Getting started with data

We know how to write functions now, but we've glossed over the other fundamental aspect of programming; the data.

@remzmike
remzmike / 05-guide.md
Last active March 28, 2023 20:07
Hello C : 05 : Growing code with functions

Part 5: Growing code with functions

We're going to write our own functions and learn how to grow code in small steps.

Now is probably a good time to start using a text editor designed for programming.

You can use whatever you like.

I use Sublime Text for miscellaneous editing, and the sample code in this series.

@remzmike
remzmike / 04-guide.md
Last active March 28, 2023 19:58
Hello C : 04 : if statements and for loops

Part 4: if statements and for loops

We skipped a detailed explanation of if statements and for loops in part 3 because they deserve a lot of attention.

If statements and for loops the two most important flow control statements in most programming.

if statements

These are probably the first thing beginners realize about programming.

@remzmike
remzmike / 03-guide.md
Last active March 28, 2023 19:58
Hello C : 03 : Reading Code

Part 3: Reading code

The C programming language grammar is mostly made of statements and expressions.

Statements

Statements are the syntax for defining the main surface of code: functions, data and control flow.

Data

@remzmike
remzmike / 02-guide.md
Last active March 29, 2023 00:44
Hello C : 02 : Header files and library functions

Part 2: Header files and library functions

About Header Files

In part 1, we had this line at the top of 1.c:

#include <stdio.h>
@remzmike
remzmike / 01-guide.md
Last active March 28, 2023 19:58
Hello C : 01 : Compiling and linking