A common dilemma while teaching (I’m not only talking about teaching in a school or university; talks and workshops are also teaching), is whether it’s better to first teach some easy special cases and then generalize, or first the general case and then present special cases as merely shortcuts.

I’ve been revisiting this dilemma recently, while preparing the slides for my upcoming regular expressions talks. For example: Regex quantifiers.

## 1. General rule first, shortcuts after

You can use {m,n} to control how many times the preceding group can repeat (m = minimum, n = maximum). If you omit n (like {m,}) it’s implied to be infinity (=”at least m times”, with no upper bound).

- {m, m} can also be written as {m}
- {0,1} can also be written as ?
- {0,} can also be written as *
- {1,} can also be written as +

### Advantages & disadvantages of this approach

- Harder to understand the general rule, so the student might lose interest before moving on to the shortcuts
- After understanding the general rule, all the shortcuts are then trivial.
- If they only remember one thing, it will be the general rule. That’s good.

## 2. Special cases first, general rule after

- You can add ? after a group to make it optional (it can appear, but it may also not).
- If you don’t care about how many times something appears (if at all), you can use *.
- If you want something to appear at least once, you can use +
- If you want something to be repeated exactly n times, you can use {n}
- If you want to set specific upper and lower bounds, you can use {m,n}. Omit the n for no upper bound.

### Advantages & disadvantages of this approach

- Easy to understand the simpler special cases, building up student interest
- More total effort required, as every shortcut seems like a separate new thing until you get to the general rule
- Special cases make it easier to understand the general rule when you get to it

## What usually happens

In most cases, educators seem to favor the second approach. In the example of regex quantifiers, pretty much every regex book or talk explains the shortcuts first and the general rule afterwards. In other disciplines, such as Mathematics, I think both approaches are used just as often.

What do you think? Which approach do you find easier to understand? Which approach do you usually employ while teaching?

Pingback: angara fahise()

Pingback: Daftar Agen Bola Terpercaya()

Pingback: opulence for life()

Pingback: best online steroid supplier()

Pingback: Life Insurance()

Pingback: order steroids legally()

Pingback: blogspot.com()

Pingback: subways surfers()

Pingback: unblocked games http:/www.frivgames.top/category/unblockedgames()

Pingback: sattamatka()

Pingback: letrozol()

Pingback: buy npp()

Pingback: Verification SMS()

Pingback: Calile Malouf()

Pingback: steroids in new zealand()

Pingback: testosteron cypionat()

Pingback: clodron 200 fiale indicazioni augmentin()

Pingback: hgh for sale uk()

Pingback: guia de los movimientos de musculacion()

Pingback: buy steroids online()

Pingback: 4cyn5et4m5t94c5t9m4vn54cx65()

Pingback: http://falschgeldkaufen.blogspot.com/2017/01/wo-kann-ich-falschgeld-kaufen.html()

Pingback: alcoholism statistics()

Pingback: دانلود قسمت هشتم شهرزاد دوم()

Pingback: دانلود شهرزاد قسمت نهم فصل دوم()

Pingback: دانلود شهرزاد قسمت هفتم فصل دوم()

Pingback: دانلود شهرزاد قسمت هشتم فصل دوم()

Pingback: دانلود قسمت 10 شهرزاد دوم()

Pingback: دانلود قسمت 17 عاشقانه()

Pingback: دانلود قسمت ششم فصل دوم شهرزاد()

Pingback: دانلود قسمت دوازدهم عاشقانه()

Pingback: Ana Foxxx()

Pingback: Monique Alexander()

Pingback: دانلود قسمت 13 عاشقانه()

Pingback: Mia Malkova()

Pingback: Mia Malkova()

Pingback: Kiera Rose()

Pingback: dolandirici sosyalmarketim()

Pingback: Cherry Hilson()

Pingback: Paleo Diet()

Pingback: lesbian porn()

Pingback: online series()

Pingback: دانلود سریال عاشقانه()

Pingback: دانلود قسمت اول شهرزاد دوم()

Pingback: دانلود قسمت دوازه عاشقانه()

Pingback: پنجره()

Pingback: t-shirts med hunde motiver()

Pingback: دانلود قسمت سوم شهرزاد دوم()

Pingback: دانلود قسمت یازدهم شهرزاد دوم()

Pingback: دانلود قسمت پنجم شهرزاد دوم()

Pingback: دانلود ققسمت 12 عاشقانه()

Pingback: under armour online outlet()

Pingback: دانلود قسمت سیزده عاشقانه()

Pingback: bypass windows 7 password()

Pingback: porno()

Pingback: videos porno()

Pingback: Bernardina()

Pingback: ping g30 driver australia()

Pingback: videos porno()

Pingback: porno gratis()

Pingback: porno gratis()

Pingback: porno()

Pingback: videos porno()

Pingback: porno gratis()

Pingback: porno()

Pingback: porno()

Pingback: porno()

Pingback: porno()

Pingback: porno()

Pingback: پنجره دوجداره وین تک()

Pingback: پنجره دو سه جداره ساخت فروش در ایران()

Pingback: دانلود قسمت 17 عاشقانه()

Pingback: how to make an taurus man interested again()

Pingback: mysql training()

Pingback: ساخت پنجره دوجداره()

Pingback: دانلود فیلم سریال عاشقانه()

Pingback: شرکت تولیدی پنجره دوجداره()

Pingback: Acne Facial Treatments Pompano Beach()

Pingback: Facial Spa Services Tamarac()

Pingback: Acne Facial Treatments Hallandale Beach()

Pingback: Facial Spa Services Hollywood()

Pingback: hip wrap()

Pingback: فروش توری پنجره دوجداره()

Pingback: دانلود موزیک()

Pingback: دانلود قسمت پنجم شهرزاد()

Pingback: دانلود قسمت ششم شهرزاد()

Pingback: whore()

Pingback: video gaming()

Pingback: see website()

Pingback: buy zynga chips()

Pingback: jake burgess()

Pingback: دانلود قسمت هفتم شهرزاد دوم()

Pingback: clash royale hack website()

Pingback: brief boxer gay()

Pingback: پنجره()

Pingback: پنجره()

Pingback: coin-banks review()

Pingback: coin-banks review()

Pingback: bitcoin trading()

Pingback: braun oral b vitality 3d white()

Pingback: bitcoin trading()

Pingback: دانلود قسمت هشتم شهرزاد دوم()

Pingback: mdansby()

Pingback: auteur()

Pingback: nicocontrol funciona()

Pingback: دانلود فیلم()

Pingback: anime series()

Pingback: vpm()

Pingback: best price golf clubs()

Pingback: دانلود شهرزاد قسمت 13()

Pingback: پنجره دو سه جداره()

Pingback: دانلود سریال شهرزاد قسمت 15()

Pingback: دانلود شهرزاد 13()

Pingback: Accounting firms in chicago()

Pingback: TRUSSARDI()

Pingback: vpn()

Pingback: slot games()

Pingback: https://devpost.com/meditus1()

Pingback: Gi?i thi?u và lo?i hình game casino()

Pingback: TRUSSARDI BAGS()

Pingback: Five little monkeys()

Pingback: Social Media Marketing()

Pingback: http://www.mfpc.tv/ch/userinfo.php?uid=4616065()

Pingback: Verlene()

Pingback: Long Island Roofing()

Pingback: دانلود شهرزاد قسمت 16()

Pingback: Click This Link()

Pingback: Video prezentacija kompanii()

Pingback: belly fat()

Pingback: kids toys()

Pingback: دانلود عالیجناب قسمت اول()

Pingback: دانلود عالیجناب دوم()

Pingback: دانلود()

Pingback: دانلود سریال عالیجناب قسمت اول 1()

Pingback: political polls twitter()

Pingback: game()

Pingback: Best Crib Mattress()

Pingback: پنجره ضد سرقت()

Pingback: auto body repair()

Pingback: cpf()

Pingback: آموزش پنجره دوجداره()

Pingback: دانلود فیلم()

Pingback: قیمت پنجره دوجداره در ایران()

Pingback: شرکت تولیدی پنجره دوجداره()

Pingback: mixtape hosting packages()

Pingback: Kompaktkamera Test()

Pingback: فروش توری پنجره()

Pingback: Tile and Grout Cleaning harker heights TX()

Pingback: easy business ideas()

Pingback: kids cartoons before and after()

Pingback: los angeles black male strippers()

Pingback: axial sports()

Pingback: rï¿½ussite()

Pingback: free delivery()

Pingback: Vancouver BC Airport Shuttle()