ããã°ã©éæ³å¦ã«é¢ããèå¯
ãã£ãã®
for i in range(1,101):print"FizzBuzz"[i*i%3*4:8--i**4%5]or i
ã¨ãæããã«ç¦ã
ãããªã¼ã©ãã¾ã¨ã£ã¦ãããéã®ç·å±ã«ééããªãã
ããããä¸è¦ãã®ä¸ã®ç©çæ³åã«å¾ã£ã¦ããªããããªçãç©ãçã¿åºãã®ã¯ãå¬ééæ³ãã ã¨æãã
ããããã®ã¯ãã¿ã¨ãã¦éçã®ãã®ãå¬éãã¦è¦ãç©ã«ããããããªãåé¡ãªãã®ã ãã©ãæ®æ®µã®ä½æ¥ãä»äºã®ã³ã¼ããç¹ã«ä»äººã¨ã·ã§ã¢ããã³ã¼ãã§å¿
è¦ããªãéã®åãå©ç¨ããã¨ãé»éè¡ä½¿ããããã¼ã¯ãµã¤ãã«å ã¡ããªãã¨è¨ãããã®ã§è¦æ³¨æãçåå¯ãªæ°æã¡ã§ç¦åªã使ãã¨é«ã代åãæ¯æãç¾½ç®ã«ãªãã
IEãè¯éºã«æå¢ããä¸è¡ - ã¼ãã¯ã¾ã¡ã¡ããï¼(Hatena)ã¨ãã¯æ»æéæ³ããã¶ã赤éè¡ã対象ã«å¯¾ããæ·±ãç解ãå¿ è¦ãªã®ã§ã»ãã®ä¸æ¡ãã®äººããæ°ããåªæãéçºãããã¨ãã§ããªãããè¡ä½¿ããã®ã¯ä½ãåºãããç°¡åãªã®ã§å¤ãã®ã¹ã¯ãªããããã£ãçºçãããã
ãªãã¡ã¯ã¿ãªã³ã°ãã³ã¼ãã£ã³ã°è¦ç´(PEP 8 -- Style Guide for Python Codeã¨ã)ã¯æ²»çéæ³ã»ç½éè¡ãæ¦ãã«ãã£ã¦å·ã¤ããä½ãçããæè»æ§ãé«ãã次ã®æ¦ãã«åãã¦ç¥ç¦ããããæè¡ããã ããããåä½ã§æµã¨æ¦ããã¨ã¯ã§ããªãã*1
ãã¬ã¼ã ã¯ã¼ã¯(Django | The Web framework for perfectionists with deadlinesãªã©)ã¯æ¯æ´éæ³ããã¶ãç·éè¡ãè¡è ã®éæ³åãé«ããéæ³é£ãç¹ã«éæ³é£ã®æºåèªä½ã«ãéæ³ã使ã£ã¦ããã±ã¼ã¹ãªã©ã§ã¯å°ãåªæãå±ããã ãã§éæ³é£ãå±éããããã®ä¸ã§ä½æ¥ãããã¨ã§æªçãªè¡è ã§ãé«ãçç£æ§ãçºæ®ã§ããããã«ãªããä¸æ¹ã§è¡è ã®ã¹ãã«ãä¸ãã£ã¦ããã¨éæ³é£ãè¨è¨ããç·éæ³å£«ã®æ³å®å¤ã®è¡åããã¦ãã¾ãã±ã¼ã¹ãåºã¦éã«åé¡ã«ãªããã¨ããããéå±æ§ã®ãã¶ã¨ããã¶ã£ã¦é«éåã®æ¯æ´éæ³ã¨ãããã¡ããã¡ã ããã¨ãä¿åã®éã«éãå ¥ãã¡ããã¡ã ãã¨ããããããã
ééè¡ã¨é»éè¡ã¯ãã¾ã詳ãããªããã©ããã¶ãééè¡ã¯ã©ã ãã«ãªãã¥ã©ã¹ã ã¨ãã¢ãã¤ãã ã¨ããæ½è±¡åã¨æ°å¦ã®åã«ãã£ã¦ç©äºã解決ãããã¨ããã¢ããã¼ãã§ãé»éè¡ã¯CPANã¨ãCTANã¿ãããªããããèããã©ã¤ãã©ãªã®åã«ãã£ã¦ç©äºã解決ãããã¨ããã¢ããã¼ããªãã ã¨æããç·éè¡ãééè¡ã¨é»éè¡ã®æ··åãªã®ã¯å¶ç¶ã§ã¯ãªãã
ããã°ã©éæ³åå¿è ã«ãªã«ããããããã£ã¦è¨ãã®ã¯ä¸æ¦ã«è¨ãã«ãããã©ã
- é»éè¡ã«æ°ãã¤ããï¼æãã¤ããã®ã¯æ§ããªãããèªåãéªãªããã®ãæ±ã£ã¦ããèªè¦ããªãããªããã¨ããã¼ã¯ãµã¤ãã«å ã¡ãªãããã«æ°ãã¤ããã
- ééè¡ã¯è¦ææèã®å¤ã人ãå¤ããæ½è±¡çãªè©±ãæåã«å¦ã¶ããããå®ä½é¨ããã¦ãããããæ½è±¡åããæ¹ã楽ãé«åº¦ãªãã¨ã¯å¾ããããã£ã¦ããããèãæµããããã§OK
- é»éè¡ã¯æ軽ã«ããããã¨ãã§ãã¦ãã£ããã¼ã ãã©ãåé¢ä½¿ãç¶ããã¨ãã®éæ³ã使ããç°å¢ããé¢ãã¥ãããªããã©ãã©ããããã¯ã¼ã¯ãéãããªã£ã¦è¡ãã®ã§è¦æ³¨æãã«ã¬ã¼å¤§å¥½ããã¬ã³ã¸ã£ã¼ã
- 赤éè¡ã¯è¨ã®éãããããã¨ãæãéããã¨éã«ããã·ã³ã°ããããé®æããããããã
- ç½éè¡ã¯ç´æ¥çã«ææã«çµã³ã¤ããªããã©ãã大ããªæµã¨æ¦ãã¨ãã«ã¯å¿ é ãªã®ã§è»½è¦ããªããã¨ã
- ééè¡ã¨é»éè¡ã®æ··ãã£ãç·éè¡ã使ã£ã¦ãæ軽ã«ææãåºããç°å¢ã§ã¢ããã¼ã·ã§ã³ãç¶æãã¤ã¤ãã½ã¼ã¹ãèªãã§ééè¡ã¨ç½éè¡ã«å¯¾ããç¥è¦ãé«ããã®ãããããããªã
ã¨ããããã§DjangoãããDjangoï¼ï½
-
- -
追è¨ï¼
- polyglotã¯ãã¡ã©
http://d.hatena.ne.jp/shinichiro_h/20070618
å½¼ã¯ãã¡ã©ãããå¾ãªããããå°ãã人éãªã©ãä½ãåºããã¨ã«ããã¦ã¯å³ã«åºããã®ãããªãã
- ppencode
#!/usr/bin/perl -w length q caller lc and print chr ord q chop uc and print chr ord q ref or and print chr ord qw q le q and print chr ord qw q le q and print chr ord q pop and print chr hex length q q semctl setpgrp chop q
ãã®è¡ã®æµãã¦ããªãèä½ã«ã¯ãææãéãè¶ãã¦é¶ç¶ã¨ããããããå±éºã ã
http://namazu.org/~takesako/ppencode/demo.html
- ãã¤ããªããã¯ã¯é»éè¡ãªã®ã ãããï¼æ©æ¢°èªã¯é»éè¡ãªãã ãããï¼ã²ã¨ãããã«ãé»éè¡ã ããæªãã¨ãã¦ãã¾ãã®ã«ã¯æµæãæããã深淵ã深淵ãã®ããããè ã¯ã深淵ã«ã®ãããã¾ããã
- é»éè¡ã«ãåè¶ãªé»ã¨æ³¥èãé»ãããã®ããã
*1:ä¸é¨ã®ãæ»ãã ã¯ããªã®ã«ã¾ã åãã¦ãããã¢ã³ãããããã¸ã§ã¯ãã«å¯¾ãã¦ã¯ç¥ç¦ã®éæ³ã§ãã¡ã¼ã¸ãä¸ãããã¨ãã§ããã¨ããå ±åãããããæ大HPã®ååã¾ã§åããã¨ããã§ããªãã¦ç½éè¡åä½ã§ã¯ãã¯ãåããªãã¨ããæè¦ãããã