{"id":2775,"date":"2025-11-29T14:24:50","date_gmt":"2025-11-29T19:24:50","guid":{"rendered":"https:\/\/learntechwell.com\/?p=2775"},"modified":"2025-12-04T15:39:11","modified_gmt":"2025-12-04T20:39:11","slug":"a-day-in-the-life-of-a-developer","status":"publish","type":"post","link":"https:\/\/learntechwell.com\/ru\/a-day-in-the-life-of-a-developer\/","title":{"rendered":"\ud83d\udc68\u200d\ud83d\udcbb A Day in the Life of a Developer \ud83d\udc69\u200d\ud83d\udcbb"},"content":{"rendered":"<p>Started out with a tiny fix-up to do on a legacy website and run into a wild bug\ud83d\udc1b: some of desktop menu items refused to show their pages! \ud83e\udd14 Mobile menu? No\u00a0problemo! \ud83d\udcf1 Desktop menu \u2013 problemo! \ud83d\udd75\ufe0f\u200d\u2640\ufe0f<\/p>\n\n\n\n<p>First stop: Admin panel. \ud83d\udee0\ufe0f Oh, desktop menu is missing some of the hrefs that the mobile menu has. Let&#8217;s put them in. All good now? No sir! \ud83d\ude05<\/p>\n\n\n\n<p>Next up: diving into the code. Oh, the main menu template says <code>if<\/code> an item has children <code>then<\/code> this item does not get an <code>&lt;a href=&quot;&quot;&gt;<\/code> tag. Is it supposed to be like this? Evidently not. Added those bad boys in. \ud83d\udcbb Easy fix, or so I thought. \ud83d\ude2c<\/p>\n\n\n\n<p>The correct hrefs are now in place! But&#8230; click on them \u2013 nothing happens. Why? \ud83d\ude31<\/p>\n\n\n\n<p>Turns out, the old <a href=\"https:\/\/jquery.com\/\" data-type=\"link\" data-id=\"https:\/\/jquery.com\/\" rel=\"nofollow noopener\" target=\"_blank\">jQuery<\/a> code overrides the clicks! \ud83e\udd26\u200d\u2640\ufe0f Do I want to mess with this legacy beast? Care to wake the dragon? \ud83d\udc09<\/p>\n\n\n\n<p>Is there a way around? Let&#8217;s see if we can restructure the HTML. Does not work the first time&#8230; but works the second time! Tested and retested across desktop and mobile \u2013 voil\u00e0, it works like a charm! \ud83c\udfa9\u2728<\/p>\n\n\n\n<p>Thinking of R. Martin quoting his boss in <em><a href=\"https:\/\/www.amazon.com\/Clean-Coder-Conduct-Professional-Programmers\/dp\/0137081073\" rel=\"nofollow noopener\" target=\"_blank\">Clean Coder<\/a><\/em> book: &#8220;Bugs aren&#8217;t &#8216;interesting.&#8217; They just have to be fixed.&#8221; Well, some bugs do have a hint of intrigue, but shh, don&#8217;t tell the boss! \ud83d\ude09\ud83e\udd2b<\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Started out with a tiny fix-up to do on a legacy website and run into a wild bug\ud83d\udc1b: some of desktop menu items refused to show their pages! \ud83e\udd14 Mobile menu? No\u00a0problemo! \ud83d\udcf1 Desktop menu \u2013 problemo! \ud83d\udd75\ufe0f\u200d\u2640\ufe0f First stop: Admin panel. \ud83d\udee0\ufe0f Oh, desktop menu is missing some of the hrefs that the mobile&#8230;<\/p>","protected":false},"author":2,"featured_media":2767,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"\ud83d\udc68\u200d\ud83d\udcbb A Day in the Life of a Developer \ud83d\udc69\u200d\ud83d\udcbb","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[4],"tags":[60,59,61],"class_list":["post-2775","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coding","tag-bugbattles-2","tag-developerlife-2","tag-legacycodeadventures-2"],"jetpack_featured_media_url":"https:\/\/learntechwell.com\/wp-content\/uploads\/2024\/05\/270557.jpg","_links":{"self":[{"href":"https:\/\/learntechwell.com\/ru\/wp-json\/wp\/v2\/posts\/2775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learntechwell.com\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learntechwell.com\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learntechwell.com\/ru\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/learntechwell.com\/ru\/wp-json\/wp\/v2\/comments?post=2775"}],"version-history":[{"count":13,"href":"https:\/\/learntechwell.com\/ru\/wp-json\/wp\/v2\/posts\/2775\/revisions"}],"predecessor-version":[{"id":2810,"href":"https:\/\/learntechwell.com\/ru\/wp-json\/wp\/v2\/posts\/2775\/revisions\/2810"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learntechwell.com\/ru\/wp-json\/wp\/v2\/media\/2767"}],"wp:attachment":[{"href":"https:\/\/learntechwell.com\/ru\/wp-json\/wp\/v2\/media?parent=2775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learntechwell.com\/ru\/wp-json\/wp\/v2\/categories?post=2775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learntechwell.com\/ru\/wp-json\/wp\/v2\/tags?post=2775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}