<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki-babylonsignalis.org/index.php?action=history&amp;feed=atom&amp;title=Skryt%C3%A9_%C4%8Dinnosti_v_odhadu_%C4%8Dasu%3A_praktick%C3%BD_pr%C5%AFvodce</id>
	<title>Skryté činnosti v odhadu času: praktický průvodce - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki-babylonsignalis.org/index.php?action=history&amp;feed=atom&amp;title=Skryt%C3%A9_%C4%8Dinnosti_v_odhadu_%C4%8Dasu%3A_praktick%C3%BD_pr%C5%AFvodce"/>
	<link rel="alternate" type="text/html" href="https://wiki-babylonsignalis.org/index.php?title=Skryt%C3%A9_%C4%8Dinnosti_v_odhadu_%C4%8Dasu:_praktick%C3%BD_pr%C5%AFvodce&amp;action=history"/>
	<updated>2026-09-15T12:30:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki-babylonsignalis.org/index.php?title=Skryt%C3%A9_%C4%8Dinnosti_v_odhadu_%C4%8Dasu:_praktick%C3%BD_pr%C5%AFvodce&amp;diff=132436&amp;oldid=prev</id>
		<title>WilliamMcGeehan at 17:50, 21 August 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki-babylonsignalis.org/index.php?title=Skryt%C3%A9_%C4%8Dinnosti_v_odhadu_%C4%8Dasu:_praktick%C3%BD_pr%C5%AFvodce&amp;diff=132436&amp;oldid=prev"/>
		<updated>2026-08-21T17:50:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:50, 21 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Na závěr si osvojte pravidlo: commitovat byste měli &lt;/del&gt;často, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ale ideálně vždy&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;když je kód &lt;/del&gt;v &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;použitelném stavu&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Vyhnete se tak ztrátě práce &lt;/del&gt;a &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;budete mít jasnou historii&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pokud děláte něco experimentálního&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;vytvořte si větev.  In case you have any kind of questions regarding where by as well as the way &lt;/del&gt;to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;utilize [https://mdma&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Noosworx.com/index.php?title=Testov%C3%A1n%C3%AD_API_v_Postmanu:_praktick%C3%BD_pr%C5%AFvodce_pro_za%C4%8D%C3%A1te%C4%8Dn%C3%ADky_i_pokro%C4%8Dil%C3%A9 Https://Mdma.Noosworx.Com/Index.Php?Title=TestováNí_Api_V_Postmanu:_Praktický_PrůVodce_Pro_ZačáTečNíKy_I_PokročIlé]&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;it is possible to call us at our own page. Než začnete cokoli verzovat&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;rozmyslete si&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;co všechno chcete mít pod kontrolou&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Dobrá praxe je začít &lt;/del&gt;s &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;verzováním od začátku projektu&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ale pokud už máte hotový web&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;můžete ho klidně nahrát do repozitáře taky&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Hlavní &lt;/del&gt;je &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;začít &lt;/del&gt;a &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;postupně si osvojovat další funkce, jako [https://www.gameinformer&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;com/search?keyword=jsou%20tagy jsou tagy] &lt;/del&gt;pro &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;vydání &lt;/del&gt;nebo &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;porovnávání verzí&lt;/del&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Jakmile máte soubor připravený&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;proveďte &lt;/del&gt;první &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;uložení. To znamená přidat všechny soubory &lt;/del&gt;do &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;takzvané „připravené zóny&quot; &lt;/del&gt;a pak &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;je zaznamenat s krátkou, výstižnou zprávou&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Zpráva &lt;/del&gt;by &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;měla popisovat&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;co konkrétně děláte – ne něco jako „oprava&lt;/del&gt;&quot;, ale &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;třeba „přidána responzivní navigace&lt;/del&gt;&quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. Dobrá zpráva &lt;/del&gt;je &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;klíčová pro pozdější orientaci v historii. Pokud si nejste jistí&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[https://literatur&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;michaelmittag&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ch/index.php?title=Z%C3%A1sady_psan%C3%AD_%C4%8Dist%C3%A9ho_k%C3%B3du_v_JavaScriptu_pro_za%C4%8D%C3%A1te%C4%8Dn%C3%ADky_i_pokro%C4%8Dil%C3%A9 jak zařídit malou kuchyni]é soubory přidat&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;spusťte příkaz&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;který vám ukáže stav repozitáře. Zobrazí se seznam změněných&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nových i smazaných souborů&lt;/del&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Když jako vývojář dostanete návrh od designéra, často &lt;/del&gt;se &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;soustředíte hlavně na to, aby kód fungoval&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Ale výsledný produkt hodnotí uživatel podle toho&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;jak se s ním pracuje, ne podle kvality kódu&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Základní principy UI (uživatelské rozhraní) &lt;/del&gt;a &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;UX (uživatelská zkušenost) by měly být součástí vaší práce už od začátku. Nejde o to, abyste &lt;/del&gt;se &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;stali designéry, ale abyste uměli rozpoznat problematická místa a navrhnout funkční řešení&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Dalším tipem je použít normalizovaný stav&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;zejména pokud pracujete s vnořenými daty&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;To znamená ukládat entity do slovníku podle ID a v seznamech pouze odkazy &lt;/del&gt;na &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ID&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;To zjednodušuje aktualizace a vyhledávání. Pro &lt;/del&gt;to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;se hodí knihovny jako Normalizr, ale i bez nich můžete tento vzor implementovat sami&lt;/del&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Prvním krokem je rozložit &lt;/del&gt;si &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;úkol &lt;/del&gt;na &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;menší části a vědomě si &lt;/del&gt;u &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;každé z nich položit otázku: Co vše &lt;/del&gt;je &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;potřeba udělat&lt;/del&gt;, aby &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;tato část fungovala? Napište si seznam &lt;/del&gt;[https://&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;literatur&lt;/del&gt;.michaelmittag.ch/index.php?title=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Jak_mluvit_s_klientem_o_term&lt;/del&gt;%&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;C3&lt;/del&gt;%&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ADnech,_ani&lt;/del&gt;%&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;C5&lt;/del&gt;%&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;BE_byste_slibovali_nemo&lt;/del&gt;%&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;C5&lt;/del&gt;%&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;BEn&lt;/del&gt;%C3%&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;A9 rekonstrukce koupelny krok za krokem&lt;/del&gt;]&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ů&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;které nejsou přímo psaním kódu – třeba nastudování cizího kódu, příprava testovacích dat, ověření &lt;/del&gt;chování &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;na jiném prostředí. U každé položky odhadněte čas zvlášť. Tím získáte reálnější obrázek, než když budete odhadovat celý úkol jedním číslem&lt;/del&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Základem &lt;/del&gt;je &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;vyhnout &lt;/del&gt;se &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ukládání celých odpovědí z API do stavu&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Místo toho ukládejte pouze data&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;která aplikace skutečně potřebuje&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Například místo objektu s meta informacemi &lt;/del&gt;a &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;statusem si uložte pole položek &lt;/del&gt;a &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;zvlášť informaci o tom&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;zda se načítají. Tím se stav stává předvídatelnějším a snadněji se testuje&lt;/del&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Základem je pochopit&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;co uživatel očekává&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Představte si&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;že vytváříte formulář &lt;/del&gt;pro &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;registraci&lt;/del&gt;. Pokud &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;má příliš mnoho povinných polí&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;uživatel odejde&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pokud je tlačítko pro odeslání špatně viditelné&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;může ho přehlédnout. Vždy &lt;/del&gt;se &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ptejte&lt;/del&gt;: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;„Co by uživatel v tuto chvíli nejspíš chtěl udělat&lt;/del&gt;?&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot; A pak mu to co nejvíce usnadněte. Typická chyba je přidávat funkce&lt;/del&gt;, které &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nikdo nevyužije, jen proto, že to „vypadá dobře&quot;&lt;/del&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Častou chybou je ukládání stavů&lt;/del&gt;, které &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;lze odvodit z jiných dat. Například pokud máte seznam položek a chcete vědět, zda je prázdný, nemusíte ukládat isEmpty – stačí zkontrolovat délku pole. Podobně &lt;/del&gt;se &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;vyhněte ukládání časových razítek &lt;/del&gt;nebo &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;duplicitních kopií dat&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Vždy se snažte &lt;/del&gt;o &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;jeden zdroj pravdy.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Začněte tím&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;že ve svém řešení vytvoříte samostatný projekt pro testy. Nejjednodušší je použít šablonu projektu NUnit&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kterou nabízí Visual Studio &lt;/del&gt;nebo .&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;NET CLI&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Po vytvoření projektu přidejte odkaz na testovaný projekt. Následně napište první testovací třídu s atributem [TestFixture] a uvnitř ní &lt;/del&gt;metody &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;označené [Test]. Každá testovací metoda by měla ověřovat jednu konkrétní vlastnost nebo chování. Používejte pojmenování&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;které popisuje očekávaný výsledek, například &#039;Add_WithPositiveNumbers_ReturnsSum&#039;&lt;/del&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Důležité &lt;/del&gt;je &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;také správné použití mezer &lt;/del&gt;a &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;typografie. Text&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;který je nacpaný k sobě, se špatně čte&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Doporučuji držet se jednoduchých pravidel: řádkování alespoň 1&lt;/del&gt;,&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;5&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;maximálně 80 znaků &lt;/del&gt;na &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;řádek &lt;/del&gt;a &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dostatečný kontrast mezi textem a pozadím&lt;/del&gt;. Pokud &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;máte pochybnosti, použijte nástroj pro kontrolu kontrastu – je to rychlé a ušetří to uživatelům potíže. V kódu to znamená nastavit písma &lt;/del&gt;v &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;relativních jednotkách&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ne v pevných pixelech, aby se text dal zvětšit&lt;/del&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Jak &lt;/del&gt;na to&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;: redukujte počet akcí &lt;/del&gt;i &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;stavů Místo tří akcí pro každou async operaci použijte pouze dvě&lt;/del&gt;: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;jednu pro zahájení a jednu pro dokončení&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Stav pak může vypadat třeba takto: isLoading a data&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Při zahájení nastavte isLoading na true, při úspěchu na false a uložte data, při chybě na false a uložte chybovou hlášku&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Tím se redukuje počet případů&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;které musíte ošetřit v UI&lt;/del&gt;.&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RUN npm install&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Při odhadování času na vývojový úkol se snadno zaměříme na viditelné programování a zapomeneme na činnosti, které zaberou překvapivě mnoho času. Přitom právě tyto skryté činnosti &lt;/ins&gt;často &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;způsobují&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;že se odhady nedaří dodržet. Mezi ně patří například analýza zadání&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;hledání souvislostí &lt;/ins&gt;v &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;existujícím kódu, psaní testů, konfigurace prostředí, koordinace s kolegy nebo dokumentace&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pokud je do odhadu nezahrnete, bude váš plán nerealistický &lt;/ins&gt;a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;projekty skončí ve skluzu&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Než začnete psát první řádky kódu&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;stojí za &lt;/ins&gt;to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;věnovat čas výběru vývojového prostředí&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Na trhu existuje nepřeberné množství editorů a integrovaných vývojových prostředí&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;která se liší nejen vzhledem&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ale hlavně funkcemi&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;které usnadňují každodenní práci&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pokud &lt;/ins&gt;s &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pythonem začínáte, můžete snadno propadnout dojmu&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;že čím více funkcí&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;tím lépe&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Opak &lt;/ins&gt;je &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ale pravdou – příliš složité prostředí vás může zbytečně zahltit &lt;/ins&gt;a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;odradit&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Naopak minimalistický editor zase nemusí poskytnout dostatečnou podporu &lt;/ins&gt;pro &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ladění &lt;/ins&gt;nebo &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;správu balíčků&lt;/ins&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Jak strukturovat zprávu&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;aby byla čitelná Dodržujte jednoduchou strukturu: &lt;/ins&gt;první &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;řádek &lt;/ins&gt;do &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;50 znaků, prázdný řádek &lt;/ins&gt;a pak &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;podrobnosti&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;První řádek &lt;/ins&gt;by &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;měl být neimperativní&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;tedy bez „Opravit&lt;/ins&gt;&quot;, ale &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;„Oprava&lt;/ins&gt;&quot; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;– to &lt;/ins&gt;je &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;běžná konvence&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;která usnadňuje skenování historie&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Detailnější popis rozdělte na krátké odstavce&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pokud změna souvisí s číslem úkolu&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;uveďte ho hned na začátku&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ale nepoužívejte jen číslo – přidejte i slovní shrnutí&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;protože číslo samo o sobě nic neříká&lt;/ins&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Nejčastější chyby a jak &lt;/ins&gt;se &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;jim vyhnout Jednou z největších pastí je asynchronní zpracování&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pokud používáte async/await&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;vždy obalte routy do try-catch&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Jinak při chybě Express spadne &lt;/ins&gt;a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;server &lt;/ins&gt;se &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ukončí&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Alternativně použijte wrapper&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;který zachytí rejected promise&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Dále si dejte pozor &lt;/ins&gt;na &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;správné řazení middleware – pokud chcete logovat požadavky, musíte to udělat před routami&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pokud chcete ověřovat token, musíte &lt;/ins&gt;to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;udělat před ochráněnými endpointy&lt;/ins&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pozor &lt;/ins&gt;si &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dejte &lt;/ins&gt;na &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;to, že ne všechny akce jsou vždy dostupné. Někdy IDE neumí správně rozpoznat záměr, zejména &lt;/ins&gt;u &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kódu s komplexními generickými typy nebo při práci s dynamickými jazyky. V takovém případě &lt;/ins&gt;je &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;vhodné kód nejprve zjednodušit nebo refaktoring provést ručně&lt;/ins&gt;, aby &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nedošlo k poškození logiky. Vždy po provedení automatické změny spusťte testy,  If you have any queries pertaining to exactly where and how to use &lt;/ins&gt;[https://&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Literatur&lt;/ins&gt;.michaelmittag.ch/index.php?title=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Jak_vyu&lt;/ins&gt;%&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;C5&lt;/ins&gt;%&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;BE&lt;/ins&gt;%&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;C3&lt;/ins&gt;%&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ADt_modern&lt;/ins&gt;%&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;C3&lt;/ins&gt;%&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;AD_JavaScript_ve_sv&lt;/ins&gt;%C3%&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;A9_praxi návod najdete zde&lt;/ins&gt;], &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;you can get in touch with us at our own webpage. abyste zachytili případné neočekávané &lt;/ins&gt;chování.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Nejzákladnější a nejčastěji opomíjenou funkcí &lt;/ins&gt;je &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;automatické přejmenování symbolů (rename). Nejde jen o náhradu textu v souboru, ale o inteligentní změnu názvu proměnné, metody nebo třídy ve všech místech, kde &lt;/ins&gt;se &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;daný symbol používá&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;IDE při tom respektuje rozsah platnosti&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;takže nedojde k přejmenování stejně pojmenovaných lokálních proměnných&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Tento nástroj je bezpečnější &lt;/ins&gt;a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;rychlejší než ruční hledání &lt;/ins&gt;a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nahrazování&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;protože eliminuje riziko opomenutí některého výskytu&lt;/ins&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Při návrhu endpointů se vyhněte slovesům v URL. Není REST&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;když máte /getUser nebo /createUser. Místo toho použijte metodu HTTP a název zdroje&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pro získání uživatele tedy stačí GET /users/5&lt;/ins&gt;, pro &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;smazání DELETE /users/5. Dále nezapomeňte na validaci dat. Express sám o sobě žádnou nemá. Použijte knihovnu jako Joi nebo vlastní funkce&lt;/ins&gt;. Pokud &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;přijdou neplatná data&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; [https://rikkiepedia.nl/index&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;php?title=Jak_zvl%C3%A1dnout_v%C3%BDvoj_iOS_aplikac%C3%AD_ve_Swiftu úPrava Interiéru] vraťte 400 s popisem chyby. Jinak riskujete&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;že &lt;/ins&gt;se &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;vám do [https&lt;/ins&gt;:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;//WWW.Blogrollcenter.com/&lt;/ins&gt;?&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;s=datab%C3%A1ze%20dostanou databáze dostanou] nesmysly&lt;/ins&gt;, které &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;později zkazí celou aplikaci&lt;/ins&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Klávesové zkratky a rychlé akce Každé větší IDE obsahuje velké množství kontextových akcí&lt;/ins&gt;, které se &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;spouštějí klávesovou zkratkou &lt;/ins&gt;nebo &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;přes nabídku&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Typicky jde &lt;/ins&gt;o &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;operace jako „extrahovat proměnnou&quot;&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;„extrahovat metodu&quot;&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;„inline proměnnou&quot; &lt;/ins&gt;nebo &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;„změnit signaturu funkce&quot;&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Naučit se alespoň pět nejpoužívanějších zkratek výrazně zrychlí běžnou práci&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Například extrakce podmínky do samostatné &lt;/ins&gt;metody &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;může být provedena během pár sekund&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;aniž byste psali kód ručně&lt;/ins&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Typickou chybou &lt;/ins&gt;je &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;odhadovat pouze čas na samotné psaní kódu &lt;/ins&gt;a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;zapomenout na testování&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code review a opravy podle připomínek&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Zahrňte proto do odhadu i čas na napsání testů&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;jejich spuštění a případné opravy&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dále čas &lt;/ins&gt;na &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;komunikaci s kolegy při review &lt;/ins&gt;a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;na zapracování jejich zpětné vazby&lt;/ins&gt;. Pokud &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pracujete &lt;/ins&gt;v &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;týmu&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;připočtěte i čas na sdílení postupu či předávání znalostí&lt;/ins&gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Dále si zvykněte přidávat rezervu &lt;/ins&gt;na &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nečekané komplikace. I když se &lt;/ins&gt;to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;může zdát jako nafouknutí odhadu, zkušený vývojář ví, že se vždy najde něco navíc – špatně pochopený požadavek, skrytá závislost, nebo náhlá změna priorit. Doporučuji rezervu 20–30 % u středně složitých úkolů, u složitých klidně &lt;/ins&gt;i &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;více. [https&lt;/ins&gt;:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;//Www&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Paramuspost&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;com/search&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;php?query=Tato%20rezerva&amp;amp;type=all&amp;amp;mode=search&amp;amp;results=25 Tato rezerva] by měla být explicitně zmíněná v odhadu&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;abyste ji nemuseli skrývat&lt;/ins&gt;.&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WilliamMcGeehan</name></author>
	</entry>
	<entry>
		<id>https://wiki-babylonsignalis.org/index.php?title=Skryt%C3%A9_%C4%8Dinnosti_v_odhadu_%C4%8Dasu:_praktick%C3%BD_pr%C5%AFvodce&amp;diff=132427&amp;oldid=prev</id>
		<title>JuneGgg9897: Created page with &quot;&lt;br&gt;Na závěr si osvojte pravidlo: commitovat byste měli často, ale ideálně vždy, když je kód v použitelném stavu. Vyhnete se tak ztrátě práce a budete mít jasnou historii. Pokud děláte něco experimentálního, vytvořte si větev.  In case you have any kind of questions regarding where by as well as the way to utilize [https://mdma.Noosworx.com/index.php?title=Testov%C3%A1n%C3%AD_API_v_Postmanu:_praktick%C3%BD_pr%C5%AFvodce_pro_za%C4%8D%C3%A1te%C4%8Dn%C...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki-babylonsignalis.org/index.php?title=Skryt%C3%A9_%C4%8Dinnosti_v_odhadu_%C4%8Dasu:_praktick%C3%BD_pr%C5%AFvodce&amp;diff=132427&amp;oldid=prev"/>
		<updated>2026-08-21T17:50:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;br&amp;gt;Na závěr si osvojte pravidlo: commitovat byste měli často, ale ideálně vždy, když je kód v použitelném stavu. Vyhnete se tak ztrátě práce a budete mít jasnou historii. Pokud děláte něco experimentálního, vytvořte si větev.  In case you have any kind of questions regarding where by as well as the way to utilize [https://mdma.Noosworx.com/index.php?title=Testov%C3%A1n%C3%AD_API_v_Postmanu:_praktick%C3%BD_pr%C5%AFvodce_pro_za%C4%8D%C3%A1te%C4%8Dn%C...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;br&amp;gt;Na závěr si osvojte pravidlo: commitovat byste měli často, ale ideálně vždy, když je kód v použitelném stavu. Vyhnete se tak ztrátě práce a budete mít jasnou historii. Pokud děláte něco experimentálního, vytvořte si větev.  In case you have any kind of questions regarding where by as well as the way to utilize [https://mdma.Noosworx.com/index.php?title=Testov%C3%A1n%C3%AD_API_v_Postmanu:_praktick%C3%BD_pr%C5%AFvodce_pro_za%C4%8D%C3%A1te%C4%8Dn%C3%ADky_i_pokro%C4%8Dil%C3%A9 Https://Mdma.Noosworx.Com/Index.Php?Title=TestováNí_Api_V_Postmanu:_Praktický_PrůVodce_Pro_ZačáTečNíKy_I_PokročIlé], it is possible to call us at our own page. Než začnete cokoli verzovat, rozmyslete si, co všechno chcete mít pod kontrolou. Dobrá praxe je začít s verzováním od začátku projektu, ale pokud už máte hotový web, můžete ho klidně nahrát do repozitáře taky. Hlavní je začít a postupně si osvojovat další funkce, jako [https://www.gameinformer.com/search?keyword=jsou%20tagy jsou tagy] pro vydání nebo porovnávání verzí.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Jakmile máte soubor připravený, proveďte první uložení. To znamená přidat všechny soubory do takzvané „připravené zóny&amp;quot; a pak je zaznamenat s krátkou, výstižnou zprávou. Zpráva by měla popisovat, co konkrétně děláte – ne něco jako „oprava&amp;quot;, ale třeba „přidána responzivní navigace&amp;quot;. Dobrá zpráva je klíčová pro pozdější orientaci v historii. Pokud si nejste jistí, [https://literatur.michaelmittag.ch/index.php?title=Z%C3%A1sady_psan%C3%AD_%C4%8Dist%C3%A9ho_k%C3%B3du_v_JavaScriptu_pro_za%C4%8D%C3%A1te%C4%8Dn%C3%ADky_i_pokro%C4%8Dil%C3%A9 jak zařídit malou kuchyni]é soubory přidat, spusťte příkaz, který vám ukáže stav repozitáře. Zobrazí se seznam změněných, nových i smazaných souborů.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Když jako vývojář dostanete návrh od designéra, často se soustředíte hlavně na to, aby kód fungoval. Ale výsledný produkt hodnotí uživatel podle toho, jak se s ním pracuje, ne podle kvality kódu. Základní principy UI (uživatelské rozhraní) a UX (uživatelská zkušenost) by měly být součástí vaší práce už od začátku. Nejde o to, abyste se stali designéry, ale abyste uměli rozpoznat problematická místa a navrhnout funkční řešení.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Dalším tipem je použít normalizovaný stav, zejména pokud pracujete s vnořenými daty. To znamená ukládat entity do slovníku podle ID a v seznamech pouze odkazy na ID. To zjednodušuje aktualizace a vyhledávání. Pro to se hodí knihovny jako Normalizr, ale i bez nich můžete tento vzor implementovat sami.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Prvním krokem je rozložit si úkol na menší části a vědomě si u každé z nich položit otázku: Co vše je potřeba udělat, aby tato část fungovala? Napište si seznam [https://literatur.michaelmittag.ch/index.php?title=Jak_mluvit_s_klientem_o_term%C3%ADnech,_ani%C5%BE_byste_slibovali_nemo%C5%BEn%C3%A9 rekonstrukce koupelny krok za krokem]ů, které nejsou přímo psaním kódu – třeba nastudování cizího kódu, příprava testovacích dat, ověření chování na jiném prostředí. U každé položky odhadněte čas zvlášť. Tím získáte reálnější obrázek, než když budete odhadovat celý úkol jedním číslem.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Základem je vyhnout se ukládání celých odpovědí z API do stavu. Místo toho ukládejte pouze data, která aplikace skutečně potřebuje. Například místo objektu s meta informacemi a statusem si uložte pole položek a zvlášť informaci o tom, zda se načítají. Tím se stav stává předvídatelnějším a snadněji se testuje.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Základem je pochopit, co uživatel očekává. Představte si, že vytváříte formulář pro registraci. Pokud má příliš mnoho povinných polí, uživatel odejde. Pokud je tlačítko pro odeslání špatně viditelné, může ho přehlédnout. Vždy se ptejte: „Co by uživatel v tuto chvíli nejspíš chtěl udělat?&amp;quot; A pak mu to co nejvíce usnadněte. Typická chyba je přidávat funkce, které nikdo nevyužije, jen proto, že to „vypadá dobře&amp;quot;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Častou chybou je ukládání stavů, které lze odvodit z jiných dat. Například pokud máte seznam položek a chcete vědět, zda je prázdný, nemusíte ukládat isEmpty – stačí zkontrolovat délku pole. Podobně se vyhněte ukládání časových razítek nebo duplicitních kopií dat. Vždy se snažte o jeden zdroj pravdy.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Začněte tím, že ve svém řešení vytvoříte samostatný projekt pro testy. Nejjednodušší je použít šablonu projektu NUnit, kterou nabízí Visual Studio nebo .NET CLI. Po vytvoření projektu přidejte odkaz na testovaný projekt. Následně napište první testovací třídu s atributem [TestFixture] a uvnitř ní metody označené [Test]. Každá testovací metoda by měla ověřovat jednu konkrétní vlastnost nebo chování. Používejte pojmenování, které popisuje očekávaný výsledek, například &amp;#039;Add_WithPositiveNumbers_ReturnsSum&amp;#039;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Důležité je také správné použití mezer a typografie. Text, který je nacpaný k sobě, se špatně čte. Doporučuji držet se jednoduchých pravidel: řádkování alespoň 1,5, maximálně 80 znaků na řádek a dostatečný kontrast mezi textem a pozadím. Pokud máte pochybnosti, použijte nástroj pro kontrolu kontrastu – je to rychlé a ušetří to uživatelům potíže. V kódu to znamená nastavit písma v relativních jednotkách, ne v pevných pixelech, aby se text dal zvětšit.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Jak na to: redukujte počet akcí i stavů Místo tří akcí pro každou async operaci použijte pouze dvě: jednu pro zahájení a jednu pro dokončení. Stav pak může vypadat třeba takto: isLoading a data. Při zahájení nastavte isLoading na true, při úspěchu na false a uložte data, při chybě na false a uložte chybovou hlášku. Tím se redukuje počet případů, které musíte ošetřit v UI.&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>JuneGgg9897</name></author>
	</entry>
</feed>