Get full access to Introducing Elixir and 60K+ other titles, with a free 10-day trial of O'Reilly. There are also live events, courses curated by job role, and more.
Sinatra Best Practices: Part One Erin Swenson-Healey · June 24th, 2013 While Sinatraâs one-file approach may work well for your one-off, smaller application â it can quickly become a mess as you add on multiple routes, route-handlers, helpers, and configuration. So whatâs a programmer to do? In reading Sinatraâs documentation Iâve found a few morsels that have enabled us to split our otherwise-mon
ãã®ããã°ã§ã¯ Jekyll ã使ã£ã¦ããã¨ã¯ä½åº¦ãæ¸ããã®ã ãã©ããã¾ã¾ã§è¨äºãæ¸ãã¨ãã«ã¯ jekyll --auto ãå®è¡ããç¶æ ã§æ¸ãã¦ããããã®ããã«ãã¦ããã¨ããã¡ã¤ã«ãæ¸ãæãããèªåçã«ãµã¤ãããã«ããã¦ãããããã«ãªãããã ããã®ã³ãã³ããå®è¡ãã¦ã㨠CPU ãã°ãªã¼ã³ã¨é³ãä¸ãå§ããã¯ã¢ããã³ã¢ã§ CPU 使ç¨ç 25% ã«éããã¨ããå°çã«åªãããªãç¶æ ã§ãã£ãã åå ã調ã¹ã¦ã¿ã㨠directory_watcher ã¢ã¸ã¥ã¼ã«ãç¯äººã ã£ãããã®ã¢ã¸ã¥ã¼ã«ã¯ãç£è¦å¯¾è±¡ã®ãã£ã¬ã¯ããªã¼é ä¸ã®å ¨ãã¡ã¤ã«ã«å¯¾ãã¦ãæ¯ç§ãFile::Stat() ãå®è¡ãããã¨ããå¯è±ªçå®è£ ã«ãªã£ã¦ããããã¡ããããã¡ã¤ã«ã®æ°ãå°ãªãã¨ãã«ã¯åé¡ãªãåããã ãã©ãããã¡ã¤ã«ã®æ°ãå¢ãã㨠CPU ã浪費ãã¦ãã¾ãã ãã¨ãã°ããã®ãµã¤ãã®å ´åã600 å以ä¸ã®è¨äºããã£ã¦ãJekyll
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}