hsf-training / hsf-training/cpluspluscourse

Better exercises for lambda and stl

Open
#416 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Essentials stale
Dominant language
TeX
Stars
313
Forks
104
PR merge metrics
No merged PRs in 30d

Description

After having a longer discussion yesterday with bernhard, i got the following idea how the difficulty of understanding lambdas and stl could be eased.

I would suggest the following exercises (in order of execution):

  1. lambda simple: exercise to write simple lambda function, maybe even start with rewritting an existing function by a lambda - no usage of stl
  2. lambda and stl - simple: rewrite an (existing & fully functioning) program that uses stl with function object to replace these function objects with lambdas
  3. lambda and stl - advanced: have an unfinished program where stl functions and their respective lambdas must be added. could be that in the readme there is a list of possible stl functions to decide from

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the existing C++ course exercise structure before planning the three proposed lambda and STL exercises. Done means providing simple lambda, lambda-and-STL simple, and lambda-and-STL advanced exercises in the stated order, with the advanced exercise including guidance on possible STL functions.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
content
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.