Ekman Hsieh

@ek0519

Joined on Aug 21, 2017

  • 時間安排 11:00 - 11:15 讀書簡報(慧智) 11:15 - 11:30 作業展示(慧智) 11:30 - 11:50 讀書與作業討論(慧智x奧丁丁) 11:50 - 12:00 休息 12:00 - 12:40 主題報告(奧丁丁) 12:40 - 13:00 實作 資源
     Like  Bookmark
  • Configuration config/filesystems.php setting default and clound filesystem disk 'default' => env('FILESYSTEM_DRIVER', 'local'), 'cloud' => env('FILESYSTEM_CLOUD', 's3'), Filesystem Disks
     Like  Bookmark
  • pagination DB Builder DB::table('users')->paginate(15); Model User::paginate(); per_page default 15 使用 paginate 會預設收 page 參數無須額外寫
     Like  Bookmark
  • Writing The Validation Logic public function store(Request $request) { $validatedData = $request->validate([ 'title' => 'required|unique:posts|max:255', 'body' => 'required', ]); // The blog post is valid... }
     Like  Bookmark
  • Router 簡單的(closure)直接return Route::get('foo', function () { return 'Hello World'; }); 比較少會這樣寫.... 我們比較喜歡....
     Like  Bookmark
  • Run Seed php artisan db:seed Command was excute which in this file. database/seeders/DatabaseSeeder.php <?php namespace Database\Seeders;
     Like  Bookmark
  • Inserting & Updating Models Inserts use App\Models\Flight; $flight = new Flight; $flight->name = $request->name; $flight->save();
     Like  Bookmark
  • wirte a function You can use two type http method post or get function doGet(request){ } function doPost(request){ }
     Like  Bookmark
  • # SSR vs Prerendering dochi? ### EK --- ## 名詞定義 ### 渲染 * **SSR**(Server-Side Rendering) * **CSR**(Client-Side Rendering) * **Rehydration** * 透過javascript在client端,產生像SSR產生HTML’s DOM tree和資料。 * **Prerendering** * 在client跑應用前,捕獲所有的狀態產生出靜態HTML ---- ### 效能 * **TTFB**(Time to First Byte) * 造訪網站後,收到伺服器回應第一個位元組的時間。 * **FP**(First Paint)第一次渲染 * 白屏到有畫面。 * **FCP**(First Contentful Paint)首次內容繪製 * 表示瀏覽器抓取到內容顯示的時間 (article body, etc)。 * **TTI**(Time To Interactive)可互動時間 * 表示頁面
     Like  Bookmark