less pain, more gain. An opinionated strategy guide on how to get the most out of 42 School, and/or learning to program in general.
This guide is written from 42 Students for 42 Students. Its website is built on top of Pollen.
You probably only got to this guide in the first place because there was something missing you needed to properly go on with your work at 42. We've seen and experienced these obstacles, and decided to do something about it.
With this guide, we try to get everyone of us the team mate we would've liked to have when we were stuck, or even unsure how to start.
- Download & Install Racket: download.racket-lang.org
- Install Pollen:
λ raco pkg install pollen
- Fork this repo.
- (When creating new files, add them to
index.ptree
.) - Start Pollens' project server:
λ raco pollen start
- edit some file; reload your browser window; see the change.
- Install Docker.
- Fork this repo.
- Run
docker compose up
from the root of the repository. - edit some file; reload your browser window; see the change.
- Install Nix with the installer from Determinate Systems (recommended)
- Fork this repo.
- Enter the nix development environment declared in
flake.nix
withnix develop --impure
. - Then, run
devenv up
from the root of the repository.
If you're using VS Code, open your keybindings.json
and paste the following:
{"key": "ctrl+alt+l",
"command": "type",
"args": {
"text": "◊"},
"when": "editorTextFocus"}
First of all, thanks for considering to contribute! 😊
There are two main ways to contribute:
- Fixing something in/Adding something to an existing guide.
- Adding a whole new guide.
For both of these options, you have to:
- Fork the repo
- Create a new branch that is named after the issue you want to fix.
- Add what you want to add
- For typos/small fixes, just edit the file, and commit.
- For new guides, you have to add the file to
index.ptree
as well as toindex.poly.pm
, as well as to git.
- Open the pull request
- Assign a person to review your fix/guide
Also, there is the option to create issues — the better they are described, the more we can do about it.
If you want to join us (to maintain the repo) or have any other questions, just write @bhagenlo or @skienzle on Slack.
Considering styling & content formatting, we're trying to create a consistent experience across the whole repo.
In general, we:
- format code and file names as
code
- format concepts that are mentioned for the first time as concept
- format menus or buttons as button or menu > sub-menu
We use sections as the main tool for content that can be minimized. Sec-hints are only for hints that are only relevant for some people, or only relevant once or twice.
And, last but not least, there is a narrator you can make use of :)
So that writing becomes even easier, here are all the tags with their corresponding effects:
Tag | Effect |
---|---|
◊title[#:sub "by marvin" #:version "42"]{libft} |
Title of the Subpage, along with its subtitle and version. |
◊heading[1]{libft} |
A Heading with its level(1 in this case). |
◊sec[#:sub "Don't try this at Home!" 2 #:open? #f]{Burning your PC.} |
A Section which can be opened (or closed), with subtitle and level. |
◊link["https://intra.42.fr"]{The Intra} |
A Link. |
◊b{bold} |
bold text. |
◊e{italic} |
emphasized text. |
◊quote-block{This is a quote.} |
An indented blockquote (those blue ones) |
◊narr{Here speaks the narrators voice..} |
Non-indented monospaced grey text. |
◊irr{You've heard that already, time and again} |
Text that is more and more irrelevant, though it might be helpful as a reminder a few times before it vanishes completely (during the course of the holy graph, for example). |
◊hline{} |
A red, horizontal line. |
◊spoiler{This could spoil you. Do you want that?} |
A Spoiler that only makes itself visible on click. |
◊hint[#:type "info"]{This is a piece of information for the reader} |
A hint for the reader. It can be a info (blue), warning (yellow), error (red) or a resolved (green) |
◊sec-hint[#:type "error" "Click here to expand."]{This is what gets shown on expansion.} |
An expandable hint. (that expands and shrinks on click) |
◊img["./path/to/img.jpg" #:height 10 #:width 100]{This is a caption.} |
An image — beware that if you explicitly set height and width, you most likely distort the picture. |
◊ol{◊li{}} |
An ordered list. |
◊ul{◊li{}} |
An unordered list. |
◊li-mark{a.} |
Something that formats anything as a list point, so that one can mention it in the accompanying text. |
◊code{#this is code.} |
Inline code. |
◊code-block['python]{#this is python code.} |
A code block, with syntax highlighting. |
◊under-construction{...} |
Indicates that some part is not finished yet. |