{"id":62436,"date":"2018-08-12T12:40:28","date_gmt":"2018-08-12T03:40:28","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=62436"},"modified":"2018-08-12T12:40:28","modified_gmt":"2018-08-12T03:40:28","slug":"poor-javascript-code-1500-users","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/poor-javascript-code-1500-users\/","title":{"rendered":"1,500\u4eba\u3082\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u4f7f\u7528\u3057\u3066\u3044\u308b\u30a4\u30f3\u30c8\u30e9\u30cd\u30c3\u30c8\u30a2\u30d7\u30ea\u306eJavaScript\u30b3\u30fc\u30c9\u304c\u9177\u3044\u3068\u8a71\u984c\u306b"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2018\/08\/javascript.jpg\" alt=\"Javascript\" title=\"javascript.jpg\" border=\"0\" width=\"960\" height=\"1016\" \/><\/p>\n<p>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u63b2\u793a\u677freddit\u306b\u3001<a href=\"https:\/\/www.reddit.com\/r\/programminghorror\/comments\/66klvc\/this_javascript_code_powers_a_1500_user_intranet\/\">1,500\u4eba\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u4f7f\u7528\u3057\u3066\u3044\u308b\u30a4\u30f3\u30c8\u30e9\u30cd\u30c3\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u542b\u307e\u308c\u308bJavaScript\u30b3\u30fc\u30c9<\/a>\u304c\u63b2\u8f09\u3055\u308c\u3001\u305d\u306e\u51fa\u6765\u306e\u3072\u3069\u3055\u304b\u3089\u6ce8\u76ee\u3092\u96c6\u3081\u3066\u3044\u307e\u3059(\u5143\u3005\u306e\u6295\u7a3f\u306f2017\u5e74\u306b\u884c\u308f\u308c\u305f\u3082\u306e\u306e\u3088\u3046\u3067\u3059\u304c\u3001\u6700\u8fd1\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u3067\u6ce8\u76ee\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3054\u7d39\u4ecb)\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u629c\u7c8b\u3055\u308c\u305f\u30b3\u30fc\u30c9\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u969b\u3001\u5165\u529b\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u53d6\u308a\u51fa\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u60c5\u5831\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3001\u3044\u308f\u3086\u308b\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u3092\u884c\u3063\u3066\u3044\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u95a2\u6570authenticateUser\u306e\u6700\u5f8c\u306b\u5b58\u5728\u3059\u308b\u300cif (\"true === \"true\")\u300d\u306e\u3088\u3046\u306a\u3001\u4e00\u4ef6\u3057\u3066\u610f\u5473\u4e0d\u660e\u306a\u90e8\u5206\u306e\u307b\u304b\u3001\u3055\u307e\u3056\u307e\u306a\u3072\u3069\u3044\u51e6\u7406\u304c\u8a70\u3081\u8fbc\u307e\u308c\u3066\u3044\u308b\u3068\u6307\u6458\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u77ed\u3044\u30b3\u30fc\u30c9\u306b\u3044\u308d\u3044\u308d\u3068\u51dd\u7e2e<\/h2>\n<p><a href=\"https:\/\/www.reddit.com\/r\/programminghorror\/comments\/66klvc\/this_javascript_code_powers_a_1500_user_intranet\/?sort=top\">Reddit<\/a>\u306b\u306f\u4e0a\u8a18\u30b3\u30fc\u30c9\u306b\u5bfe\u3057\u3066\u3055\u307e\u3056\u307e\u306a\u30b3\u30e1\u30f3\u30c8\u304c\u5bc4\u305b\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u5148\u307b\u3069\u4f8b\u3068\u3057\u3066\u3042\u3052\u305f\u3001\u6700\u3082\u5206\u304b\u308a\u3084\u3059\u3044\u300cif (\"true === \"true\")\u300d\u4ee5\u5916\u306b\u3082\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u554f\u984c\u70b9\u304c\u6307\u6458\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u8a8d\u8a3c<\/li>\n<li>\u5168\u30e6\u30fc\u30b6\u30fc\u306e\u8a73\u7d30\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u3044\u308b<\/li>\n<li>\u5165\u529b\u5024\u306e\u691c\u8a3c\u306a\u3057<\/li>\n<li>\u30e6\u30fc\u30b6\u30fc\u306b\u5bfe\u3057\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u305f\u304b\u3069\u3046\u304b\u306e\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u304c\u306a\u3044<\/li>\n<li>\u30d7\u30ec\u30a4\u30f3\u30c6\u30ad\u30b9\u30c8\u30d1\u30b9\u30ef\u30fc\u30c9<\/li>\n<li>\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u5bfe\u3057\u3066\u30cf\u30c3\u30b7\u30e5\u51e6\u7406\u304c\u304a\u3053\u306a\u308f\u308c\u3066\u3044\u306a\u3044<\/li>\n<li>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u304c\u53ef\u80fd<\/li>\n<li>Cookie\u3092\u507d\u88c5\u3057\u305f\u3060\u3051\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b<\/li>\n<\/ul>\n<p>\u4ed6\u306b\u3082\u3055\u307e\u3056\u307e\u306a\u8208\u5473\u6df1\u3044\u6307\u6458\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u958b\u767a\u8005\u306e\u65b9\u306f\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30b9\u30ec\u30c3\u30c9\u3067\u554f\u984c\u70b9\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4eca\u56de\u306e\u30b3\u30fc\u30c9\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\u52d5\u4f5c\u3059\u308bJavaScript\u3067\u51e6\u7406\u304c\u304a\u3053\u306a\u308f\u308c\u3066\u3044\u305f\u305f\u3081\u554f\u984c\u304c\u767a\u898b\u3055\u308c\u307e\u3057\u305f\u304c\u3001\u901a\u5e38\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u78ba\u8a8d\u3067\u304d\u306a\u3044\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3069\u306e\u3088\u3046\u306a\u51e6\u7406\u304c\u304a\u3053\u306a\u308f\u308c\u3066\u3044\u308b\u306e\u304b\u3001\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u77e5\u308b\u65b9\u6cd5\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5185\u90e8\u7684\u306b\u306f\u4eca\u56de\u53d6\u308a\u4e0a\u3052\u3089\u308c\u305f\u306e\u3068\u540c\u69d8\u306a\u3072\u3069\u3044\u51e6\u7406\u304c\u304a\u3053\u306a\u308f\u308c\u3066\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u77e5\u3089\u306a\u3044\u3046\u3061\u306b\u4f7f\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u63b2\u793a\u677freddit\u306b\u30011,500\u4eba\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u4f7f\u7528\u3057\u3066\u3044\u308b\u30a4\u30f3\u30c8\u30e9\u30cd\u30c3\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u542b\u307e\u308c\u308bJavaScript\u30b3\u30fc\u30c9\u304c\u63b2\u8f09\u3055\u308c\u3001\u305d\u306e\u51fa\u6765\u306e\u3072\u3069\u3055\u304b\u3089\u6ce8\u76ee\u3092\u96c6\u3081\u3066\u3044\u307e\u3059(\u5143\u3005\u306e\u6295\u7a3f\u306f2017\u5e74\u306b\u884c\u308f\u308c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":62437,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[655],"class_list":["post-62436","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-javascript"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/62436","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=62436"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/62436\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/62437"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=62436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=62436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=62436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}