Giter Club home page Giter Club logo

exams_42's Introduction

EXAMS 42

Summary

This repository is intended to help me to learn functions by heart for the 42 exams. It also aims to improve these functions at the same time. For this purpose I developed the following method.

At level one we find tool folder that contains my minimal exam config, the default 42 vimrc, and debugging tools to quickly check the improvements.

Inside the func directory there is a folder for each function that we can encounter during the exams.

Inside each of these folder we find the core of the method, three source files:

  • base.c functional starting point, must not be modified.
  • check.c the improvement file, with annotation and modifications allowed.
  • try.c this file will be used and reused to code and recode the function by heart. And (optionally) a doc and test folders.

Method

The workflow is the following:

  1. recode base.c function into try.c
  2. debug try.c
  3. diff try.c and base.c into check.c

HINT Vim users will like :h vimdiff, the do and the dp commands.

LEARN

  1. update check.c with the mistakes found in try.c and document with a TODO comment

     ssize_t r; // TODO ssize_t instead of long
    

IMPROVE

  1. update check.c with comments that keep a track of mistakes found in try.c, the number preceding the XXX ( here 2 ) indicates indicates the number of times the error has been done during try.c attempts.

     static char *temp; // 2 XXX static keyword missing
    

THUS

Before the exam I can check my most common mistakes using check.c. After the exam I can improve my function using check.c.

exams_42's People

Contributors

clemedon avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.