![Using TypeScript in Node.js projects](/_next/image?url=https%3A%2F%2Fpocketbase.douglasmoura.dev%2Fapi%2Ffiles%2Fquq9xznky3sx782%2Fk1aast2dn99kp4i%2Fhalanna_halila_d_kdea_jpz5x_y_unsplash_fgC8LCPVxg.jpg&w=3840&q=75)
TypeScript is tremendously helpful while developing Node.js applications. Let's see how to configure it for a seamless development…
![Should I commit node_modules directory to git?](/_next/image?url=https%3A%2F%2Fpocketbase.douglasmoura.dev%2Fapi%2Ffiles%2Fquq9xznky3sx782%2Fki0u7azeq776w83%2Fwombat_F7ltiMWs07.webp&w=3840&q=75)
TL; DR: No. Please add node_modules to your .gitignore file:
![Mastering Insertion Sort: A Detailed Guide](/_next/image?url=https%3A%2F%2Fpocketbase.douglasmoura.dev%2Fapi%2Ffiles%2Fquq9xznky3sx782%2Ftwfdh4kcjx2dij2%2Ffleur_se2z_td_s1_mno_unsplash_pxaW63QNdl.jpg&w=3840&q=75)
Sorting is a fundamental operation in the field of computer science, and because of this, there are various algorithms available to solve…
![Introduction to algorithms](/_next/image?url=https%3A%2F%2Fpocketbase.douglasmoura.dev%2Fapi%2Ffiles%2Fquq9xznky3sx782%2Fjks565hkq0l70x6%2Fvenus_major_uc8hqc0udq_y_unsplash_2Q0AeXf9Yu.jpg&w=3840&q=75)
An algorithm is a precise and unambiguous specification of a sequence of computational steps that can be mechanically performed[^1]. From…
![Rendering JSX on the Server with Fastify](/_next/image?url=https%3A%2F%2Fpocketbase.douglasmoura.dev%2Fapi%2Ffiles%2Fquq9xznky3sx782%2F4fzg1942c3pdpqa%2Fdrew_farwell_9vk_jpfh9_anw_unsplash_jCIIZyNBdE.jpg&w=3840&q=75)
JSX is an excellent abstraction for building web interfaces. Introduced by Facebook and popularized by React, it's an extension of…
![The Powerful Programmer](/_next/image?url=https%3A%2F%2Fpocketbase.douglasmoura.dev%2Fapi%2Ffiles%2Fquq9xznky3sx782%2Fnd9xelve1838hbs%2Fmathew_schwartz_d_jb4w5hy0_oa_unsplash_Sctt6dSeGy.jpg&w=3840&q=75)
Estimating, implementing, and deploying software rapidly is a characteristic of powerful programmers, as Kent Beck mentions in his book…
![Generating MD5 hashes on Node.js](/_next/image?url=https%3A%2F%2Fpocketbase.douglasmoura.dev%2Fapi%2Ffiles%2Fquq9xznky3sx782%2Fz6z0tb5emmh8774%2Fdavid_clode_e32f_gl_issbk_unsplash_LuOM5XBUM9.jpg&w=3840&q=75)
You can create hashes in Node.js without the need to install any external library. Usually, I create the following utility function in the…
![Finding the greatest common divisor in TypeScript](/_next/image?url=https%3A%2F%2Fpocketbase.douglasmoura.dev%2Fapi%2Ffiles%2Fquq9xznky3sx782%2Fiyk9qhd9csiniy4%2Fanibal_paradisi_4_aka_nr_rfpv_e_unsplash_zs58NmjExL.jpg&w=3840&q=75)
First described in the classic geometry book Elements, by the ancient Greek mathematician Euclid (ca. 300 BC, at the book VII, proposition…
![Understanding Tail Call Optimization With JavaScript](/_next/image?url=https%3A%2F%2Fpocketbase.douglasmoura.dev%2Fapi%2Ffiles%2Fquq9xznky3sx782%2F7p0snv7xmyzymgm%2Fkrzysztof_niewolny_ox_k32a_ljxwu_unsplash_JDZUc6AjoR.jpg&w=3840&q=75)
Consider the following function that calculates the factorial of a number:
![How to calculate the border-radius of nested elements](/_next/image?url=https%3A%2F%2Fpocketbase.douglasmoura.dev%2Fapi%2Ffiles%2Fquq9xznky3sx782%2F9p7f3beb3q7rqq5%2Fsteve_harvey_7_s3t_os424o_unsplash_SvL0QgOwpT.jpg&w=3840&q=75)
The border-radius property allows you to round the edges of an element. Giving the same border-radius value to the parent element and child…