Giter VIP home page Giter VIP logo

cpplangnet's People

Contributors

alzamer avatar antoinechapel avatar bryant-the-coder avatar chauhan739 avatar dich0tomy avatar dxpower avatar ellipse0934 avatar frityet avatar fureeish avatar infotcube avatar liam-clink avatar maou-shimazu avatar mjh316 avatar oleksandrvolkodav avatar poetakodu avatar pomaranczarz avatar pulo0 avatar raxonpc avatar raynei86 avatar szopucpp avatar thalhammer avatar vantadaga avatar wmjim avatar wzslr321 avatar ziobron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cpplangnet's Issues

Manual type highlighting in a code block

Default code highlighting is limited. Where possible we should add custom type hints to properly color a token.

Status

The problem

Example: Enemy token should be manually marked as a class name for better preview
Image

How it should be done:

// prism-push-types:Enemy
int main()
{
    Enemy boss;
}

Result preview:

Image

Translate `contributing` page to pl

If we want to make the contribution easier for other people we need to translate the basic information about contributing to other languages. I am down to translate the page to polish.

Add a search bar

We'll probably use Algolia Search Bar.

Before we do that

The problem is that we now have a lot of unfinished documentation. I want at least one of the following to be complete before we install it:

  1. the beginner level course
  2. std library containers docs

improve(docs): Basics -> Functions

Overview

Rework the lesson structure, split into sublessons (examples, exercises, etc.)

Functions

  • Lesson structure
    • Motivation
    • Introduction
    • Creating functions
      • a basic example without parameters (a procedure)
      • with parameters
      • return statement
      • returning a value
      • Declaration and definition
    • Overloading (basics)
    • Summary
  • 💡 Examples
    • calculate area of a circle
    • convert Fahrenheit to Celsius
    • calculate factorial of a number
    • average value of array of numbers
    • calculate gcd
    • calculate a power of a number (exponent is a positive integer)
    • reverse a string
    • check if a string is a palindrome
  • 💢 Common problems
    • incorrect number or type of arguments
    • not returning a value
    • missing declaration
  • 📚 Exercises
    • count occurrences of a character in a string
    • count number of vowels in a string
    • detect if string is an anagram
    • convert int to string

`array`

std::array reference

Main page

  • overview
  • technical details
  • top examples (simple)
  • bottom examples (complex)

Methods

  • constructors
  • destructors
  • operator=
  • .at()
  • operator[]
  • .front()
  • .back()
  • .data()
  • .begin() / .cbegin()
  • .end() / .cend()
  • .rbegin() / .crbegin()
  • .rend() / .crend()

Refactor containers' docs

Some containers miss examples in their documentations (both basic and advanced ones), have very few of them or are poorly written/full of typos, whatever.

Some of them also need a refactoring of other sections (proper formatting, fixing typos, etc.)

improve(docs): Basics -> Arrays

Overview

Make the lesson structure fit the following (note the actual names of the course lessons are in bold):

Arrays

  • 1. Introduction
    • Motivation: why do we want to use them.
    • Arrays in C++: types of arrays in the language
  • 2. Dynamic arrays
    • Lesson structure
      • creating a vector
      • accessing elements
      • adding elements
      • removing elements
      • reading size
      • displaying elements
    • 💡 Examples
    • 💢 Common problems
    • 📚 Exercises
  • 3. Fixed-size arrays
    • Lesson structure
      • creating an array
      • accessing elements
      • note about not being able to add or remove elements
      • filling the content
      • reading size, mention that it is always the same
      • displaying elements
    • 💡 Examples
    • 💢 Common problems
    • 📚 Exercises
  • 4. Using algorithms - show examples that require minimal knowledge of the language but allow the reader to play with vectors and arrays
    • max value with std::ranges::max()
    • min value with std::ranges::min()
    • reverse with std::ranges::reverse()
    • sorting with std::ranges::sort()
    • ensure the lesson properly shows both std::array and std::vector examples
  • 5. C-style arrays
    • explain why we don't want to use C-style arrays
    • describe when and how to use safer alternatives instead
    • provide basic examples of C-style array usage
  • 📚 Exercises

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.