Skip to content

Commit 8b6480b

Browse files
committed
Remove lesson listing from module specific views
1 parent 4c3802f commit 8b6480b

File tree

4 files changed

+2
-39
lines changed

4 files changed

+2
-39
lines changed

twitter-client-tutorial/_iteration_1_plan.html.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,4 @@ A good way to start is by building the app skeleton (just the user interface).
2121
<%= image_tag "twitter-client/twitter-details-screenshot.png", alt: "Twitter Detail Screenshot", title: "Twitter Detail Screenshot" %>
2222
<p class="ac">Twitter Detail Screenshot</p>
2323
<br/>
24-
Here are the lessons of this module <br/>
25-
<% lessons_of_mod_1 = AppLesson.find_all_by_module_number(1) %>
26-
<% count = 1 %>
27-
<% lessons_of_mod_1.each do |l| %>
28-
<%= count %> .
29-
<% count = count + 1 %>
30-
<%= link_to l.lesson.title, app_tutorial_lesson_with_token_path(@app_name, l.lesson_module.lesson.token, l.lesson.token) %>
31-
<br/>
32-
<% end %>
24+

twitter-client-tutorial/_lesson_group_async_task.html.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,4 @@ Reading and writing tweets from/to file are time consuming tasks. These tasks sh
55
You can always compensate the delay by showing a loading/spinner but that is a bad app design. It is like blocking the app flow. The code should be written in such a way that blocking the app flow should only happen if the user's next action is dependent on the current action. The choice is personal on the part of programmer too. For example - fetching tweets from network should never be blocking but publishing a tweet can be. The user might or might not want to wait till the tweet is published. If you do not block the app, you should show some kind of notification which will let user come back to the publish tweet screen to publish it again.
66

77
In the last lesson, we were reading & writing the tweets in the same thread. In this lesson, we are going to move the steps of creating new tweets & overwriting the cached file into a separate thread using **AsyncTask**.
8-
<div>
9-
<% lessons_of_mod_5 = AppLesson.find_all_by_module_number(5) %>
10-
<% count = 1 %>
11-
<% lessons_of_mod_5.each do |l| %>
12-
<%= count %> .
13-
<% count = count + 1 %>
14-
<%= link_to l.lesson.title, app_tutorial_lesson_with_token_path(@app_name, l.lesson_module.lesson.token, l.lesson.token) %>
15-
<br/>
16-
<% end %>
17-
</div>
188

twitter-client-tutorial/_lesson_group_shared_preference.html.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,4 @@ In the real Twitter client, once you log in successfully, you will not see the l
55
We are introducing data handling in this module. The network calls will be introduced in the subsequent module. We make things a little sub-optmial. Instead of sending data to the server & getting an authentication token, we will simply store the username password from the login screen.
66

77
<div class="alert alert-warning"><b>Warning</b>: It is never a good idea to store passwords locally, plaintext or otherwise. But for the sake of this module, we overlook best practices to get a better understanding of SharedPreferences</div>
8-
<div>
9-
<% count = 1 %>
10-
<% lessons_of_mod_2 = AppLesson.find_all_by_module_number(2) %>
118

12-
<% lessons_of_mod_2.each do |l| %>
13-
<%= count %> .
14-
<% count = count + 1 %>
15-
<%= link_to l.lesson.title, app_tutorial_lesson_with_token_path(@app_name, l.lesson_module.lesson.token, l.lesson.token) %>
16-
<br/>
17-
<% end %>
18-
</div>

twitter-client-tutorial/_lesson_group_tweets_from_file.html.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,4 @@ In a mobile app, use of local storage is important for a better user experience.
88

99
For now, we are simply going to write the dummy tweets that we created in the previous lesson into a local cache file, read from it & show it to the user when the Tweet List screen loads. In subsequent lesson, we are going to move the writing tweets part to an asynchronous process using AsyncTask.
1010

11-
<div>
12-
<% lessons_of_mod_4 = AppLesson.find_all_by_module_number(4) %>
13-
<% count = 1 %>
14-
<% lessons_of_mod_4.each do |l| %>
15-
<%= count %> .
16-
<% count = count + 1 %>
17-
<%= link_to l.lesson.title, app_tutorial_lesson_with_token_path(@app_name, l.lesson_module.lesson.token, l.lesson.token) %>
18-
<br/>
19-
<% end %>
20-
</div>
11+

0 commit comments

Comments
 (0)