- vừa được xem lúc

Time… a programmer's worst enemy // The Code Report

0 0 19

Người đăng: Fireship

Keeping track of time is complicated for programmers due to leap seconds, timezones, and the weirdly designed Gregorian calendar. A new bill is going through congress to make daylight savings time permanent - here's what that could mean for developers.

#compsci #programming #TheCodeReport

🔗 Resources

Daylight Savings Bill https://www.reuters.com/world/us/us-senate-approves-bill-that-would-make-daylight-savings-time-permanent-2023-2022-03-15/
Try the Temporal API https://tc39.es/proposal-temporal/docs/
Why JS Dates Suck https://maggiepint.com/2017/04/09/fixing-javascript-date-getting-started/

🔥 Get More Content - Upgrade to PRO

Upgrade to Fireship PRO at https://fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.

🎨 My Editor Settings

- Atom One Dark
- vscode-icons
- Fira Code Font

🔖 Topics Covered

- How do timezones work?
- What is a 13 month calendar?
- What is the Gregorian calendar?
- Timezones explained for programmers
- How to use JavaScript Temporal API
- What are the most hated features in JavaScript?

Bình luận

Bài viết tương tự

- vừa được xem lúc

Quy hoạch động - một thuật toán thần thánh

. Bài viết gốc: https://manhhomienbienthuy.bitbucket.io/2017/Aug/24/algorithm-dynamic-programming.html (đã xin phép tác giả ).

0 0 39

- vừa được xem lúc

"this" trong JavaScript

Bài viết gốc: https://manhhomienbienthuy.bitbucket.io/2016/Mar/28/understanding-and-mastering-javascripts-this-keyword.html.

0 0 22

- vừa được xem lúc

Tìm hiểu về Dotfiles

Đã bao giờ vào 1 ngày đẹp trời, máy tính của chúng ta bỗng tự nhiên lăn đùng ra chết. Và sau đó ta phải cài lại 1 hệ điều hành mới, toàn bộ phần mềm, setting cho các chương trình cũ đều bị mất? Chúng

0 0 32

- vừa được xem lúc

Async Await try-catch hell

Async Await is heaven... until error handling comes into play. Learn how to avoid try/catch hell when writing async JavaScript code

0 0 67

- vừa được xem lúc

25 VS Code Productivity Tips and Speed Hacks

Learn 25 VS Code tips and tricks that will help you write code faster. Try out awesome new features and extensions that turn your editor into a full-blown IDE. https://fireship.io/pro.

0 0 45

- vừa được xem lúc

Closures Explained in 100 Seconds // Tricky JavaScript Interview Prep

What is a JavaScript Closure? Learn the how closures allow functions to "remember" outside their local scope https://fireship.io/tags/javascript/. . #js #programming #100SecondsOfCode.

0 0 21