{"id":17746,"date":"2014-03-04T17:02:14","date_gmt":"2014-03-04T08:02:14","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=17746"},"modified":"2014-03-04T17:02:14","modified_gmt":"2014-03-04T08:02:14","slug":"mtgox-source-code","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/mtgox-source-code\/","title":{"rendered":"\u7834\u7dbb\u3057\u305fBitcoin\u53d6\u5f15\u6240\u300cMt.Gox\u300d\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30ed\u30b7\u30a2\u306e\u30cf\u30c3\u30ab\u30fc\u300cnanashi\u300d\u304c\u30ea\u30fc\u30af\uff01\uff01"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/03\/blogphp.png\" alt=\"Php\" title=\"php.png\" border=\"0\" width=\"546\" height=\"316\" \/><\/p>\n<p>\u7d4c\u55b6\u7834\u7dbb\u3057\u305fBitcoin\u53d6\u5f15\u6240\u300cMt.Gox\u300d\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3089\u3057\u304d\u3082\u306e\u304c\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u306b\u6d41\u51fa\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f(<a href=\"http:\/\/pastebin.com\/W8B3CGiN\">\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/a>\u3001<a href=\"http:\/\/dzoba.com\/apparently-mt-gox-has-been-hacked-againby-people-trying-to-find-out-what-happened\/\">Apparently Mt Gox Has Been Hacked Again\u2026By People Trying To Find Out What Happened<\/a>\u3001<a href=\"https:\/\/news.ycombinator.com\/item?id=7332391\">Hacker News<\/a>\u3001<a href=\"http:\/\/jp.techcrunch.com\/2014\/03\/04\/20140303mt-gox-source-code-leaked-by-hackers-along-with-team-information-customer-data\/\">TechCrunch\u65e5\u672c\u7248<\/a>\u3001<a href=\"http:\/\/gigazine.net\/news\/20140304-mt-gox-hack\/\">GIGAZINE<\/a>)\u3002<\/p>\n<p>\u3053\u306e\u60c5\u5831\u306f\u3001\u30ed\u30b7\u30a2\u306e\u30cf\u30c3\u30ab\u30fc\u300cnanashi_\u300d\u3055\u3093\u304c\u3001IRC\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u300c##mtgox-chat\u300d\u3067\u516c\u958b\u3057\u305f\u3082\u306e(<a href=\"http:\/\/pastebin.com\/cbA09WwA\">IRC\u306e\u30ed\u30b0<\/a>)\u3002\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u4ed6\u306b\u3082\u300120GB\u5206\u306e\u9867\u5ba2\u60c5\u5831\u3084\u3001Mt.Gox\u793e\u54e1\u306e\u500b\u4eba\u60c5\u5831\u307e\u3067\u5165\u624b\u3057\u3066\u3044\u308b\u305d\u3046\u3067\u3059\u304c\u3001\u3053\u3061\u3089\u306f\u516c\u958b\u306e\u610f\u601d\u306f\u306a\u3044\u3068\u4e3b\u5f35\u3057\u3066\u3044\u307e\u3059\u3002Mt.Gox\u306b\u4f55\u304c\u8d77\u3053\u3063\u305f\u306e\u304b\u8abf\u3079\u3066\u3044\u308b\u3046\u3061\u306b\u3001\u3053\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3057\u305f\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u304c\u3001\u3082\u3057\u672c\u7269\u306a\u3089\u3070\u3001\u3069\u3046\u3084\u3063\u3066\u5165\u624b\u3057\u305f\u306e\u304b\u3001\u7d4c\u7def\u304c\u6c17\u306b\u306a\u308a\u307e\u3059\u306d\u3002<\/p>\n<h3>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u54c1\u8cea\u306f\u304b\u306a\u308a\u60aa\u3044<\/h3>\n<p>\u6b8b\u5ff5\u306a\u304c\u3089\uff1f\u3001\u30ea\u30fc\u30af\u3055\u308c\u305fPHP\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u54c1\u8cea\u306f\u9177\u8a55\u3055\u308c\u3066\u3044\u307e\u3059\u3002Hacker News\u306b\u3088\u308b\u3068\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u3072\u3069\u3044\u7406\u7531\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n<blockquote><p>\n- There's a class with the name of the application. (Issues: Scope, SRP)<br \/>\n- There's a class with 1708 lines of code. (Scope)<br \/>\n- There's a switch-case statement that runs over 150 LOC (readability, maintainability)<br \/>\n- There's a string parsing function in the same class as transaction processing (Separation of concerns)<br \/>\n- There are segments of code commented out (are they not using source control?)<br \/>\n- There's inlined SQL (maintainability, security)<br \/>\n- There's JSON being generated manually & inline (SoC, DRY)<br \/>\n- There's XML being generated manually & inline (SoC, DRY)<br \/>\n- To sum up function _Route_getStats($path): XML production, JSON production, file writing, business logic, SQL commands, HTTP header fiddling, hard coded paging limits, multiple exit points...\n<\/p><\/blockquote>\n<p>\u305f\u3057\u304b\u306b\u30af\u30e9\u30b9\u306f\u30c7\u30ab\u30a4\u3002<\/p>\n<p>Mt.Gox\u306eCEO\u306eMark Karpeles\u6c0f\u81ea\u3089\u304c\u66f8\u3044\u305f\u30bd\u30fc\u30b9\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u304c(?)\u3001\u7d4c\u55b6\u306b\u5c02\u5ff5\u3057\u3066\u8155\u5229\u304d\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306b\u958b\u767a\u696d\u52d9\u306f\u4efb\u305b\u305f\u307b\u3046\u304c\u3088\u304b\u3063\u305f\u306e\u304b\u3082\u2026<\/p>\n<p>Mt.Gox\u304c\u6e0b\u8c37\u306b\u3042\u3063\u305f\u308a\u3001\u30ed\u30b7\u30a2\u306e\u30cf\u30c3\u30ab\u30fc\u304cnanashi\u3092\u540d\u4e57\u3063\u305f\u308a\u3001\u5fae\u5999\u306b\u65e5\u672c\u304c\u304b\u3089\u3093\u3067\u304f\u308b\u70b9\u3082\u8208\u5473\u6df1\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7d4c\u55b6\u7834\u7dbb\u3057\u305fBitcoin\u53d6\u5f15\u6240\u300cMt.Gox\u300d\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3089\u3057\u304d\u3082\u306e\u304c\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u306b\u6d41\u51fa\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f(\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3001Apparently Mt Gox Has Been Hacked Again\u2026 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":17745,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[2179],"class_list":["post-17746","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-mt-gox"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/17746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=17746"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/17746\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/17745"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=17746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=17746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=17746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}