[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"sanity-QsrC5NVKfuGpmxby4kd7Qjx7JnTKZwUK55iDEu4MmcE":3,"sanity-dXI76bdNLI7jVUtiBczwG0hQDHinbXe19Eg2U359EvA":292},{"data":4,"sourceMap":-1},{"latestPodcast":5,"latestReleases":14,"post":39,"recent":271},[6],{"_id":7,"publishedAt":8,"slug":9,"sponsored":12,"title":13},"f7b6d808-33ec-4a2d-bf20-66847f8d6bc7","2026-10-02T07:40:00.000Z",{"_type":10,"current":11},"slug","constraints-that-make-developers-faster",null,"Constraints that make developers faster",[15,21,27,33],{"_id":16,"publishedAt":17,"slug":18,"title":20},"7a2d88e5-ee53-4f7c-a46e-47bed1cebadf","2026-09-30T16:00:00.000Z",{"_type":10,"current":19},"anyone-can-start-building-verified-knowledge-with-stack-internal","Anyone can start building verified knowledge with Stack Internal",{"_id":22,"publishedAt":23,"slug":24,"title":26},"12c6a8a7-135f-401f-ac1a-1c26c33e69c0","2026-09-03T16:00:00.000Z",{"_type":10,"current":25},"security-control-and-accessibility-si-2026-6","Elevating security, control, and accessibility: Stack Internal 2026.6",{"_id":28,"publishedAt":29,"slug":30,"title":32},"adcf1bca-3295-4ac5-9b3c-23f337974190","2026-07-30T15:10:00.000Z",{"_type":10,"current":31},"introducing-stack-internal-new-platform-experience","Your trusted knowledge layer: Introducing Stack Internal's new platform experience",{"_id":34,"publishedAt":35,"slug":36,"title":38},"eb5b66eb-9410-4329-83bb-22bbff39402a","2026-04-28T13:00:00.000Z",{"_type":10,"current":37},"turn-scattered-knowledge-into-trusted-intelligence","Turning scattered knowledge into trusted intelligence: Stack Internal 2026.3",{"_createdAt":40,"_id":41,"_rev":42,"_type":43,"_updatedAt":44,"author":45,"body":61,"comments":244,"dateUrl":245,"excerpt":246,"image":247,"legacyBody":250,"product":12,"publishedAt":253,"slug":254,"sponsored":12,"tags":256,"title":270,"visible":244},"2023-05-25T09:39:13Z","wp-post-14757","dgl3SCUzppW3U2LvCoSbie","blogPost","2023-07-13T14:55:28Z",[46],{"_createdAt":47,"_id":48,"_rev":49,"_type":50,"_updatedAt":51,"avatar":52,"employee":57,"name":58,"slug":59},"2023-05-23T16:27:18Z","wp-author-226","dgl3SCUzppW3U2LvCoOzcS","blogAuthor","2023-06-20T15:05:06Z",{"_type":53,"asset":54},"image",{"_ref":55,"_type":56},"image-56688f6337dd0a96034dfc998cdecc7810597d81-1024x1024-png","reference","current","Ryan Donovan",{"current":60},"rdonovan",[62,73,86,95,103,114,122,130,141,149,157,168,176,192,203,210,218,229,236],{"_key":63,"_type":64,"children":65,"markDefs":71,"style":72},"48fe295b2901","block",[66],{"_key":67,"_type":68,"marks":69,"text":70},"48fe295b29010","span",[],"We’re in the throes of winter here at Stack Overflow headquarters but the Q&A sites are full of hot questions. This week, we’re wondering if syntactic sugar makes code sweeter, wishing upon a galaxy, and digging into two Scala functions that do basically the same thing but at different speeds.\n",[],"normal",{"_key":74,"_type":64,"children":75,"markDefs":81,"style":85},"663575078367",[76],{"_key":77,"_type":68,"marks":78,"text":80},"6635750783670",[79],"0585a72a20ff","A star or a galaxy?",[82],{"_key":79,"_type":83,"href":84,"reference":12},"link","https:\u002F\u002Fphysics.stackexchange.com\u002Fquestions\u002F522578\u002Fa-star-or-a-galaxy","h3",{"_key":87,"_type":64,"children":88,"markDefs":94,"style":72},"04b685a2514b",[89],{"_key":90,"_type":68,"marks":91,"text":93},"04b685a2514b0",[92],"em","physics.stackexchange.com",[],{"_key":96,"_type":64,"children":97,"markDefs":102,"style":72},"e81d73af4e18",[98],{"_key":99,"_type":68,"marks":100,"text":101},"e81d73af4e180",[],"When I wish upon a star, does it count extra if it's a galaxy? Because I’ve been trying find the optimal wish pattern without having to wish for more wishes. Genies are such sticklers for rules.",[],{"_key":104,"_type":64,"children":105,"markDefs":111,"style":85},"de1c922b634e",[106],{"_key":107,"_type":68,"marks":108,"text":110},"de1c922b634e0",[109],"a420ffba9855","What would I prefer - an over-fitted model or a less accurate model?",[112],{"_key":109,"_type":83,"href":113,"reference":12},"https:\u002F\u002Fdatascience.stackexchange.com\u002Fquestions\u002F66350\u002Fwhat-would-i-prefer-an-over-fitted-model-or-a-less-accurate-model",{"_key":115,"_type":64,"children":116,"markDefs":121,"style":72},"63ace58a80a1",[117],{"_key":118,"_type":68,"marks":119,"text":120},"63ace58a80a10",[92],"datascience.stackexchange.com",[],{"_key":123,"_type":64,"children":124,"markDefs":129,"style":72},"b5546e238374",[125],{"_key":126,"_type":68,"marks":127,"text":128},"b5546e2383740",[],"Our question asker is wondering if overfitting a model is worth the 1% extra results. It depends on what kind of data you’re modeling. Speech recognition? That 1% may matter. Everything else? Maybe not.",[],{"_key":131,"_type":64,"children":132,"markDefs":138,"style":85},"2d7be275d2ba",[133],{"_key":134,"_type":68,"marks":135,"text":137},"2d7be275d2ba0",[136],"fe6612011bb1","Why are the fast integer types faster than the other integer types?",[139],{"_key":136,"_type":83,"href":140,"reference":12},"https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F59593541\u002Fwhy-are-the-fast-integer-types-faster-than-the-other-integer-types",{"_key":142,"_type":64,"children":143,"markDefs":148,"style":72},"419fa25ef153",[144],{"_key":145,"_type":68,"marks":146,"text":147},"419fa25ef1530",[92],"stackoverflow.com",[],{"_key":150,"_type":64,"children":151,"markDefs":156,"style":72},"a7454118f03d",[152],{"_key":153,"_type":68,"marks":154,"text":155},"a7454118f03d0",[],"Can you speed up operations just by putting the word 'fast' in the name of the data type? Because I would like to schedule an appointment with the fast_doctor.",[],{"_key":158,"_type":64,"children":159,"markDefs":165,"style":85},"46d2f6ab1c32",[160],{"_key":161,"_type":68,"marks":162,"text":164},"46d2f6ab1c320",[163],"2b575a7df6ad","Why is the norm of a complex number in the C++ complex library actually the square of the norm?",[166],{"_key":163,"_type":83,"href":167,"reference":12},"https:\u002F\u002Fsoftwareengineering.stackexchange.com\u002Fquestions\u002F403065\u002Fwhy-is-the-norm-of-a-complex-number-in-the-c-complex-library-actually-the-squa",{"_key":169,"_type":64,"children":170,"markDefs":175,"style":72},"e1a13e0732ee",[171],{"_key":172,"_type":68,"marks":173,"text":174},"e1a13e0732ee0",[92],"softwareengineering.stackexchange.com",[],{"_key":177,"_type":64,"children":178,"markDefs":191,"style":72},"f05a2655aead",[179,183,187],{"_key":180,"_type":68,"marks":181,"text":182},"f05a2655aead0",[],"Turns out Euclid and C++ don’t agree on what ‘norm’ means. I always thought it was a guy who sat at the bar in ",{"_key":184,"_type":68,"marks":185,"text":186},"f05a2655aead1",[92],"Cheers",{"_key":188,"_type":68,"marks":189,"text":190},"f05a2655aead2",[],".",[],{"_key":193,"_type":64,"children":194,"markDefs":200,"style":85},"387a875e25c0",[195],{"_key":196,"_type":68,"marks":197,"text":199},"387a875e25c00",[198],"94e61a918e07","Why is zipped faster than zip in Scala?",[201],{"_key":198,"_type":83,"href":202,"reference":12},"https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F59598239\u002Fwhy-is-zipped-faster-than-zip-in-scala",{"_key":204,"_type":64,"children":205,"markDefs":209,"style":72},"eb5264e5ae61",[206],{"_key":207,"_type":68,"marks":208,"text":147},"eb5264e5ae610",[92],[],{"_key":211,"_type":64,"children":212,"markDefs":217,"style":72},"a82c6c1c3be6",[213],{"_key":214,"_type":68,"marks":215,"text":216},"a82c6c1c3be60",[],"How can similar Scala functions perform the same task at such different speeds? You’d think that they would be equally zippy.",[],{"_key":219,"_type":64,"children":220,"markDefs":226,"style":85},"e9ee32e65e06",[221],{"_key":222,"_type":68,"marks":223,"text":225},"e9ee32e65e060",[224],"863447d9481a","When to use \u002F not use syntactic sugar",[227],{"_key":224,"_type":83,"href":228,"reference":12},"https:\u002F\u002Fsoftwareengineering.stackexchange.com\u002Fquestions\u002F403483\u002Fwhen-to-use-not-use-syntactic-sugar",{"_key":230,"_type":64,"children":231,"markDefs":235,"style":72},"aff4ea942fd1",[232],{"_key":233,"_type":68,"marks":234,"text":174},"aff4ea942fd10",[92],[],{"_key":237,"_type":64,"children":238,"markDefs":243,"style":72},"e375d0446183",[239],{"_key":240,"_type":68,"marks":241,"text":242},"e375d04461830",[],"How many syntactic sugars do you take in your code? Or do you like your code like your fancy coffee, verbose and full of multiple elements?",[],true,"2020\u002F01\u002F17","",{"_type":53,"asset":248},{"_ref":249,"_type":56},"image-0ee3cefb88e1b23ced9a867ab91799f161831064-1200x630-png",{"code":251,"language":252},"\u003C!-- wp:paragraph -->\n\u003Cp>We’re in the throes of winter here at Stack Overflow headquarters but the Q&amp;A sites are full of hot questions. This week, we’re wondering if syntactic sugar makes code sweeter, wishing upon a galaxy, and digging into two Scala functions that do basically the same thing but at different speeds.&nbsp;\u003Cbr>\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:heading {\"level\":3} -->\n\u003Ch3>\u003Ca href=\"https:\u002F\u002Fphysics.stackexchange.com\u002Fquestions\u002F522578\u002Fa-star-or-a-galaxy\">A star or a galaxy?\u003C\u002Fa>\u003C\u002Fh3>\n\u003C!-- \u002Fwp:heading -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>\u003Cem>physics.stackexchange.com\u003C\u002Fem>\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>When I wish upon a star, does it count extra if it's a galaxy? Because I’ve been trying find the optimal wish pattern without having to wish for more wishes. Genies are such sticklers for rules.\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:heading {\"level\":3} -->\n\u003Ch3>\u003Ca href=\"https:\u002F\u002Fdatascience.stackexchange.com\u002Fquestions\u002F66350\u002Fwhat-would-i-prefer-an-over-fitted-model-or-a-less-accurate-model\">What would I prefer - an over-fitted model or a less accurate model?\u003C\u002Fa>\u003C\u002Fh3>\n\u003C!-- \u002Fwp:heading -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>\u003Cem>datascience.stackexchange.com\u003C\u002Fem>\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>Our question asker is wondering if overfitting a model is worth the 1% extra results. It depends on what kind of data you’re modeling. Speech recognition? That 1% may matter. Everything else? Maybe not.&nbsp;\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:heading {\"level\":3} -->\n\u003Ch3>\u003Ca href=\"https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F59593541\u002Fwhy-are-the-fast-integer-types-faster-than-the-other-integer-types\">Why are the fast integer types faster than the other integer types?\u003C\u002Fa> \u003C\u002Fh3>\n\u003C!-- \u002Fwp:heading -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>\u003Cem>stackoverflow.com\u003C\u002Fem>\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>Can you speed up operations just by putting the word 'fast' in the name of the data type? Because I would like to schedule an appointment with the fast_doctor.&nbsp;\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:heading {\"level\":3} -->\n\u003Ch3>\u003Ca href=\"https:\u002F\u002Fsoftwareengineering.stackexchange.com\u002Fquestions\u002F403065\u002Fwhy-is-the-norm-of-a-complex-number-in-the-c-complex-library-actually-the-squa\">Why is the norm of a complex number in the C++ complex library actually the square of the norm?\u003C\u002Fa> \u003C\u002Fh3>\n\u003C!-- \u002Fwp:heading -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>\u003Cem>softwareengineering.stackexchange.com\u003C\u002Fem>\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>Turns out Euclid and C++ don’t agree on what ‘norm’ means. I always thought it was a guy who sat at the bar in \u003Cem>Cheers\u003C\u002Fem>.&nbsp;\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:heading {\"level\":3} -->\n\u003Ch3>\u003Ca href=\"https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F59598239\u002Fwhy-is-zipped-faster-than-zip-in-scala\">Why is zipped faster than zip in Scala?\u003C\u002Fa> \u003C\u002Fh3>\n\u003C!-- \u002Fwp:heading -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>\u003Cem>stackoverflow.com\u003C\u002Fem>\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>How can similar Scala functions perform the same task at such different speeds? You’d think that they would be equally zippy.&nbsp;\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:heading {\"level\":3} -->\n\u003Ch3>\u003Ca href=\"https:\u002F\u002Fsoftwareengineering.stackexchange.com\u002Fquestions\u002F403483\u002Fwhen-to-use-not-use-syntactic-sugar\">When to use \u002F not use syntactic sugar\u003C\u002Fa> \u003C\u002Fh3>\n\u003C!-- \u002Fwp:heading -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>\u003Cem>softwareengineering.stackexchange.com\u003C\u002Fem>\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->\n\n\u003C!-- wp:paragraph -->\n\u003Cp>How many syntactic sugars do you take in your code? Or do you like your code like your fancy coffee, verbose and full of multiple elements?\u003C\u002Fp>\n\u003C!-- \u002Fwp:paragraph -->","html","2020-01-17T15:00:00.000Z",{"current":255},"this-week-stackoverflowknows-syntactic-sugar-overfit-or-nah-and-the-definition-of-norm",[257,265],{"_createdAt":258,"_id":259,"_rev":260,"_type":261,"_updatedAt":258,"slug":262,"title":264},"2023-05-23T16:43:21Z","wp-tagcat-stackoverflowknows","9HpbCsT2tq0xwozQfkc4ih","blogTag",{"current":263},"stackoverflowknows","#StackOverflowKnows",{"_createdAt":258,"_id":266,"_rev":260,"_type":261,"_updatedAt":258,"slug":267,"title":269},"wp-tagcat-announcements",{"current":268},"announcements","Announcements","This week, #StackOverflowKnows syntactic sugar, overfit or nah, and the definition of norm",[272,278,284,286],{"_id":273,"publishedAt":274,"slug":275,"sponsored":12,"title":277},"5b49fdc8-0b0b-41d8-bbf6-6f6d8460e709","2026-10-01T14:47:33.689Z",{"_type":10,"current":276},"a-look-back-before-we-look-forward-a-developer-survey-retrospective","A look back before we look forward: A Developer Survey retrospective",{"_id":279,"publishedAt":280,"slug":281,"sponsored":12,"title":283},"78281763-feb0-4d4b-982a-fec90093703d","2026-09-30T17:00:00.000Z",{"_type":10,"current":282},"organizations-need-decision-grade-knowledge-ai-makes-it-urgent","Organizations need decision-grade knowledge. AI makes it urgent.",{"_id":16,"publishedAt":17,"slug":285,"sponsored":12,"title":20},{"_type":10,"current":19},{"_id":287,"publishedAt":288,"slug":289,"sponsored":12,"title":291},"ffd0f62d-2597-4506-a15a-f073dbaae590","2026-09-30T14:00:00.000Z",{"_type":10,"current":290},"getting-ready-for-2026-results-a-look-back-on-developer-survey-findings","Getting ready for 2026 results: A look back on Developer Survey findings",{"data":293,"sourceMap":-1},{"count":294,"lastTimestamp":295},4,"2023-05-25T09:47:02Z"]