Skip to content

Commit

Permalink
Added new bugs section for OOP Module (world-class#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushikpadmanaban authored Jul 19, 2022
1 parent be32044 commit 7fc28b6
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kinks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- [Table of contents](#table-of-contents)
- [Kinks found in Level 4 modules](#kinks-found-in-level-4-modules)
- [Kinks found in Level 5 modules](#kinks-found-in-level-5-modules)
- [Note to future students](#note-to-future-students)

---
Expand All @@ -17,6 +18,11 @@
- [Introduction to Programming II](../kinks/level-4/cm-1010-introduction-to-programming-ii/README.md)
- [Web Development](../kinks/level-4/cm-1040-web-development/README.md)

# Kinks found in Level 5 modules

- [Databases, Networks and the Web](../kinks/level-5/cm-2040-databases-networks-and-the-web/README.md)
- [Object Oriented Programming](../kinks/level-5/cm-2005-object-oriented-programming/README.md)

As a great complimentary resource, don't forget to check out the `#bugs` channel on Slack.

# Note to future students
Expand Down
37 changes: 37 additions & 0 deletions kinks/level-5/cm-2005-object-oriented-programming/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

# Table of contents

- [Table of contents](#table-of-contents)
- [Object Oriented Programming - Reported Problems](#object-oriented-programming---reported-problems)
- [Week 18](#week-18)
- [9.2 Adding a moveable playhead](#92-adding-a-moveable-playhead)
- [9.207 - Implement A Timer](#9207-Implement-a-timer)
- [Week 19](#week-19)
- [Vector Subscript Out of Range](#vector-subscript-out-of-range)

# Object Oriented Programming - Reported Problems

This page is about the [Object Oriented Programming module](../../../modules/level-5/cm-2005-object-oriented-programming/).

## Week 18

### 9.2 Adding a moveable playhead

#### 9.207 Implement a timer

_"There's a nasty bug in week 18 video 9.207. When you load a file the application will crash. After a bit of detective work it turns out that as the timer is being called before a file is loaded, the position is NaN (not a number). I found a simple fix for this: "_ - Jamie Jackson

![Solution](https://github.com/world-class/binary-assets/blob/master/modules/cm2005-oop/bugs/bug_9.207.png?raw=true)

## Week 19

### 10.1 Starter Table Component

#### "Vector Subscript Out of Range"

"_If you try maximising the window you'll get a crash. Inspecting the error message it says vector subscript out of range. So I looked up the paintCell function in the juce API, it says in the description:_
> Note that the rowNumber value may be greater than the number of rows in your list, so be careful that you don't assume it's less than getNumRows().
_So a solution I came up with for the problem is to use getNumRows() and check if rowNum is less than it like in the image below._" - Jamie Jackson

![Solution](https://github.com/world-class/binary-assets/blob/master/modules/cm2005-oop/bugs/bug_10.107.png?raw=true)
5 changes: 5 additions & 0 deletions modules/level-5/cm-2005-object-oriented-programming/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- [Past exams](#past-exams)
- [Syllabus](#syllabus)
- [Resources](#resources)
- [Kinks to be aware of](#kinks-to-be-aware-of)
- [Linux setup guide for OOP projects](#linux-setup-guide-for-oop-projects)
- [Class diagram of starter code](#class-diagram-of-starter-code)
- [Complementary learning](#complementary-learning)
Expand Down Expand Up @@ -68,6 +69,10 @@ Coursework only (Type II)

- :star: [Sourcetrail](https://www.sourcetrail.com) (Windows, macOS, Linux) - _"Free and open-source cross-platform source explorer"_. Supports C, C++, Java and Python.

### Kinks to be aware of

- [List of reported errors and bugs with the module](../../../kinks/level-5/cm-2005-object-oriented-programming/).

### Linux setup guide for OOP projects

Refer [Linux setup guide](https://github.com/world-class/binary-assets/blob/master/modules/cm2005-oop/linux_guide.md)
Expand Down

0 comments on commit 7fc28b6

Please sign in to comment.