<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Code on Fernando Ruiz</title><link>https://www.fernandoux.com/tags/code/</link><description>Recent content in Code on Fernando Ruiz</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://www.fernandoux.com/tags/code/index.xml" rel="self" type="application/rss+xml"/><item><title>Reading code without knowing how to program: the minimum to review what the AI does</title><link>https://www.fernandoux.com/en/wiki/ai/reading-code-without-coding/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.fernandoux.com/en/wiki/ai/reading-code-without-coding/</guid><description>&lt;div class="info-panel"&gt;
 &lt;div class="info-header"&gt;
 &lt;span class="material-symbols-outlined info-panel-icon"&gt;info&lt;/span&gt;
 &lt;span class="info-panel-label"&gt;Quick Definition&lt;/span&gt;
 &lt;/div&gt;
 &lt;div class="info-content"&gt;
 &lt;strong&gt;Reading code without knowing how to program&lt;/strong&gt; means understanding the structure of what the AI generated: which parts make up the page, what each action does and what data it touches. It lets you review a change with judgment even if you never write a line.
 &lt;/div&gt;
&lt;/div&gt;

&lt;h2 id="what-do-you-need-to-understand-at-minimum"&gt;What do you need to understand at minimum?&lt;/h2&gt;
&lt;p&gt;A web page has three layers, and each answers a different question:&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Layer&lt;/th&gt;
 &lt;th&gt;Question it answers&lt;/th&gt;
 &lt;th&gt;How to recognize it&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;HTML&lt;/td&gt;
 &lt;td&gt;What is on the page?&lt;/td&gt;
 &lt;td&gt;Tags in angle brackets: &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;CSS&lt;/td&gt;
 &lt;td&gt;What does it look like?&lt;/td&gt;
 &lt;td&gt;Rules for color, size and spacing, for example &lt;code&gt;color: red;&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;JavaScript&lt;/td&gt;
 &lt;td&gt;What happens when someone acts?&lt;/td&gt;
 &lt;td&gt;Functions, events such as &lt;code&gt;click&lt;/code&gt; and values that change&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;HTML tags have an opening, content and a closing part, as in &lt;code&gt;&amp;lt;p&amp;gt;text&amp;lt;/p&amp;gt;&lt;/code&gt;. Some have no content or closing tag, such as &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;; MDN calls them empty elements. Attributes are settings on a tag, for example &lt;code&gt;alt&lt;/code&gt;, which describes an image for a screen reader. Tags nest: &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; sit inside &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt;, and &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; sits inside &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;. The browser shows what is inside &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; and the title in the tab (&lt;a href="https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/HTML_basics"&gt;MDN, HTML basics&lt;/a&gt;).&lt;/p&gt;</description></item></channel></rss>