<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: nourdude</title>
    <description>The latest articles on DEV Community by nourdude (@nour_dude_314).</description>
    <link>https://dev.to/nour_dude_314</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4106507%2F171411b5-6a85-48c2-9c03-9be8dd20cdb3.png</url>
      <title>DEV Community: nourdude</title>
      <link>https://dev.to/nour_dude_314</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nour_dude_314"/>
    <language>en</language>
    <item>
      <title>necoz now has another new home</title>
      <dc:creator>nourdude</dc:creator>
      <pubDate>Sat, 21 Nov 2026 19:00:20 +0000</pubDate>
      <link>https://dev.to/necoz/necoz-now-has-another-new-home-n48</link>
      <guid>https://dev.to/necoz/necoz-now-has-another-new-home-n48</guid>
      <description>&lt;p&gt;where?&lt;br&gt;
&lt;a href="https://ourworldoftext.com/necozofficial" rel="noopener noreferrer"&gt;here.&lt;/a&gt;&lt;br&gt;
yes. on owot.&lt;br&gt;
it has a main portal where you can navigate.&lt;br&gt;
it also has 4 hubs/areas: about, incidents, announcements, and chat.&lt;br&gt;
go check it out. &lt;br&gt;
because that's what i call an actual UFO.&lt;br&gt;
yep. let's do this as cats, for cats.&lt;br&gt;
oh, and you can click anywhere in the dark-ish green area in the CHAT area and type to start chatting.&lt;br&gt;
see ya!&lt;/p&gt;

</description>
      <category>necoz</category>
      <category>showdev</category>
      <category>community</category>
      <category>watercooler</category>
    </item>
    <item>
      <title>your file formats suck, and here's how to fix that</title>
      <dc:creator>nourdude</dc:creator>
      <pubDate>Tue, 17 Nov 2026 14:19:58 +0000</pubDate>
      <link>https://dev.to/necoz/your-file-formats-suck-and-heres-how-to-fix-that-1k8o</link>
      <guid>https://dev.to/necoz/your-file-formats-suck-and-heres-how-to-fix-that-1k8o</guid>
      <description>&lt;p&gt;say you're making your new program (say, for example, a chessboard editor)&lt;br&gt;
obviously you will need to save the chessboard as a file.&lt;br&gt;
so you decide to support a few formats:&lt;/p&gt;

&lt;p&gt;.fen (forsyth-edwards notation)&lt;br&gt;
.pgn (portable game notation, the 1.e4 stuff)&lt;br&gt;
.chs (a new format you wanna make)&lt;/p&gt;

&lt;p&gt;so... how do you make a new file format?&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;some people, when confronted with a problem, say: "oh, i'll use regex." now they have two problems.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;same principle.&lt;br&gt;
some people, when confronted with making a new file format, say: "oh, i'll use plaintext." now they have an absurdly large, garbled format that needs a sprawling parser. a format they made themselves, to be exact.&lt;br&gt;
"and then let's add a json edition and a schema validator." EXCUSE ME.&lt;/p&gt;

&lt;p&gt;when you make a plaintext format without any constraints in mind, you end up with a format called chess_filefmt_beta_final_FINAL2.&lt;br&gt;
and it ends up ugly to parse, ugly to use, ugly to edit, and then just the helper that makes you able to use it without a headache imports 20 modules, 4 packages, and is 5914 lines long.&lt;br&gt;
and then you have the audacity to parse it with regex.&lt;/p&gt;

&lt;p&gt;no. stop. &lt;br&gt;
that's just how to make even more crappy formats in an endless loop of "refinement".&lt;/p&gt;

&lt;p&gt;1&lt;br&gt;
limit yourself. think what you actually need and what is useless.&lt;br&gt;
in the .chs format all we need is a header and the 8x8 board.&lt;/p&gt;

&lt;p&gt;2&lt;br&gt;
pick the best way to store your data.&lt;br&gt;
in the .chs format binary data works well.&lt;br&gt;
maybe your format needs plaintext.&lt;br&gt;
or maybe something else.&lt;/p&gt;

&lt;p&gt;3&lt;br&gt;
make the minimum usable version.&lt;br&gt;
in the chess format we just store a 4 byte header (c h s then a version byte) and then in each byte we pack two chess tiles. (6 pcs*2 players + empty = 13, fits in 4 bits neatly)&lt;br&gt;
maybe your format is bigger, more detailed, or needs something completely different.&lt;/p&gt;

&lt;p&gt;4&lt;br&gt;
add versioning to the format&lt;br&gt;
maybe leave a byte for version so you don't end up with a format called chess_filefmt_beta_final_FINAL2 or something.&lt;/p&gt;

&lt;p&gt;have fun making cool formats. bye.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>files</category>
    </item>
    <item>
      <title>goto's underrated</title>
      <dc:creator>nourdude</dc:creator>
      <pubDate>Tue, 22 Sep 2026 19:45:27 +0000</pubDate>
      <link>https://dev.to/nour_dude_314/gotos-underrated-1ne7</link>
      <guid>https://dev.to/nour_dude_314/gotos-underrated-1ne7</guid>
      <description>&lt;p&gt;goto is &lt;strong&gt;absolutely&lt;/strong&gt; underrated.&lt;/p&gt;

&lt;p&gt;it isn't inherently bad. like any control-flow tool, it depends on how exactly you'd use it.&lt;/p&gt;

&lt;p&gt;proper usage:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gotoif (error!=0) {do_cleanup}

// complete_operation

label do_cleanup
  sys.unlock_file(descriptor)
  sys.free(buffer)
  return
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;this is pretty simple: if something goes wrong, go clean up.&lt;/p&gt;

&lt;p&gt;messed-up usage:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@label b
goto a
@label c
goto b
@label a
goto c
// a forever do-nothing loop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;this is technically valid, but... it's confusing and is absolutely useless. &lt;br&gt;
like- BRO I NEED A GRAPH TO SEE THAT THIS THING IS A LITERAL INFINITE JUMP LOOP!&lt;/p&gt;

&lt;p&gt;what i'm saying isn't "always use goto." nor is it "never use goto."&lt;/p&gt;

&lt;p&gt;it's that goto itself isn't the problem. bad control flow is.&lt;/p&gt;

&lt;p&gt;and when you call it a problem because dijkstra said it? without any defensible argument? dogma.&lt;/p&gt;

&lt;p&gt;for example, i could frame while as bad:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;while (x) {
 while (y) {
  do z
  while (a) {
  }
  do f
 }
 eat orange
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or if, or for, or whatever i want to.&lt;br&gt;
it's not the tool. it's the usage.&lt;/p&gt;

</description>
      <category>goto</category>
      <category>assembly</category>
      <category>c</category>
    </item>
    <item>
      <title>Classic...</title>
      <dc:creator>nourdude</dc:creator>
      <pubDate>Mon, 21 Sep 2026 12:18:48 +0000</pubDate>
      <link>https://dev.to/nour_dude_314/classic-4jac</link>
      <guid>https://dev.to/nour_dude_314/classic-4jac</guid>
      <description>&lt;p&gt;classic rite of passage lol&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwslyu57t3ju3uffye5t5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwslyu57t3ju3uffye5t5.png" alt="6502 printing" width="256" height="372"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>classic</category>
      <category>rite</category>
      <category>assembly</category>
    </item>
  </channel>
</rss>
