← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 160
  1. I stumbled upon something called a [sparse array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Indexed_collections#sparse_arrays) in the MDN web docs.

  2. There's a new CSS tool called [Open Props](https://open-props.style), an open-source collection of CSS variables.

  3. I just found out about this neat extension for VS Code, [Console Ninja](https://console-ninja.com).

  4. A phenomenon that's endlessly fascinating...

  5. PostgreSQL's jsonpath

    As a web and iOS developer, I often discover valuable features in PostgreSQL that can greatly improve our applications.

  6. PostgreSQL's Money Type

    When designing databases for applications that handle money transactions, choosing the right data type for currency values is crucial.

  7. Make CLI app with React

    React has been around for a while and has been adopted for many kinds of apps, not only web apps but also mobile native apps.

  8. I found a blog post that explains [how to make Next.js routing more type-safe](https://www.flightcontrol.dev/blog/fix-nextjs-routing-to-have-full-type-safety).

  9. Someone on Twitter asked what the following TypeScript custom generic actually does: ```typescript type Identity = T extends object ?

  10. The `satisfies` operator in TypeScript [has been available since TypeScript 4.9](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-9.html#the-satisfies-operator), but I hadn't had the chance to use it in my production websites until a

  11. Do you consider your code's fate when you leave a project?

  12. [Ryan Florence of Remix tweeted](https://twitter.com/ryanflorence/status/1746255053357555930) about how to close a dialog on success or to display some error messages after submitting a form with Remix's [useFetcher](https://remix.run/docs/en/main/hooks/u…

  13. Previously [I mentioned about `waitUntil` function in Next.js](/blog/wait-until-nextjs-vercel) and gave an example of updating inventory views in an e-commerce website.

  14. Have you ever pondered a simple decision, only to realize it's more complex than you thought?

  15. In the fast-paced world of web development, optimizing user experience is key.

  16. !

  17. Cron job in PostgreSQL

    !

  18. > A complex system that works is invariably found to have evolved from a simple system that worked.

  19. In the modern web, where resources and data are abundant, efficiency is key.

  20. There's this thing I've experienced **so many times**, and maybe you can relate.

  21. In the world of React development, handling HTML content requires a careful approach, particularly when it comes to injecting raw HTML into the DOM.

  22. !

  23. JavaScript is a language full of nuances and subtleties, and one of the most intriguing aspects involves the `eval` function.

  24. !

  25. Recently, a developer's tweet sparked a debate about Next.js's approach to simplifying its API, particularly regarding the [headers](https://nextjs.org/docs/app/api-reference/functions/headers#headers) and [cookies](https://nextjs.org/docs/app/api-referen…

  26. Several months back, I experienced a sudden crash in [my pull request on the Monika project](https://github.com/hyperjumptech/monika/pull/1165), which caught my team off guard during the PR review, as noted in this [issue comment](https://github.com/hyper…

  27. Last week in one of our projects in Hyperjump, we discovered a [React hydration error](https://nextjs.org/docs/messages/react-hydration-error) in one of our pull request changes.

  28. Here's one thing you must always remember when making website with Next.js with [App Router](https://nextjs.org/docs/app).

  29. Recently there's some people on [Twitter](https://twitter.com/2co_p) sharing a free Mac app that can compress video significantly while maintaining quality.

  30. !

  31. !

  32. Few years ago I made this little project to solve my own problem.

  33. !

  34. Welcome to the cutting-edge world of web development, where Next.js continues to push the boundaries!

  35. Today I received a pull request, like the following ```typescript const SomeComponent = () => { const [isStatusPageModalOpen, setIsStatusPageModalOpen] = useState(false) const [isEditProbeModalOpen, setIsEditProbeModalOpen] = useState(false) const [isDele…

  36. A PR was made like the following ```typescript import { useRouter } from 'next/router'; const SomeComponent = () => { const router = useRouter() return ( { router.push(`/link/to/another/page`) }>Go to somewhere ) } ``` Few problems with that code: 1.

  37. Person: - what does 'discriminated union' mean?

  38. A PR was made, something like this: ```typescript // next.js getServerSideProps export const getServerSideProps = async (ctx) => { const { valid, event } = await isValidEvent({ organizationSlug, projectSlug, probeSlug, eventSlug, userID: ctx.user?.

  39. A PR was made, something like this: ```typescript const data = [ { question: 'How are you?'

  40. !

  41. !

  42. !

  43. --- **UPDATE May 11, 2020** As of version 9.4, [NextJS finally has proper environment variables support](https://nextjs.org/blog/next-9-4#new-environment-variables-support).

  44. # Why write tests As a software developer, it is always exciting to see the code I wrote runs on the desktop browser or on the iPhone/android devices.

  45. !

  46. !

  47. 2019 Year In Review

    At the end of 2018, I summarized the year as [the year of gaming and traveling for me](https://nico.fyi/articles/look-back-2018/).

  48. Few days ago, someone tweeted about this online document from Apple called [Apple Style Guide](https://help.apple.com/applestyleguide/).

  49. # Scenario Say we need to make a React component that has following requirements: - Fetch data from network when it's first mounted and show the fetched data if succeeds - Show loading indicator while fetching - Show error message if fetch fails - Show a…

  50. !