Z poniższego tekstu usuń fragmenty zaczynające się od [ i kończące się na ], a następnie usuń entery.
[00:00.000 --> 00:06.300] The worst part about being a front-end developer is developing UIs, which also happens to be 100% of the job.
[00:06.300 --> 00:12.040] Web developers have tried to make things easier with countless UI libraries like Bootstrap, Material, and so on,
[00:12.040 --> 00:16.540] but recently, ShadCN, the hottest UI framework in the front-end world recently,
[00:16.540 --> 00:19.600] released a major update that makes it way overpowered.
[00:19.600 --> 00:21.540] And it's nothing like you've ever seen before.
[00:21.540 --> 00:25.840] The only way I can think to describe it is like if Ruby on Rails and Skynet had a baby
[00:25.840 --> 00:29.500] who grew up and got jacked on steroids and then got into front-end web development.
[00:29.500 --> 00:35.540] When I started this channel back in 2017, my goal was to make tutorials like this Facebook-style emoji reaction thing.
[00:35.540 --> 00:40.740] The code for that video took the better part of a day, but now I can build an even better one in like 30 seconds.
[00:40.740 --> 00:44.840] In today's video, you'll learn how to build a custom front-end website faster than ever.
[00:44.840 --> 00:49.440] But with great power comes great trade-offs, and we'll also look at the drawbacks of this approach.
[00:49.440 --> 00:52.940] It is September 5th, 2024, and you're watching The Code Report.
[00:52.940 --> 00:57.540] Last week, I ran a poll about Vercel, and thousands of people agree that it's the best front-end cloud.
[00:57.540 --> 01:01.280] This video is not sponsored by them, nor have they sponsored any of my past videos.
[01:01.280 --> 01:07.980] And that's why I can tell you that yesterday, Vercel took a pretty big L when it was revealed that ChatGPT switched from Next.js to Remix.
[01:07.980 --> 01:12.540] Despite that, Vercel did make a really good move by hiring the developer behind ShadCN.
[01:12.540 --> 01:15.980] And now, as we'll see, it's tightly integrated into the Vercel ecosystem.
[01:15.980 --> 01:21.240] ShadCN is a component or UI library, but it's a lot different than most other libraries like Bootstrap.
[01:21.240 --> 01:25.580] Instead of installing a massive library of components into your node modules and importing them,
[01:25.580 --> 01:29.340] you copy and paste the code for each individual component into your own project,
[01:29.340 --> 01:33.420] which allows you to use things a la carte and makes it easier to customize the code.
[01:33.420 --> 01:38.640] It sounds chaotic, but it's based on primitives like Radix and Tailwind, which keep things looking consistent.
[01:38.640 --> 01:43.680] Pretty cool, but its killer new feature landed in the CLI in the form of a component registry.
[01:43.680 --> 01:50.520] Like, you can run ShadCN add data table or ShadCN add carousel to easily add those components to your project,
[01:50.520 --> 01:52.280] and it works with all the major frameworks.
[01:52.280 --> 01:53.980] But here's where things get really crazy.
[01:54.020 --> 01:58.980] Vercel also runs this service called v0, which is an AI chatbot for building UIs.
[01:58.980 --> 02:06.480] Like, all you do is ask it for a button, and it'll return something that looks just as good as any A16Z-funded startup with a $100 million valuation.
[02:06.480 --> 02:11.420] If we look at the code, though, what you'll notice it's doing is relying on the existing ShadCN button.
[02:11.420 --> 02:15.220] It then AI generates some extra Tailwind slot, and the end result is pretty nice.
[02:15.220 --> 02:16.580] That's not the crazy part, though.
[02:16.580 --> 02:21.380] If we click on this install button up here, we'll have a command to ShadCN add this to our project.
[02:21.380 --> 02:25.880] It'll automatically copy that code into our project and bring in any necessary dependencies.
[02:25.880 --> 02:28.180] And now we have a cool custom button we can use anywhere.
[02:28.180 --> 02:32.320] And not just that, but these URLs can also be made public to be shared with anyone,
[02:32.320 --> 02:36.020] and you could even build up your own standard library of ShadCN components.
[02:36.020 --> 02:41.020] If you drink the ShadCN Kool-Aid and then combine it with other AI tools like Copilot or Cursor,
[02:41.020 --> 02:46.120] you can build UIs 10 times faster than you could just a few months ago, and they actually look halfway decent.
[02:46.160 --> 02:49.520] The end result might look exactly the same as all your friends' side projects,
[02:49.520 --> 02:51.720] but at least it didn't take you six months to build.
[02:51.720 --> 02:55.320] But the AI haters out there will tell you to never touch any of these tools.
[02:55.320 --> 02:59.760] They'll make your programming skills go flaccid, and their garbage code will eventually backfire on you.
[02:59.760 --> 03:03.460] But the reality is that just a few years ago, you'd have to solve many of these problems
[03:03.460 --> 03:07.960] by going dumpster diving for code on blogs or humiliate yourself with a Stack Overflow question.
[03:07.960 --> 03:11.760] But nowadays you have people building to-do apps in their Teslas in the IKEA parking lot.
[03:11.760 --> 03:15.760] The AI performance gains are real, but they have to be used carefully and deliberately
[03:15.760 --> 03:17.760] to avoid unnecessary complexity.
[03:17.760 --> 03:22.060] I don't think tech like this will replace actual front-end developers, but here's my prediction.
[03:22.060 --> 03:25.960] In the near future, I think developers will care less about the ergonomics of a framework,
[03:25.960 --> 03:29.360] like the syntax differences between Angular React, Vue, and Svelte,
[03:29.360 --> 03:32.560] and care more about how quickly and reliably they can generate stuff.
[03:32.560 --> 03:35.760] Like, I wouldn't be surprised if we see a prompt-based UI framework.
[03:35.760 --> 03:38.360] Oh, wait a minute, it actually looks like someone already built that.
[03:38.360 --> 03:39.560] This has been The Code Report.
[03:39.560 --> 03:41.960] Thanks for watching, and I will see you in the next one.
Assistant
The worst part about being a front-end developer is developing UIs, which also happens to be 100% of the job. Web developers have tried to make things easier with countless UI libraries like Bootstrap, Material, and so on, but recently, ShadCN, the hottest UI framework in the front-end world recently, released a major update that makes it way overpowered. And it's nothing like you've ever seen before. The only way I can think to describe it is like if Ruby on Rails and Skynet had a baby who grew up and got jacked on steroids and then got into front-end web development. When I started this channel back in 2017, my goal was to make tutorials like this Facebook-style emoji reaction thing. The code for that video took the better part of a day, but now I can build an even better one in like 30 seconds. In today's video, you'll learn how to build a custom front-end website faster than ever. But with great power comes great trade-offs, and we'll also look at the drawbacks of this approach. It is September 5th, 2024, and you're watching The Code Report. Last week, I ran a poll about Vercel, and thousands of people agree that it's the best front-end cloud. This video is not sponsored by them, nor have they sponsored any of my past videos. And that's why I can tell you that yesterday, Vercel took a pretty big L when it was revealed that ChatGPT switched from Next.js to Remix. Despite that, Vercel did make a really good move by hiring the developer behind ShadCN. And now, as we'll see, it's tightly integrated into the Vercel ecosystem. ShadCN is a component or UI library, but it's a lot different than most other libraries like Bootstrap. Instead of installing a massive library of components into your node modules and importing them, you copy and paste the code for each individual component into your own project, which allows you to use things a la carte and makes it easier to customize the code. It sounds chaotic, but it's based on primitives like Radix and Tailwind, which keep things looking consistent. Pretty cool, but its killer new feature landed in the CLI in the form of a component registry. Like, you can run ShadCN add data table or ShadCN add carousel to easily add those components to your project, and it works with all the major frameworks. But here's where things get really crazy. Vercel also runs this service called v0, which is an AI chatbot for building UIs. Like, all you do is ask it for a button, and it'll return something that looks just as good as any A16Z-funded startup with a $100 million valuation. If we look at the code, though, what you'll notice it's doing is relying on the existing ShadCN button. It then AI generates some extra Tailwind slot, and the end result is pretty nice. That's not the crazy part, though. If we click on this install button up here, we'll have a command to ShadCN add this to our project. It'll automatically copy that code into our project and bring in any necessary dependencies. And now we have a cool custom button we can use anywhere. And not just that, but these URLs can also be made public to be shared with anyone, and you could even build up your own standard library of ShadCN components. If you drink the ShadCN Kool-Aid and then combine it with other AI tools like Copilot or Cursor, you can build UIs 10 times faster than you could just a few months ago, and they actually look halfway decent. The end result might look exactly the same as all your friends' side projects, but at least it didn't take you six months to build. But the AI haters out there will tell you to never touch any of these tools. They'll make your programming skills go flaccid, and their garbage code will eventually backfire on you. But the reality is that just a few years ago, you'd have to solve many of these problems by going dumpster diving for code on blogs or humiliate yourself with a Stack Overflow question. But nowadays you have people building to-do apps in their Teslas in the IKEA parking lot. The AI performance gains are real, but they have to be used carefully and deliberately to avoid unnecessary complexity. I don't think tech like this will replace actual front-end developers, but here's my prediction. In the near future, I think developers will care less about the ergonomics of a framework, like the syntax differences between Angular React, Vue, and Svelte, and care more about how quickly and reliably they can generate stuff. Like, I wouldn't be surprised if we see a prompt-based UI framework. Oh, wait a minute, it actually looks like someone already built that. This has been The Code Report. Thanks for watching, and I will see you in the next one.
User
Rób to samo z każdym fragmentem, który Ci teraz podeślę, ok?
Assistant
Oczywiście! Podsyłaj fragmenty tekstu, a ja je przetworzę zgodnie z Twoimi instrukcjami.
User
[00:00.000 --> 00:04.480] There's only two types of people in this world, the conformist API consumer and the
[00:04.480 --> 00:06.000] renegade web scraper.
[00:06.000 --> 00:09.720] It's always been a bit of a gray area to write code that automatically extracts valuable
[00:09.720 --> 00:12.760] data from websites, but will you go to jail if you do it?
[00:12.760 --> 00:14.640] You're stealing right to jail.
[00:14.640 --> 00:18.720] I refuse to go back to jail, but I'm literally shaking right now because the U.S. District
[00:18.720 --> 00:23.600] Court in Delaware just ruled that Booking.com violated the Computer Fraud and Abuse Act
[00:23.600 --> 00:26.000] by scraping the Ryanair website.
[00:26.000 --> 00:30.340] Booking tried to countersue for defamation because Ryanair hurt the corporation's feelings
[00:30.340 --> 00:34.420] by calling them an OTA pirate or online travel agency pirate.
[00:34.420 --> 00:37.880] Not surprisingly, the court rejected that claim, but this is not the first time that
[00:37.880 --> 00:39.640] web scrapers have battled in court.
[00:39.640 --> 00:43.500] In today's video, we'll look at the legal and ethical concerns in this case and find
[00:43.500 --> 00:46.200] out if my web scraping tutorials will land you in jail.
[00:46.200 --> 00:50.080] It is July 26, 2024 and you're watching The Code Report.
[00:50.080 --> 00:54.320] In this weird cybernetic post-human world, data has become more valuable than gold.
[00:54.320 --> 00:58.640] Google and Meta are both trillion-dollar companies built almost exclusively by collecting
[00:58.640 --> 01:01.920] data from users to be exploited by advertisers.
[01:01.920 --> 01:06.800] For the last 30 years, humans have voluntarily and involuntarily filled the World Wide Web
[01:06.800 --> 01:11.440] with exabytes of data about our crappy lives, and much of this data is freely available
[01:11.440 --> 01:13.400] through the lens of a web browser.
[01:13.400 --> 01:18.580] But the problem is that the raw data is trapped inside a rock of HTML code, rendering it useless
[01:18.580 --> 01:20.080] for data analysis.
[01:20.080 --> 01:24.800] The data becomes valuable, though, when it's mined into a clean universal format like JSON
[01:24.800 --> 01:29.840] or CSV that can be fed into machine learning tools like XGBoost or sold to data brokers
[01:29.840 --> 01:30.840] on the black market.
[01:30.840 --> 01:32.640] And that's where web scraping comes in.
[01:32.640 --> 01:37.040] I've made tutorials about how to do it at an industrial scale, using tools like Puppeteer,
[01:37.040 --> 01:40.800] which can render the content on a website programmatically, click on buttons, fill
[01:40.800 --> 01:43.600] out forms, and ultimately extract valuable data.
[01:43.600 --> 01:48.100] Despite content being freely available, like Amazon product listings, for example, many
[01:48.580 --> 01:52.480] website owners don't like to be scraped and forbid this behavior in their Terms of Service
[01:52.480 --> 01:54.460] and robots.txt file.
[01:54.460 --> 01:57.320] But this file is like the no smoking signs on an airplane.
[01:57.320 --> 02:01.060] It doesn't actually stop anything from happening, and you can easily enjoy a cigarette on a
[02:01.060 --> 02:02.820] plane, just like the good old days.
[02:02.820 --> 02:06.620] However, the flight attendant might come over to you and tell you to stop doing that and
[02:06.620 --> 02:08.660] ban you from the airline.
[02:08.660 --> 02:13.540] Website owners can do the same thing by banning your IP address if they suspect you're a scraper.
[02:13.540 --> 02:18.260] Now to bypass this ban, a smoker can change his identity, re-board the plane, and take
[02:18.260 --> 02:19.700] a few more drags.
[02:19.700 --> 02:25.020] Web scrapers can do the same thing by rotating their IP addresses via residential proxy networks,
[02:25.020 --> 02:28.560] making it look like the traffic is coming from normal people around the world.
[02:28.560 --> 02:31.820] But this brings up some pretty deep moral and ethical concerns.
[02:31.820 --> 02:36.260] On one hand, the data is freely available, and it's not exactly theft because the website
[02:36.260 --> 02:37.900] owner hasn't lost anything.
[02:37.900 --> 02:39.920] It's just like piracy is not theft.
[02:39.920 --> 02:42.040] Not everyone agrees with this philosophy, though.
[02:42.040 --> 02:46.360] One could argue that exploiting someone else's data for profit could violate that person's
[02:46.360 --> 02:47.360] copyrights.
[02:47.360 --> 02:51.620] In the case of Booking vs. Ryanair, Booking was not only scraping the website, but also
[02:51.620 --> 02:55.480] reselling Ryanair tickets for a profit without their authorization.
[02:55.480 --> 02:59.080] Not only was there web scraping going on, but also the intent to defraud.
[02:59.080 --> 03:02.840] Now if you're a scraper, the law you'll want to talk to your lawyer about is the Computer
[03:02.840 --> 03:07.920] Fraud and Abuse Act, or CFAA, which was enacted all the way back in 1986.
[03:07.920 --> 03:13.020] In 2015, a company called 3Taps was scraping data from Craigslist for a website called
[03:13.020 --> 03:14.280] PadMapper.
[03:14.280 --> 03:18.720] Craig was not too happy about this and blocked their IP addresses and sent a seasoned assist
[03:18.720 --> 03:19.720] letter.
[03:19.720 --> 03:21.800] But the company continued to scrape until they were sued.
[03:21.800 --> 03:26.560] The court sided with Craigslist and set the precedent that online hosts can use the CFAA
[03:26.560 --> 03:27.960] to protect public data.
[03:27.960 --> 03:32.280] Ultimately, 3Taps agreed to never scrape Craig again and pay $1 million.
[03:32.280 --> 03:35.960] The bottom line is that if a company tells you to stop scraping, you have to stop or
[03:35.960 --> 03:37.160] you could be sued.
[03:37.160 --> 03:41.720] But in 2019, there was another high profile case, HiQ Labs versus LinkedIn.
[03:41.720 --> 03:44.880] They scraped data from LinkedIn trying to predict when an employee would leave their
[03:44.880 --> 03:45.880] job.
[03:45.880 --> 03:48.240] And LinkedIn also sent them a seasoned assist.
[03:48.240 --> 03:52.500] However, this time, the court ruled in favor of HiQ, allowing them to access LinkedIn's
[03:52.500 --> 03:53.500] public data.
[03:53.500 --> 03:56.400] And that decision was ultimately affirmed by the Supreme Court.
[03:56.400 --> 03:59.000] And just a couple weeks ago, scrapers got another big win.
[03:59.000 --> 04:02.720] If you're building an AI tool like GitHub Copilot and scrape a bunch of open source
[04:02.720 --> 04:04.760] code to train it, you should be good to go.
[04:04.760 --> 04:09.160] This lawsuit that says Copilot ignores the licenses and violates the rights of possibly
[04:09.160 --> 04:13.300] millions of software developers was dismissed by a judge with prejudice, which means it
[04:13.300 --> 04:14.440] can't be refiled.
[04:14.440 --> 04:18.480] And that brings us back to our original question, will I go to jail for scraping a website?
[04:18.480 --> 04:22.600] Well, I'm no lawyer, but if you're accessing publicly available data and not defrauding
[04:22.600 --> 04:25.400] anyone, the chances of going to jail are extremely low.
[04:25.400 --> 04:28.560] And the only thing to worry about is being sued by a mega corporation that cripples you
[04:28.560 --> 04:30.440] financially for the rest of your life.
[04:30.440 --> 04:31.440] This has been The Code Report.
[04:31.440 --> 04:33.680] Thanks for watching and I will see you in the next one.
Assistant
There's only two types of people in this world, the conformist API consumer and the renegade web scraper. It's always been a bit of a gray area to write code that automatically extracts valuable data from websites, but will you go to jail if you do it? You're stealing right to jail. I refuse to go back to jail, but I'm literally shaking right now because the U.S. District Court in Delaware just ruled that Booking.com violated the Computer Fraud and Abuse Act by scraping the Ryanair website. Booking tried to countersue for defamation because Ryanair hurt the corporation's feelings by calling them an OTA pirate or online travel agency pirate. Not surprisingly, the court rejected that claim, but this is not the first time that web scrapers have battled in court. In today's video, we'll look at the legal and ethical concerns in this case and find out if my web scraping tutorials will land you in jail. It is July 26, 2024 and you're watching The Code Report. In this weird cybernetic post-human world, data has become more valuable than gold. Google and Meta are both trillion-dollar companies built almost exclusively by collecting data from users to be exploited by advertisers. For the last 30 years, humans have voluntarily and involuntarily filled the World Wide Web with exabytes of data about our crappy lives, and much of this data is freely available through the lens of a web browser. But the problem is that the raw data is trapped inside a rock of HTML code, rendering it useless for data analysis. The data becomes valuable, though, when it's mined into a clean universal format like JSON or CSV that can be fed into machine learning tools like XGBoost or sold to data brokers on the black market. And that's where web scraping comes in. I've made tutorials about how to do it at an industrial scale, using tools like Puppeteer, which can render the content on a website programmatically, click on buttons, fill out forms, and ultimately extract valuable data. Despite content being freely available, like Amazon product listings, for example, many website owners don't like to be scraped and forbid this behavior in their Terms of Service and robots.txt file. But this file is like the no smoking signs on an airplane. It doesn't actually stop anything from happening, and you can easily enjoy a cigarette on a plane, just like the good old days. However, the flight attendant might come over to you and tell you to stop doing that and ban you from the airline. Website owners can do the same thing by banning your IP address if they suspect you're a scraper. Now to bypass this ban, a smoker can change his identity, re-board the plane, and take a few more drags. Web scrapers can do the same thing by rotating their IP addresses via residential proxy networks, making it look like the traffic is coming from normal people around the world. But this brings up some pretty deep moral and ethical concerns. On one hand, the data is freely available, and it's not exactly theft because the website owner hasn't lost anything. It's just like piracy is not theft. Not everyone agrees with this philosophy, though. One could argue that exploiting someone else's data for profit could violate that person's copyrights. In the case of Booking vs. Ryanair, Booking was not only scraping the website, but also reselling Ryanair tickets for a profit without their authorization. Not only was there web scraping going on, but also the intent to defraud. Now if you're a scraper, the law you'll want to talk to your lawyer about is the Computer Fraud and Abuse Act, or CFAA, which was enacted all the way back in 1986. In 2015, a company called 3Taps was scraping data from Craigslist for a website called PadMapper. Craig was not too happy about this and blocked their IP addresses and sent a seasoned assist letter. But the company continued to scrape until they were sued. The court sided with Craigslist and set the precedent that online hosts can use the CFAA to protect public data. Ultimately, 3Taps agreed to never scrape Craig again and pay $1 million. The bottom line is that if a company tells you to stop scraping, you have to stop or you could be sued. But in 2019, there was another high profile case, HiQ Labs versus LinkedIn. They scraped data from LinkedIn trying to predict when an employee would leave their job. And LinkedIn also sent them a seasoned assist. However, this time, the court ruled in favor of HiQ, allowing them to access LinkedIn's public data. And that decision was ultimately affirmed by the Supreme Court. And just a couple weeks ago, scrapers got another big win. If you're building an AI tool like GitHub Copilot and scrape a bunch of open source code to train it, you should be good to go. This lawsuit that says Copilot ignores the licenses and violates the rights of possibly millions of software developers was dismissed by a judge with prejudice, which means it can't be refiled. And that brings us back to our original question, will I go to jail for scraping a website? Well, I'm no lawyer, but if you're accessing publicly available data and not defrauding anyone, the chances of going to jail are extremely low. And the only thing to worry about is being sued by a mega corporation that cripples you financially for the rest of your life. This has been The Code Report. Thanks for watching and I will see you in the next one.
User
[00:00.000 --> 00:05.600] You know that feeling when your alarm clock wakes you up at 6am and you have to go to work again because you didn't die in your sleep?
[00:05.600 --> 00:06.620] Well, you're not alone.
[00:06.620 --> 00:12.420] 80% of professional developers know this feeling according to the 2024 Stack Overflow survey results.
[00:12.420 --> 00:18.260] One in three programmers actively hate their job, while nearly half are just plowing through life shackled to their comfort zone.
[00:18.260 --> 00:21.160] And that leaves only 20% with delusions of happiness.
[00:21.160 --> 00:25.900] Personally, I could pound my keyboard all day and be happy, and that's why I found these results quite shocking.
[00:25.900 --> 00:35.200] Programmers are well paid, get tons of vacation, can work remote, and even when forced back into the office, they usually have nap pods and adult ball pits to help ward off depression.
[00:35.200 --> 00:36.700] But apparently that's not enough.
[00:36.700 --> 00:47.500] In today's video, we'll dissect the brain of the modern code monkey and examine its weird environment to find the truth about why farmers and plumbers are statistically more happy, and most importantly, what you can do to cope about it.
[00:47.500 --> 00:51.300] It is July 29th, 2024, and you're watching The Code Report.
[00:51.400 --> 01:02.600] Last week, the Stack Overflow annual survey was released with over 65,000 responses from professional developers around the world, and it contains a ton of surprising insights about the current state of programmers and technology.
[01:02.600 --> 01:10.400] Not only will we look at this data, but also anecdotes from strangers on the internet to shed light on the underappreciated problems faced by those who code.
[01:10.400 --> 01:11.600] Reason number one.
[01:11.600 --> 01:12.900] Dollar dollar bills, y'all.
[01:12.900 --> 01:15.200] Money can't buy happiness, but let's be real.
[01:15.200 --> 01:17.400] You've never seen anyone cry while driving a Lambo.
[01:17.400 --> 01:20.400] Programmers are well paid, but not as well paid as you might think.
[01:20.500 --> 01:24.400] They say if you learn PHP, you're guaranteed a Lambo, but here's a reality check.
[01:24.400 --> 01:31.600] PHP is almost the lowest paid language with a median salary of 49k, and to make matters worse, this was a decline from last year.
[01:31.600 --> 01:36.600] The reality is that every PHP millionaire, like Zuck or Levels, is also an entrepreneur.
[01:36.600 --> 01:45.400] The actual problem with PHP is that it's popular, and you'll notice that less popular specialized languages like Erlang and low-level languages like Rust earn better salaries.
[01:45.400 --> 01:53.200] The best way to make more money, though, is to simply respawn in the United States, where salaries are higher, or learn how to talk to people so you can become a manager someday.
[01:53.200 --> 02:01.000] Paradoxically, though, the depression rates are much higher in the United States than, say, Southeast Asia, so maybe it is true that money doesn't actually buy happiness.
[02:01.000 --> 02:04.700] If you're getting into programming just for the money, you might want to rethink that plan.
[02:04.700 --> 02:05.900] Reason number two.
[02:05.900 --> 02:06.900] Technical debt.
[02:06.900 --> 02:13.200] The number one shared frustration among professional developers is technical debt, and this is what technical debt actually looks like.
[02:13.200 --> 02:19.500] This codebase is ugly and flawed, but it gets the job done, so we'll just keep building on top of it because starting over is too hard.
[02:19.500 --> 02:32.000] This process goes on for years and decades until the codebase is filled with to-do-I-ll-fix-it-later comments, and when you run get-blamed to find out why the build fails when you remove this one line of code, it pulls up the obituary of some guy who worked there eight years ago.
[02:32.000 --> 02:34.700] That means the best thing to do is just not touch this code.
[02:34.700 --> 02:39.200] We all want to do good work, but it's nearly impossible when faced with soul-sucking technical debt.
[02:39.200 --> 02:40.500] But what can you do about it?
[02:40.500 --> 02:42.400] Well, to be honest, pretty much nothing.
[02:42.400 --> 02:47.800] It's no one programmer's fault, but a systemic issue caused by reason number three, hustle-or-die culture.
[02:47.800 --> 02:59.900] As you write code, you've got tech lead pressuring you to close out all these tickets before the end of the sprint, who's being pressured by the engineering manager to ship this product by the end of the quarter, who's being pressured by the VP to execute on the product strategy,
[02:59.900 --> 03:09.800] who's being pressured by the CEO to jack up revenue, who's being pressured by BlackRock to beat earnings, who's being pressured by anonymous deep state trillionaires to fund interdimensional wars beyond your comprehension.
[03:09.800 --> 03:18.200] The machine has to keep moving and all this pressure is eventually released through the boots on the ground software engineers, which come in the form of unrealistic timelines and expectations.
[03:18.200 --> 03:20.400] Now, what you can do about it is quit your job.
[03:20.400 --> 03:27.600] The turnover rate among software engineers is extremely high because unlike many other industries, you can often make a lot more money by switching jobs.
[03:27.600 --> 03:33.000] But you still might not be happy if you end up working for a corporate dinosaur where you become nothing more than a cog.
[03:33.000 --> 03:37.700] Many companies are so bloated with bureaucracy that it becomes nearly impossible to get anything done.
[03:37.800 --> 03:45.700] When programmers have to go to meetings to schedule pre-meetings to discuss the agenda for the upcoming meeting about last week's meeting, they start to become disillusioned.
[03:45.700 --> 03:52.000] Viktor Frankl showed us how a man can find meaning in life despite the most horrific of circumstances, like an extermination camp.
[03:52.000 --> 03:57.600] But he never had to get programming work done between seven meetings with product managers who have conflicting requirements.
[03:57.600 --> 04:04.400] Meetings might kill your focus, but ultimately, it's hard to be happy if you feel like your work is contributing nothing of value to the world.
[04:04.400 --> 04:11.200] Now, even if you have a great job, a great salary, and a great boss, you'll probably get laid off around the age of 25 when you become too old to cope.
[04:11.200 --> 04:15.800] All the recent layoffs and the hangover from the COVID boom has blackpilled a large segment of the industry.
[04:15.800 --> 04:18.600] But programming can also be very unhealthy physically.
[04:18.600 --> 04:22.600] According to science, being chained to a chair all day is more unhealthy than smoking.
[04:22.600 --> 04:27.500] But also according to science, exercise is one of the best, if not the best, medicine for depression.
[04:27.500 --> 04:29.000] So that's an easy bug to fix.
[04:29.000 --> 04:38.800] But even if it is true that 80% of programmers are not happy, the best way to cope is to realize that out of suffering have emerged the strongest souls, and the most massive characters are seared with scars.
[04:38.800 --> 04:42.600] This has been The Code Report. Thanks for watching, and I will see you in the next one.
Assistant
You know that feeling when your alarm clock wakes you up at 6am and you have to go to work again because you didn't die in your sleep? Well, you're not alone. 80% of professional developers know this feeling according to the 2024 Stack Overflow survey results. One in three programmers actively hate their job, while nearly half are just plowing through life shackled to their comfort zone. And that leaves only 20% with delusions of happiness. Personally, I could pound my keyboard all day and be happy, and that's why I found these results quite shocking. Programmers are well paid, get tons of vacation, can work remote, and even when forced back into the office, they usually have nap pods and adult ball pits to help ward off depression. But apparently that's not enough. In today's video, we'll dissect the brain of the modern code monkey and examine its weird environment to find the truth about why farmers and plumbers are statistically more happy, and most importantly, what you can do to cope about it. It is July 29th, 2024, and you're watching The Code Report. Last week, the Stack Overflow annual survey was released with over 65,000 responses from professional developers around the world, and it contains a ton of surprising insights about the current state of programmers and technology. Not only will we look at this data, but also anecdotes from strangers on the internet to shed light on the underappreciated problems faced by those who code. Reason number one. Dollar dollar bills, y'all. Money can't buy happiness, but let's be real. You've never seen anyone cry while driving a Lambo. Programmers are well paid, but not as well paid as you might think. They say if you learn PHP, you're guaranteed a Lambo, but here's a reality check. PHP is almost the lowest paid language with a median salary of 49k, and to make matters worse, this was a decline from last year. The reality is that every PHP millionaire, like Zuck or Levels, is also an entrepreneur. The actual problem with PHP is that it's popular, and you'll notice that less popular specialized languages like Erlang and low-level languages like Rust earn better salaries. The best way to make more money, though, is to simply respawn in the United States, where salaries are higher, or learn how to talk to people so you can become a manager someday. Paradoxically, though, the depression rates are much higher in the United States than, say, Southeast Asia, so maybe it is true that money doesn't actually buy happiness. If you're getting into programming just for the money, you might want to rethink that plan. Reason number two. Technical debt. The number one shared frustration among professional developers is technical debt, and this is what technical debt actually looks like. This codebase is ugly and flawed, but it gets the job done, so we'll just keep building on top of it because starting over is too hard. This process goes on for years and decades until the codebase is filled with to-do-I'll-fix-it-later comments, and when you run get-blamed to find out why the build fails when you remove this one line of code, it pulls up the obituary of some guy who worked there eight years ago. That means the best thing to do is just not touch this code. We all want to do good work, but it's nearly impossible when faced with soul-sucking technical debt. But what can you do about it? Well, to be honest, pretty much nothing. It's no one programmer's fault, but a systemic issue caused by reason number three, hustle-or-die culture. As you write code, you've got tech lead pressuring you to close out all these tickets before the end of the sprint, who's being pressured by the engineering manager to ship this product by the end of the quarter, who's being pressured by the VP to execute on the product strategy, who's being pressured by the CEO to jack up revenue, who's being pressured by BlackRock to beat earnings, who's being pressured by anonymous deep state trillionaires to fund interdimensional wars beyond your comprehension. The machine has to keep moving and all this pressure is eventually released through the boots on the ground software engineers, which come in the form of unrealistic timelines and expectations. Now, what you can do about it is quit your job. The turnover rate among software engineers is extremely high because unlike many other industries, you can often make a lot more money by switching jobs. But you still might not be happy if you end up working for a corporate dinosaur where you become nothing more than a cog. Many companies are so bloated with bureaucracy that it becomes nearly impossible to get anything done. When programmers have to go to meetings to schedule pre-meetings to discuss the agenda for the upcoming meeting about last week's meeting, they start to become disillusioned. Viktor Frankl showed us how a man can find meaning in life despite the most horrific of circumstances, like an extermination camp. But he never had to get programming work done between seven meetings with product managers who have conflicting requirements. Meetings might kill your focus, but ultimately, it's hard to be happy if you feel like your work is contributing nothing of value to the world. Now, even if you have a great job, a great salary, and a great boss, you'll probably get laid off around the age of 25 when you become too old to cope. All the recent layoffs and the hangover from the COVID boom has blackpilled a large segment of the industry. But programming can also be very unhealthy physically. According to science, being chained to a chair all day is more unhealthy than smoking. But also according to science, exercise is one of the best, if not the best, medicine for depression. So that's an easy bug to fix. But even if it is true that 80% of programmers are not happy, the best way to cope is to realize that out of suffering have emerged the strongest souls, and the most massive characters are seared with scars. This has been The Code Report. Thanks for watching, and I will see you in the next one.
User
[00:00.000 --> 00:03.760] Scala, a high-level statically-typed programming language,
[00:03.760 --> 00:10.120] is famous for fusing object-oriented and functional programming paradigms together in a clean, concise syntax.
[00:10.120 --> 00:14.920] It was designed in Switzerland by computer scientist Martin Odersky and first released in 2004.
[00:14.920 --> 00:21.560] The name Scala means scalable language, and it's lived up to that name by powering the large-scale analytics engine Apache Spark,
[00:21.560 --> 00:27.200] the large-scale social media platforms of X and LinkedIn, and large-scale genomics projects like Atom.
[00:27.240 --> 00:32.320] It's one of many JVM languages that compile to bytecode to run on the Java virtual machine.
[00:32.320 --> 00:37.440] It can interrupt with Java and use Java libraries, but what it doesn't have is Java's boilerplate.
[00:37.440 --> 00:41.800] No static void main string args just to say hello world, but most importantly,
[00:41.800 --> 00:46.000] it gets functional by making no distinction between statements and expressions.
[00:46.000 --> 00:50.920] Everything is a value. That means every if statement or for loop can be assigned to a variable.
[00:50.920 --> 00:55.640] When combined with type inference, the end result is concise, expressive, and safe code,
[00:55.640 --> 01:00.000] and it provides features like higher order functions, null safety, pattern matching,
[01:00.000 --> 01:04.800] and algebraic data types that dramatically reduce the amount of pain you'll suffer as a Java developer.
[01:04.800 --> 01:08.720] To get started, you'll first want to install the JVM and then the Scala compiler.
[01:08.720 --> 01:14.040] From there, we'll create an SBT file, which is Scala's build tool and includes metadata about the application,
[01:14.040 --> 01:16.520] and then we'll write the actual code in a .scala file.
[01:16.520 --> 01:20.920] Just like in Java, we can create a class and then inside that class to find a main function.
[01:20.920 --> 01:24.480] We can also define a trait to apply a type interface to this class,
[01:24.480 --> 01:28.680] or by changing the class keyword to object, we automatically create a singleton.
[01:28.680 --> 01:31.760] It looks like typical OOP, but here's where things get weird.
[01:31.760 --> 01:36.080] Any variable declared with val is immutable, and most data structures in the standard library,
[01:36.080 --> 01:40.560] like lists, are also immutable, although it is possible to make values mutable with var.
[01:40.560 --> 01:45.000] And notice how the type is automatically inferred as an integer, although it could be made explicit.
[01:45.000 --> 01:50.320] Now, everything is a value, so if we have an if statement like this, we can assign it to a variable like that.
[01:50.360 --> 01:54.720] That's cool, but if you're a Java developer, you've likely been tortured by null pointer exceptions.
[01:54.720 --> 01:59.920] This bad code example is trying to cast null as an integer, which could lead to runtime errors.
[01:59.920 --> 02:03.680] But in Scala, you can use the option type, which itself is a monad,
[02:03.680 --> 02:09.200] to safely represent an object of some or none, without the need to write annoying null checks in your code.
[02:09.200 --> 02:14.800] Furthermore, higher order functions like flatmap allow us to transform the output of the original function
[02:14.800 --> 02:18.720] by passing a function as an argument, in this case an anonymous function,
[02:18.720 --> 02:21.040] but it could easily be passed by name as well.
[02:21.040 --> 02:22.960] But there's more monads you should know about.
[02:22.960 --> 02:26.640] Either represents one of two possible types, like left or right.
[02:26.640 --> 02:29.760] Try represents a computation that might throw an exception,
[02:29.760 --> 02:34.000] and future represents an asynchronous value that might resolve in the future.
[02:34.000 --> 02:39.200] And when you combine these types with pattern matching, you get concise, readable, and scalable code.
[02:39.200 --> 02:41.360] This has been Scala in 100 seconds.
[02:41.360 --> 02:43.920] But if your goal is to master a functional programming language,
[02:43.920 --> 02:46.960] you'll need a strong foundation in math and problem solving,
[02:46.960 --> 02:50.960] and you can start building that foundation today thanks to this video sponsor, Brilliant.
[02:50.960 --> 02:55.280] Their platform helps you build critical thinking skills through problem solving, not memorizing,
[02:55.280 --> 02:59.280] which is a method proven to be six times more effective than watching lecture videos.
[02:59.280 --> 03:02.560] Becoming a proficient programmer is not about memorizing syntax,
[03:02.560 --> 03:04.880] it's all about critical thinking and problem solving.
[03:04.880 --> 03:08.080] And by practicing with short interactive exercises every day,
[03:08.080 --> 03:12.960] you'll quickly gain a deeper understanding of the mathematical concepts behind functional programming,
[03:12.960 --> 03:15.200] and you can even do the exercises from your phone.
[03:15.200 --> 03:18.480] To try everything Brilliant has to offer for free for 30 days,
[03:18.480 --> 03:21.120] head over to brilliant.org slash fireship,
[03:21.120 --> 03:25.040] or scan this QR code for 20% off a premium annual subscription.
[03:25.040 --> 03:27.520] Thanks for watching, and I will see you in the next one.
Assistant
Scala, a high-level statically-typed programming language, is famous for fusing object-oriented and functional programming paradigms together in a clean, concise syntax. It was designed in Switzerland by computer scientist Martin Odersky and first released in 2004. The name Scala means scalable language, and it's lived up to that name by powering the large-scale analytics engine Apache Spark, the large-scale social media platforms of X and LinkedIn, and large-scale genomics projects like Atom. It's one of many JVM languages that compile to bytecode to run on the Java virtual machine. It can interact with Java and use Java libraries, but what it doesn't have is Java's boilerplate. No static void main string args just to say hello world, but most importantly, it gets functional by making no distinction between statements and expressions. Everything is a value. That means every if statement or for loop can be assigned to a variable. When combined with type inference, the end result is concise, expressive, and safe code, and it provides features like higher order functions, null safety, pattern matching, and algebraic data types that dramatically reduce the amount of pain you'll suffer as a Java developer. To get started, you'll first want to install the JVM and then the Scala compiler. From there, we'll create an SBT file, which is Scala's build tool and includes metadata about the application, and then we'll write the actual code in a .scala file. Just like in Java, we can create a class and then inside that class define a main function. We can also define a trait to apply a type interface to this class, or by changing the class keyword to object, we automatically create a singleton. It looks like typical OOP, but here's where things get weird. Any variable declared with val is immutable, and most data structures in the standard library, like lists, are also immutable, although it is possible to make values mutable with var. And notice how the type is automatically inferred as an integer, although it could be made explicit. Now, everything is a value, so if we have an if statement like this, we can assign it to a variable like that. That's cool, but if you're a Java developer, you've likely been tortured by null pointer exceptions. This bad code example is trying to cast null as an integer, which could lead to runtime errors. But in Scala, you can use the option type, which itself is a monad, to safely represent an object of some or none, without the need to write annoying null checks in your code. Furthermore, higher order functions like flatMap allow us to transform the output of the original function by passing a function as an argument, in this case, an anonymous function, but it could easily be passed by name as well. But there's more monads you should know about. Either represents one of two possible types, like left or right. Try represents a computation that might throw an exception, and future represents an asynchronous value that might resolve in the future. And when you combine these types with pattern matching, you get concise, readable, and scalable code. This has been Scala in 100 seconds. But if your goal is to master a functional programming language, you'll need a strong foundation in math and problem solving, and you can start building that foundation today thanks to this video sponsor, Brilliant. Their platform helps you build critical thinking skills through problem solving, not memorizing, which is a method proven to be six times more effective than watching lecture videos. Becoming a proficient programmer is not about memorizing syntax, it's all about critical thinking and problem solving. And by practicing with short interactive exercises every day, you'll quickly gain a deeper understanding of the mathematical concepts behind functional programming, and you can even do the exercises from your phone. To try everything Brilliant has to offer for free for 30 days, head over to brilliant.org slash fireship, or scan this QR code for 20% off a premium annual subscription. Thanks for watching, and I will see you in the next one.
User
[00:00.000 --> 00:06.000] July 2024 was yet another crazy month for the history books that future people will study centuries from now.
[00:06.000 --> 00:11.040] But the future won't care about the CrowdStrike disaster, Bloody Ears, or broken Intel chips.
[00:11.040 --> 00:14.240] Instead, they'll ponder the meaning of these strange two words.
[00:14.240 --> 00:15.280] Hock-Twa.
[00:15.280 --> 00:18.320] This viral meme forever changed the direction of the world's culture.
[00:18.320 --> 00:20.800] But it's not the only Twa that was hawked recently.
[00:20.800 --> 00:26.080] If you're an Apple fan, you might remember the unofficial Apple website that bears a similar name.
[00:26.080 --> 00:31.840] This website was so popular that it was acquired by AOL, who of course ruined it and shut it down in 2015.
[00:31.840 --> 00:38.240] Everyone forgot about it, but then it mysteriously reappeared this month with all the same authors from its early iPhone glory days.
[00:38.240 --> 00:41.360] But if we look closely, the website is actually a zombie.
[00:41.360 --> 00:47.840] Apparently some company in Hong Kong squatted on the domain and is now using it to pollute the internet with AI-generated slop.
[00:47.840 --> 00:50.560] But it's not the only example of this world going down the toilet.
[00:50.560 --> 00:54.640] And in today's video, we'll look at a ton of other crazy tech stories that you missed this month.
[00:54.640 --> 00:58.320] It is July 31st, 2024, and you're watching The Code Report.
[00:58.320 --> 01:02.880] Because this is a positive inspirational YouTube channel, let's focus on the good news first.
[01:02.880 --> 01:07.200] Node.js just got TypeScript support thanks to this recently merged pull request.
[01:07.200 --> 01:14.960] Over the past five years, JavaScript runtime competitors like Dino and Bun have stolen Node's thunder by making TypeScript just work out of the box.
[01:14.960 --> 01:20.320] But in the near future, you'll be able to write TypeScript in a Node.js file and run it without a compilation step.
[01:20.320 --> 01:23.680] The trick behind this magic is that it doesn't actually do any type checking.
[01:23.680 --> 01:30.000] But because TypeScript is a superset of JS, it instead strips the types from the source code and executes the JS parts.
[01:30.000 --> 01:34.720] In other words, it works like type annotations in Python to give you better IntelliSense to catch bugs early.
[01:34.720 --> 01:41.040] Speaking of which, a new blazingly fast game-changing next-generation web framework just dropped called FastHTML.
[01:41.040 --> 01:50.560] Before you roll your eyes, though, it's not a JavaScript framework this time, but rather a Python framework sprinkled with HTMX with the intention of scaling down web-depth complexity.
[01:50.640 --> 01:56.720] What makes it unique compared to, say, Django or Flask is that you can author interactive components with straight-up Python code.
[01:56.720 --> 02:02.400] Then you can make those components interactive with HTMX by leveraging HTML instead of JavaScript.
[02:02.400 --> 02:08.640] Now, while writing this code, you might consider using a new blazingly fast game-changing next-generation editor like Zed.
[02:08.640 --> 02:13.680] Previously, Zed was only available to macOS users, but now it's also available on Linux.
[02:13.680 --> 02:18.560] And that's awesome because Zed is fast, open source, and most importantly, written in Rust.
[02:18.560 --> 02:21.440] But all that's completely useless if your CPU is broken.
[02:21.440 --> 02:28.320] We learned recently from game developers and Intel itself that its 13th and 14th gen wrapper-like chips have all kinds of problems.
[02:28.320 --> 02:33.280] Intel was confused about why their stuff wasn't working, but since then they claim to have figured out the problem.
[02:33.280 --> 02:37.840] They claim the problem is related to the microcode algorithm that regulates voltage to the chip.
[02:37.840 --> 02:42.080] The high voltage is creating instability and likely permanently damaging these chips.
[02:42.080 --> 02:48.000] Now, if you own one and it works fine, all you have to do is make sure your BIOS is up to date and that you run it with the Intel default settings.
[02:48.000 --> 02:50.880] But if you have a bad chip, you'll likely need to replace it under warranty.
[02:50.880 --> 02:56.080] But if you're a fan of money, another thing you should know is that Stripe has acquired its competitor Lemon Squeezy.
[02:56.080 --> 03:02.640] I'm a big fan of Stripe and even have a Stripe course for Fireship Pro members, but many indie hackers nowadays say Lemon Squeezy is better.
[03:02.640 --> 03:08.160] Well, now they're one and the same because Stripe has gotten so big that instead of competing, it can just buy its competitors out.
[03:08.160 --> 03:15.120] Maybe it's time to build a Stripe competitor written in Rust, but after looking at the Stack Overflow survey results, I'm not so sure it's a good idea to learn how to code.
[03:15.120 --> 03:20.800] As a professional developer, you're 50% more likely to be not happy at work than to be happy at work.
[03:20.800 --> 03:26.320] And what's even more depressing is that nearly 50% of professional developers are just plowing through life in their comfort zone.
[03:26.320 --> 03:32.000] And speaking of plowing, if you get into farming, you're statistically more likely to enjoy your job than being behind a desk.
[03:32.000 --> 03:37.040] And that's why I'm pivoting this channel to farming tutorials like Roto Lacta milking systems in 100 seconds.
[03:37.040 --> 03:39.200] But now it's time to shift gear to some weird news.
[03:39.200 --> 03:48.400] First though, if you want to stay up to date on everything going on in tech, you should be suffering with other developers on daily.dev, the sponsor of today's video created by fellow programmers.
[03:48.400 --> 03:55.840] It's the only place you can get every blog post, news story and tutorial curated by your interests and ranked by 500,000 other developers there.
[03:55.840 --> 03:59.440] If you're into a JavaScript framework like Next.js, there's a squad for that.
[03:59.440 --> 04:02.240] Or if you're just there for drama, join the controversy squad.
[04:02.240 --> 04:06.640] Most importantly, you can have honest conversations about all the developer content on the internet.
[04:06.640 --> 04:11.680] And one of my favorite things is that it builds out a custom feed while keeping track of what you read and what you haven't.
[04:11.680 --> 04:17.120] And that's incredibly useful for me personally when producing the code report, but it's especially awesome when learning a new skill.
[04:17.120 --> 04:19.760] And did I mention that daily.dev is totally free?
[04:19.760 --> 04:23.200] Use the link on the screen to get my personal invite and I will see you over there.
[04:23.200 --> 04:24.960] Now it's time to talk about the Olympics.
[04:24.960 --> 04:28.800] No, not those Olympics, but the International Mathematical Olympiad.
[04:28.800 --> 04:34.640] As an American, I was nearly brought to tears when Team USA achieved a rare win over the nearly unstoppable Chinese team.
[04:34.720 --> 04:38.640] The high school students in this competition are far smarter than anyone watching this channel,
[04:38.640 --> 04:43.840] but there's a new competitor in town who's able to perform at the top of the silver medal distribution.
[04:43.840 --> 04:46.080] And its name is Google Alpha Proof.
[04:46.080 --> 04:51.440] It works by combining a large language model like Gemini with a reinforcement network called Alpha Zero,
[04:51.440 --> 04:54.000] a model that taught itself how to master chess and go.
[04:54.000 --> 04:59.680] It takes a written problem like this and translates it into a formal functional programming language called Lean.
[04:59.760 --> 05:04.800] Then it proceeds to generate many solution candidates and then attempts to prove or disprove them in Lean.
[05:04.800 --> 05:10.000] The good news is that if you're a top 0.001% math prodigy, you still have an edge over AI,
[05:10.000 --> 05:12.960] but the bad news is that the rest of us humans are totally cooked.
[05:12.960 --> 05:16.240] But Google also teamed up with Harvard to cook up something even crazier.
[05:16.240 --> 05:21.280] An AI model trained on a bunch of rap videos with the goal of creating a virtual rap brain
[05:21.280 --> 05:23.920] or an algorithm called an inverse dynamics model.
[05:23.920 --> 05:28.880] Now it's no secret that Big Tech wants to replace human labor with subscription-based robot labor.
[05:28.880 --> 05:34.000] The problem is that robots have poor dexterity and their movement is about as smooth as a white person dancing.
[05:34.000 --> 05:37.360] But someday we might be able to put artificial rap brains in them to fix this.
[05:37.360 --> 05:40.160] However, before Google can finish this diabolical plan,
[05:40.160 --> 05:45.680] OpenAI wants to destroy them and just announced a preview of their own search engine called Search GPT.
[05:45.680 --> 05:49.840] LLM chatbots are a huge threat to Google's lucrative business model of selling ads
[05:49.840 --> 05:53.200] and OpenAI is in a unique position to reimagine the search engine.
[05:53.200 --> 05:58.160] And someday soon we might live in an internet dystopia where all web content is written by chat GPT,
[05:58.160 --> 06:03.680] then optimized by chat GPT for the chat GPT search engine so it can be summarized for you by chat GPT.
[06:03.680 --> 06:07.840] The biggest AI news of July was Zuck's new llama, but right as this model was released,
[06:07.840 --> 06:12.400] another open source leader, Mistral, also released a new model called Mistral Large 2.
[06:12.400 --> 06:16.320] And its overall performance approaches that of GPT-4.0 and Claude.
[06:16.320 --> 06:20.320] That's a threat to OpenAI's dominance unless of course they go bankrupt first.
[06:20.320 --> 06:26.000] The company's raised over 11 billion dollars, but they're expected to spend at least 7 billion dollars this year.
[06:26.000 --> 06:30.560] 4 billion of which goes straight to Azure to rent the servers needed to train GPT-5.
[06:30.560 --> 06:33.680] And the 10 UberEats gift card from CrowdStrike.
[08:11.440 --> 08:15.760] And that's enough to pay for about one-third of a Big Mac so you don't have to finance it on a firm.
[08:15.760 --> 08:19.600] This has been The Code Report. Thanks for watching, and I will see you in the next one.
Assistant
July 2024 was yet another crazy month for the history books that future people will study centuries from now. But the future won't care about the CrowdStrike disaster, Bloody Ears, or broken Intel chips. Instead, they'll ponder the meaning of these strange two words: Hock-Twa. This viral meme forever changed the direction of the world's culture. But it's not the only Twa that was hawked recently. If you're an Apple fan, you might remember the unofficial Apple website that bears a similar name. This website was so popular that it was acquired by AOL, who of course ruined it and shut it down in 2015. Everyone forgot about it, but then it mysteriously reappeared this month with all the same authors from its early iPhone glory days. But if we look closely, the website is actually a zombie. Apparently some company in Hong Kong squatted on the domain and is now using it to pollute the internet with AI-generated slop. But it's not the only example of this world going down the toilet. And in today's video, we'll look at a ton of other crazy tech stories that you missed this month. It is July 31st, 2024, and you're watching The Code Report. Because this is a positive inspirational YouTube channel, let's focus on the good news first. Node.js just got TypeScript support thanks to this recently merged pull request. Over the past five years, JavaScript runtime competitors like Dino and Bun have stolen Node's thunder by making TypeScript just work out of the box. But in the near future, you'll be able to write TypeScript in a Node.js file and run it without a compilation step. The trick behind this magic is that it doesn't actually do any type checking. But because TypeScript is a superset of JS, it instead strips the types from the source code and executes the JS parts. In other words, it works like type annotations in Python to give you better IntelliSense to catch bugs early. Speaking of which, a new blazingly fast game-changing next-generation web framework just dropped called FastHTML. Before you roll your eyes, though, it's not a JavaScript framework this time, but rather a Python framework sprinkled with HTMX with the intention of scaling down web-depth complexity. What makes it unique compared to, say, Django or Flask is that you can author interactive components with straight-up Python code. Then you can make those components interactive with HTMX by leveraging HTML instead of JavaScript. Now, while writing this code, you might consider using a new blazingly fast game-changing next-generation editor like Zed. Previously, Zed was only available to macOS users, but now it's also available on Linux. And that's awesome because Zed is fast, open source, and most importantly, written in Rust. But all that's completely useless if your CPU is broken. We learned recently from game developers and Intel itself that its 13th and 14th gen wrapper-like chips have all kinds of problems. Intel was confused about why their stuff wasn't working, but since then they claim to have figured out the problem. They claim the problem is related to the microcode algorithm that regulates voltage to the chip. The high voltage is creating instability and likely permanently damaging these chips. Now, if you own one and it works fine, all you have to do is make sure your BIOS is up to date and that you run it with the Intel default settings. But if you have a bad chip, you'll likely need to replace it under warranty. But if you're a fan of money, another thing you should know is that Stripe has acquired its competitor Lemon Squeezy. I'm a big fan of Stripe and even have a Stripe course for Fireship Pro members, but many indie hackers nowadays say Lemon Squeezy is better. Well, now they're one and the same because Stripe has gotten so big that instead of competing, it can just buy its competitors out. Maybe it's time to build a Stripe competitor written in Rust, but after looking at the Stack Overflow survey results, I'm not so sure it's a good idea to learn how to code. As a professional developer, you're 50% more likely to be not happy at work than to be happy at work. And what's even more depressing is that nearly 50% of professional developers are just plowing through life in their comfort zone. And speaking of plowing, if you get into farming, you're statistically more likely to enjoy your job than being behind a desk. And that's why I'm pivoting this channel to farming tutorials like Roto Lacta milking systems in 100 seconds. But now it's time to shift gear to some weird news. First though, if you want to stay up to date on everything going on in tech, you should be suffering with other developers on daily.dev, the sponsor of today's video created by fellow programmers. It's the only place you can get every blog post, news story, and tutorial curated by your interests and ranked by 500,000 other developers there. If you're into a JavaScript framework like Next.js, there's a squad for that. Or if you're just there for drama, join the controversy squad. Most importantly, you can have honest conversations about all the developer content on the internet. And one of my favorite things is that it builds out a custom feed while keeping track of what you read and what you haven't. And that's incredibly useful for me personally when producing the code report, but it's especially awesome when learning a new skill. And did I mention that daily.dev is totally free? Use the link on the screen to get my personal invite and I will see you over there. Now it's time to talk about the Olympics. No, not those Olympics, but the International Mathematical Olympiad. As an American, I was nearly brought to tears when Team USA achieved a rare win over the nearly unstoppable Chinese team. The high school students in this competition are far smarter than anyone watching this channel, but there's a new competitor in town who's able to perform at the top of the silver medal distribution. And its name is Google Alpha Proof. It works by combining a large language model like Gemini with a reinforcement network called Alpha Zero, a model that taught itself how to master chess and go. It takes a written problem like this and translates it into a formal functional programming language called Lean. Then it proceeds to generate many solution candidates and then attempts to prove or disprove them in Lean. The good news is that if you're a top 0.001% math prodigy, you still have an edge over AI, but the bad news is that the rest of us humans are totally cooked. But Google also teamed up with Harvard to cook up something even crazier. An AI model trained on a bunch of rap videos with the goal of creating a virtual rap brain or an algorithm called an inverse dynamics model. Now it's no secret that Big Tech wants to replace human labor with subscription-based robot labor. The problem is that robots have poor dexterity and their movement is about as smooth as a white person dancing. But someday we might be able to put artificial rap brains in them to fix this. However, before Google can finish this diabolical plan, OpenAI wants to destroy them and just announced a preview of their own search engine called Search GPT. LLM chatbots are a huge threat to Google's lucrative business model of selling ads and OpenAI is in a unique position to reimagine the search engine. And someday soon we might live in an internet dystopia where all web content is written by chat GPT, then optimized by chat GPT for the chat GPT search engine so it can be summarized for you by chat GPT. The biggest AI news of July was Zuck's new llama, but right as this model was released, another open source leader, Mistral, also released a new model called Mistral Large 2. And its overall performance approaches that of GPT-4.0 and Claude. That's a threat to OpenAI's dominance unless of course they go bankrupt first. The company's raised over 11 billion dollars, but they're expected to spend at least 7 billion dollars this year. 4 billion of which goes straight to Azure to rent the servers needed to train GPT-5. And the 10 UberEats gift card from CrowdStrike. And that's enough to pay for about one-third of a Big Mac so you don't have to finance it on a firm. This has been The Code Report. Thanks for watching, and I will see you in the next one.
User
[00:00.000 --> 00:05.120] Yesterday, big tech changed forever after Google lost the most important legal battle of its life.
[00:05.120 --> 00:08.880] A fight against the US Department of Justice that started back in 2020,
[00:08.880 --> 00:13.120] claiming that Google violated US antitrust law and cheated at Monopoly.
[00:13.120 --> 00:18.080] The government called Google a filthy monopolist who used illegal tactics to crush the competition
[00:18.080 --> 00:22.640] and stifle innovation. Google's lawyers clapped back and said that was outrageous and salacious,
[00:22.640 --> 00:24.320] but the judge agreed with the feds.
[00:24.320 --> 00:24.820] Guilty.
[00:26.000 --> 00:29.040] And just like Standard Oil and the American Tobacco Company,
[00:29.040 --> 00:32.720] Google is now officially required to wear the illegal monopoly dunce cap,
[00:32.720 --> 00:38.320] but everyone cheats at Monopoly. Apple, Amazon, and Meta are also fighting active antitrust cases.
[00:38.320 --> 00:42.480] In today's video, we'll find out what these cases are all about, why Google lost its fight,
[00:42.480 --> 00:47.040] but most importantly, what does this mean for the future of big tech and how do I get rich off of it?
[00:47.040 --> 00:50.720] It is August 6, 2024 and you're watching The Code Report.
[00:50.720 --> 00:54.480] Things used to be a lot different back in the 90s. Horses were still the primary mode of
[00:54.560 --> 01:00.160] transportation, hemp was legal, and Coca-Cola still had cocaine in it, but 1890 was also the
[01:00.160 --> 01:05.120] year the Sherman Act was passed, a law at the time that was targeted at big oil, big tobacco,
[01:05.120 --> 01:10.080] and big railroad to prevent anti-competitive activities that made it impossible for competitors
[01:10.080 --> 01:14.800] to enter the market. Google broke section 2 of the Sherman Act, which has two provisions,
[01:14.800 --> 01:19.520] the possession of monopoly power and willful acquisition or maintenance of that power that's
[01:19.520 --> 01:23.360] not a consequence of a superior product. In other words, to break the law, you need to
[01:23.360 --> 01:27.760] both dominate the market and do so in ways outside of building a better product. Google
[01:27.760 --> 01:33.280] controls 88% of the domestic search market and I think most people agree that Google has a superior
[01:33.280 --> 01:38.080] product. I get way better results from it than Lycos or Excite and its AI no longer recommends
[01:38.080 --> 01:42.240] I jump off the Golden Gate Bridge when I'm feeling sad, but Google got into trouble with its
[01:42.240 --> 01:47.040] exclusivity deals, like when it requires its search engine to be the default on Android devices,
[01:47.040 --> 01:52.400] its deal with the Mozilla Firefox browser, and its insane deal with Apple where it pays them 36%
[01:52.480 --> 01:57.600] of search revenue to the tune of 200. Well actually,
[02:02.560 --> 02:06.880] we don't really know what the penalty is yet and that's to be continued in a separate trial. I
[02:06.880 --> 02:11.200] highly doubt it'll be like what JFK said right before he went to Dallas to shatter Google into
[02:11.200 --> 02:15.840] a thousand pieces and scattered into the winds. It is possible Google could be broken up into
[02:15.840 --> 02:20.560] multiple different entities, like maybe it has to divest Gmail on Android, but the tricky thing
[02:20.560 --> 02:24.960] about Google is that its search business makes so much money it's able to subsidize these free
[02:24.960 --> 02:29.680] projects like Gmail on Android. If Gmail were on its own we'd probably have to pay 10 bucks a month
[02:29.680 --> 02:33.440] to use it, but if you talk to someone like Microsoft who was accused of being a monopoly
[02:33.440 --> 02:38.720] back in 2001, things might not be so bad. A more likely outcome is that Google faces some kind of
[02:38.720 --> 02:42.560] fine and then contractual restrictions on these deals and that could actually be a good thing
[02:42.560 --> 02:47.360] for Google because then Apple can't rake in cash while doing absolutely nothing of value except
[02:47.360 --> 02:51.760] maintain its own monopoly. Speaking of which, Apple is also being sued by the U.S. Department
[02:51.760 --> 02:56.880] of Justice for maintaining a monopoly. Many people will defend Apple's walled garden to their death,
[02:56.880 --> 03:01.600] but the feds think that Apple is actually tricking you by using things like privacy as an elastic
[03:01.600 --> 03:06.560] shield to justify abusive business practices among many other things. Apple also got into trouble
[03:06.560 --> 03:11.680] with the EU and was required to open its payment service to competitors like Epic Games and now
[03:11.680 --> 03:16.880] Fortnite is finally coming back to the App Store, but Meta is also facing a lawsuit for monopolizing
[03:16.880 --> 03:21.520] the social media space with anti-competitive acquisitions like Instagram and WhatsApp. Then
[03:21.520 --> 03:25.760] Amazon is also fighting its own monopoly battle where it's accused of taking advantage of its
[03:25.760 --> 03:30.560] sellers with anti-discounting measures and contracts that favor its own products. Now,
[03:30.560 --> 03:34.720] if any of this comes as a shock to you, it's time to wake up. You don't become a trillion-dollar tech
[03:34.720 --> 03:40.000] company by not being evil. It's a brutal cutthroat game. As a tech company, you either go bankrupt
[03:40.000 --> 03:44.640] as a hero or live long enough to become an illegal monopoly. This has been The Code Report. Thanks
[03:44.640 --> 03:47.680] for watching and I will see you in the next one.
Assistant
Yesterday, big tech changed forever after Google lost the most important legal battle of its life. A fight against the US Department of Justice that started back in 2020, claiming that Google violated US antitrust law and cheated at Monopoly. The government called Google a filthy monopolist who used illegal tactics to crush the competition and stifle innovation. Google's lawyers clapped back and said that was outrageous and salacious, but the judge agreed with the feds. Guilty. And just like Standard Oil and the American Tobacco Company, Google is now officially required to wear the illegal monopoly dunce cap, but everyone cheats at Monopoly. Apple, Amazon, and Meta are also fighting active antitrust cases. In today's video, we'll find out what these cases are all about, why Google lost its fight, but most importantly, what does this mean for the future of big tech and how do I get rich off of it? It is August 6, 2024, and you're watching The Code Report.
Things used to be a lot different back in the 90s. Horses were still the primary mode of transportation, hemp was legal, and Coca-Cola still had cocaine in it, but 1890 was also the year the Sherman Act was passed, a law at the time that was targeted at big oil, big tobacco, and big railroad to prevent anti-competitive activities that made it impossible for competitors to enter the market. Google broke section 2 of the Sherman Act, which has two provisions: the possession of monopoly power and willful acquisition or maintenance of that power that's not a consequence of a superior product. In other words, to break the law, you need to both dominate the market and do so in ways outside of building a better product. Google controls 88% of the domestic search market and I think most people agree that Google has a superior product. I get way better results from it than Lycos or Excite and its AI no longer recommends I jump off the Golden Gate Bridge when I'm feeling sad, but Google got into trouble with its exclusivity deals, like when it requires its search engine to be the default on Android devices, its deal with the Mozilla Firefox browser, and its insane deal with Apple where it pays them 36% of search revenue to the tune of 200. Well actually, we don't really know what the penalty is yet and that's to be continued in a separate trial. I highly doubt it'll be like what JFK said right before he went to Dallas to shatter Google into a thousand pieces and scattered into the winds. It is possible Google could be broken up into multiple different entities, like maybe it has to divest Gmail on Android, but the tricky thing about Google is that its search business makes so much money it's able to subsidize these free projects like Gmail on Android. If Gmail were on its own, we'd probably have to pay 10 bucks a month to use it, but if you talk to someone like Microsoft who was accused of being a monopoly back in 2001, things might not be so bad. A more likely outcome is that Google faces some kind of fine and then contractual restrictions on these deals and that could actually be a good thing for Google because then Apple can't rake in cash while doing absolutely nothing of value except maintain its own monopoly.
User
[00:00.000 --> 00:07.080] The TimeScaleDB, an open-source time series database built on top of Postgres that can query time-based workloads
[00:07.440 --> 00:14.660] exponentially faster. Imagine building an application that needs to collect terabytes of timestamped data points every day, like a website analytics
[00:14.660 --> 00:21.180] platform or an IoT smart toilet. A general-purpose SQL database like MySQL or Postgres is not ideal.
[00:21.180 --> 00:25.920] It doesn't ingest data fast enough and isn't optimized to scale queries of time series data.
[00:26.360 --> 00:34.400] The TimeScaleDB fixes this by storing data in hyper tables, which are abstract tables composed of many smaller Postgres tables called chunks.
[00:34.400 --> 00:42.000] This can increase ingest speeds up to 40% and make queries a staggering 350 times faster. In addition, time buckets can
[00:42.080 --> 00:48.500] automatically aggregate data into set intervals, while hyper functions allow you to analyze this data like a mad scientist.
[00:48.500 --> 00:55.720] They can compute time-weighted averages for financial data and build candlestick charts or aggregate the daily water consumption of your IoT smart
[00:55.720 --> 01:01.800] toilet. Best of all, it does this while maintaining full SQL support for traditional relational workloads. To get started,
[01:01.800 --> 01:07.720] you can run it locally and self-host it with Docker, but the easiest option is to try it for free right now with
[01:07.800 --> 01:12.960] TimeScale Cloud. First, create a service for free to launch your database and get connection credentials,
[01:12.960 --> 01:19.360] then connect to it with your favorite client library, or as I'm doing here, make a connection in your IDE to write raw SQL code.
[01:19.360 --> 01:25.060] Now, I run a popular app where people can get matched up to horses, and I want to query the total number of trips taken in a
[01:25.060 --> 01:31.220] month. I can make that query in plain Postgres by selecting the count from the trips table, then filter out records for a date range
[01:31.220 --> 01:37.340] with a where clause. The problem, though, is that it's extremely slow because I have over 7 million records just on this one query.
[01:37.340 --> 01:43.140] We can start to see the power of TimeScale when we alter the code slightly to use a hyper table, which cuts the execution time in
[01:43.140 --> 01:49.880] half. That's not all, though. We can also compress this hyper table to make the query even faster and reduce disk usage by up to 90%.
[01:50.040 --> 01:56.320] But now, let's imagine we want to show a chart in the analytics dashboard that shows the highest amount paid for a ride each day.
[01:56.320 --> 02:03.640] A time bucket query takes that original date range and aggregates data over a specific interval, like in this case, the max value for each day.
[02:03.640 --> 02:09.640] But there's more to TimeScale than just time. When combined with open source tools like PGAI and PGVectorScale,
[02:09.640 --> 02:15.800] Postgres becomes a high-performance vector database that can query distances in a high-dimensional space for AI and
[02:15.800 --> 02:23.320] Ragstack apps, at speeds even faster than the most specialized vector databases. The end result is one Postgres database that can do everything,
[02:23.320 --> 02:30.040] and do everything fast. This has been TimeScaleDB in 100 seconds. Huge thanks to TimeScale for making this video possible.
[02:30.040 --> 02:32.480] Thanks for watching, and I will see you in the next one.
Assistant
The TimeScaleDB, an open-source time series database built on top of Postgres, can query time-based workloads exponentially faster. Imagine building an application that needs to collect terabytes of timestamped data points every day, like a website analytics platform or an IoT smart toilet. A general-purpose SQL database like MySQL or Postgres is not ideal. It doesn't ingest data fast enough and isn't optimized to scale queries of time series data. The TimeScaleDB fixes this by storing data in hyper tables, which are abstract tables composed of many smaller Postgres tables called chunks. This can increase ingest speeds up to 40% and make queries a staggering 350 times faster. In addition, time buckets can automatically aggregate data into set intervals, while hyper functions allow you to analyze this data like a mad scientist. They can compute time-weighted averages for financial data and build candlestick charts or aggregate the daily water consumption of your IoT smart toilet. Best of all, it does this while maintaining full SQL support for traditional relational workloads.
To get started, you can run it locally and self-host it with Docker, but the easiest option is to try it for free right now with TimeScale Cloud. First, create a service for free to launch your database and get connection credentials, then connect to it with your favorite client library, or as I'm doing here, make a connection in your IDE to write raw SQL code. Now, I run a popular app where people can get matched up to horses, and I want to query the total number of trips taken in a month. I can make that query in plain Postgres by selecting the count from the trips table, then filter out records for a date range with a where clause. The problem, though, is that it's extremely slow because I have over 7 million records just on this one query.
We can start to see the power of TimeScale when we alter the code slightly to use a hyper table, which cuts the execution time in half. That's not all, though. We can also compress this hyper table to make the query even faster and reduce disk usage by up to 90%. But now, let's imagine we want to show a chart in the analytics dashboard that shows the highest amount paid for a ride each day. A time bucket query takes that original date range and aggregates data over a specific interval, like in this case, the max value for each day. But there's more to TimeScale than just time. When combined with open source tools like PGAI and PGVectorScale, Postgres becomes a high-performance vector database that can query distances in a high-dimensional space for AI and Ragstack apps, at speeds even faster than the most specialized vector databases. The end result is one Postgres database that can do everything and do everything fast. This has been TimeScaleDB in 100 seconds. Huge thanks to TimeScale for making this video possible. Thanks for watching, and I will see you in the next one.
User
[00:00.000 --> 00:04.560] The World Wide Web is arguably the most critical pillar of human civilization today.
[00:04.560 --> 00:08.000] John Perry Barlow called it cyberspace, the new home of the mind.
[00:08.000 --> 00:11.040] In his Declaration of Independence of Cyberspace, he said,
[00:11.040 --> 00:15.120] We are creating a world where anyone, anywhere, may express his or her beliefs,
[00:15.120 --> 00:19.280] no matter how singular, without fear of being coerced into silence or conformity.
[00:19.280 --> 00:23.200] Freedom on the Web has caused governments to fail, it's minted millions of new millionaires,
[00:23.200 --> 00:26.400] and has allowed this one humble cat to be viewed trillions of times.
[00:26.400 --> 00:28.720] But there's an existential threat to this openness.
[00:28.720 --> 00:33.520] We tap into cyberspace via web browsers, with Chrome, Safari, Edge, and Firefox accounting
[00:33.520 --> 00:38.160] for over 90% of the market share. All these browsers share technology or funding controlled
[00:38.160 --> 00:42.640] by Google. Thank God Google's not evil, but hypothetically, if it was evil, it could pull
[00:42.640 --> 00:47.120] its resources to exterminate all cat memes from the internet. As a society, we can't allow that
[00:47.120 --> 00:50.240] to happen, and luckily, there's someone actually doing something about it.
[00:50.240 --> 00:53.680] It is August 12, 2024, and you're watching the Code Report.
[00:53.680 --> 00:57.680] He who controls the spice controls the universe, but he who controls the browser
[00:57.680 --> 01:01.920] controls the internet. You may not realize it, but the browser wars are raging right now.
[01:01.920 --> 01:06.080] Firefox just launched tabs managed in the sidebar, which was already supported on the
[01:06.080 --> 01:10.560] increasingly popular Arc browser, but as we speak, two separate open-source browsers,
[01:10.560 --> 01:14.480] built in Rust, are trending right now. Verso, which is built with the Servo engine,
[01:14.480 --> 01:19.200] and Blitz, a super-minimal web renderer. But I want to talk about something even more ambitious,
[01:19.200 --> 01:24.400] a futuristic open-source browser called Ladybird. In October 2018, Andreas Kling,
[01:24.400 --> 01:28.880] a software engineer who worked on WebKit at Apple and Nokia, had just gotten out of a three-month
[01:28.880 --> 01:33.280] Swedish rehab program and was unemployed and bored. And when smart people like him get bored
[01:33.280 --> 01:37.760] and don't have access to drugs, they start doing extreme things, like when he built his own operating
[01:37.760 --> 01:43.760] system to use as a daily driver. That included a 1990s GUI with a late 2000s Unix CLI. Everything
[01:43.760 --> 01:48.480] from the kernel to the web browser had to be made from scratch, and this is how Serenity OS was born,
[01:48.480 --> 01:52.720] which is named after the Serenity Prayer. God grant me the serenity to accept the things
[01:52.720 --> 01:56.960] I cannot change, the courage to change the things I can, and the wisdom to know the difference.
[01:56.960 --> 02:03.040] On July 4th, 2022, the Serenity OS browser engine declared its independence as a cross-platform
[02:03.040 --> 02:08.000] project. Now a full web browser, it was renamed Ladybird. Over a thousand contributors, half a
[02:08.000 --> 02:12.480] million lines of C++ code, and two years later, Andreas joined forces with one of the GitHub
[02:12.480 --> 02:16.960] co-founders to form a non-profit to manage the browser, believing the way to not have bad
[02:16.960 --> 02:22.160] incentives is to have no incentives. The project is funded entirely by sponsorships and donations,
[02:22.160 --> 02:26.640] and most importantly, the code is entirely free and won't borrow from other browsers. And that's
[02:26.640 --> 02:31.600] a big contrast even to privacy-focused browsers like Brave, which is for-profit and built on top
[02:31.600 --> 02:36.240] of Google's Chromium. But speaking of tools that are free and open source, another incredible project
[02:36.240 --> 02:41.520] you need to know about is Convex, the one true Firebase alternative and sponsor of today's video.
[02:41.520 --> 02:46.480] As an app developer, it allows you to make one decision for your back end by providing scheduled
[02:46.480 --> 02:51.680] jobs, server functions, database queries, and file storage, all in pure TypeScript. And that gives us
[02:51.680 --> 02:57.200] this beautiful TRCP-style autocomplete and type safety across the entire stack. In addition,
[02:57.200 --> 03:02.960] Convex delivers an ACID-compliant database with optimized caching and optional schema enforcement,
[03:02.960 --> 03:07.600] but without the pain points of SQL, like migrations and ORMs. And like a true Firebase
[03:07.600 --> 03:12.000] alternative, you can get automatic real-time subscriptions on all database queries. Use the
[03:12.000 --> 03:16.640] link on the screen to build a project for free right now. Seriously, Convex is an awesome project,
[03:16.640 --> 03:20.880] but now let's get back to Ladybird and talk about the disappointing part. The first alpha version
[03:20.880 --> 03:25.760] for Linux and Mac OS isn't expected until the summer of 2026, and you'll probably die of old
[03:25.760 --> 03:29.360] age by the time the Windows version comes out. The good news is that you can play around with the
[03:29.360 --> 03:33.360] code and build it from source on GitHub, but building a web browser from scratch is extremely
[03:33.360 --> 03:37.840] complex, and the general consensus is that it's impossible to pull off. In order for web developers
[03:37.840 --> 03:42.960] to build websites with their half-assed HTML, CSS, and JavaScript code, browser engines need to
[03:42.960 --> 03:48.560] follow the W3C spec, which contains over 114 million words, and it constantly evolves with
[03:48.560 --> 03:52.560] new features that raise the barrier to entry. It's not a project you build in a weekend by
[03:52.560 --> 03:57.680] printing chat GPT. The developers have already built their own HTML and JS engines, creatively
[03:57.680 --> 04:03.200] named libHTML and libJS, and are leveraging established tools like FFmpeg for videos.
[04:03.200 --> 04:08.320] In software development, the cycle goes from make it work to make it good to make it faster,
[04:08.320 --> 04:12.640] and they're very much in phase one of the cycle. Making a web browser ain't easy, but it's honest
[04:12.640 --> 04:16.800] work. Regardless of the market share Ladybird gets, we all benefit from them trying, because
[04:16.800 --> 04:21.360] the consolidation of power on the internet is only getting worse. And who knows, maybe one day
[04:21.360 --> 04:25.600] it'll be our last hope to smuggle dank cat memes in and out of cyberspace. This has been the Code
[04:25.600 --> 04:28.640] Report. Thanks for watching, and I will see you in the next one.
Assistant
The World Wide Web is arguably the most critical pillar of human civilization today. John Perry Barlow called it cyberspace, the new home of the mind. In his Declaration of Independence of Cyberspace, he said, "We are creating a world where anyone, anywhere, may express his or her beliefs, no matter how singular, without fear of being coerced into silence or conformity." Freedom on the Web has caused governments to fail, minted millions of new millionaires, and allowed this one humble cat to be viewed trillions of times. But there's an existential threat to this openness.
We tap into cyberspace via web browsers, with Chrome, Safari, Edge, and Firefox accounting for over 90% of the market share. All these browsers share technology or funding controlled by Google. Thank God Google's not evil, but hypothetically, if it was evil, it could pull its resources to exterminate all cat memes from the internet. As a society, we can't allow that to happen, and luckily, there's someone actually doing something about it. It is August 12, 2024, and you're watching the Code Report.
He who controls the spice controls the universe, but he who controls the browser controls the internet. You may not realize it, but the browser wars are raging right now. Firefox just launched tabs managed in the sidebar, which were already supported on the increasingly popular Arc browser, but as we speak, two separate open-source browsers built in Rust are trending right now: Verso, which is built with the Servo engine, and Blitz, a super-minimal web renderer. But I want to talk about something even more ambitious: a futuristic open-source browser called Ladybird.
In October 2018, Andreas Kling, a software engineer who worked on WebKit at Apple and Nokia, had just gotten out of a three-month Swedish rehab program and was unemployed and bored. And when smart people like him get bored and don't have access to drugs, they start doing extreme things, like when he built his own operating system to use as a daily driver. That included a 1990s GUI with a late 2000s Unix CLI. Everything from the kernel to the web browser had to be made from scratch, and this is how Serenity OS was born, which is named after the Serenity Prayer.
On July 4th, 2022, the Serenity OS browser engine declared its independence as a cross-platform project. Now a full web browser, it was renamed Ladybird. Over a thousand contributors, half a million lines of C++ code, and two years later, Andreas joined forces with one of the GitHub co-founders to form a non-profit to manage the browser, believing the way to not have bad incentives is to have no incentives. The project is funded entirely by sponsorships and donations, and most importantly, the code is entirely free and won't borrow from other browsers. That's a big contrast even to privacy-focused browsers like Brave, which is for-profit and built on top of Google's Chromium.
But speaking of tools that are free and open source, another incredible project you need to know about is Convex, the one true Firebase alternative and sponsor of today's video. As an app developer, it allows you to make one decision for your back end by providing scheduled jobs, server functions, database queries, and file storage, all in pure TypeScript. And that gives us this beautiful TRCP-style autocomplete and type safety across the entire stack. In addition, Convex delivers an ACID-compliant database with optimized caching and optional schema enforcement, but without the pain points of SQL, like migrations and ORMs. And like a true Firebase alternative, you can get automatic real-time subscriptions on all database queries. Use the link on the screen to build a project for free right now. Seriously, Convex is an awesome project, but now let's get back to Ladybird and talk about the disappointing part.
User
[00:00.000 --> 00:04.800] Kim.com. He's been called the Titan of terabytes, the El Chapo of file sharing,
[00:04.800 --> 00:08.960] and the king of copyright infringement. If you don't know him, he's a mega hacker and mega
[00:08.960 --> 00:14.560] businessman who ran a digital empire called Mega in the early 2000s. Its cash cow mega upload had
[00:14.560 --> 00:19.600] millions of daily active users and brought in over 500 million, but there's
[03:23.760 --> 03:28.480] multiple philosophical debates to be had here, like is piracy actually theft, is privacy a
[03:28.480 --> 03:32.800] fundamental right for people on the internet, and should cloud providers retain data and give access
[03:32.800 --> 03:37.120] to the government for criminal investigations? Some things are always morally correct, like
[03:37.120 --> 03:41.920] pirating Adobe products, but for many of these issues, there's no clear answer. Kim.com has been
[03:41.920 --> 03:46.160] a huge advocate for privacy on the internet, and he's denied that Mega Upload was designed to
[03:46.160 --> 03:50.560] encourage copyright infringement. Instead, it's just a content-neutral platform and shouldn't be
[03:50.560 --> 03:54.720] liable, like in the same way that an internet service provider shouldn't be liable for illegal
[03:54.720 --> 03:59.040] activity. That argument's probably not going to work in federal court, but don't worry, Kim has
[03:59.040 --> 04:03.600] a plan. Some people think he might slip away into Russia to go live with Tupac and Michael Jackson
[04:03.600 --> 04:08.160] in Siberia. The only problem with that plan is that Russia's not very privacy-focused and just
[04:08.160 --> 04:12.640] recently banned the encrypted messaging app Signal. One thing's for sure though, Kim.com won't go to
[04:12.640 --> 04:16.960] jail without a mega fight. This has been The Code Report, thanks for watching, and I will see you in
[04:16.960 --> 04:18.560] the next one.
Assistant
Kim.com. He's been called the Titan of terabytes, the El Chapo of file sharing, and the king of copyright infringement. If you don't know him, he's a mega hacker and mega businessman who ran a digital empire called Mega in the early 2000s. Its cash cow Mega Upload had millions of daily active users and brought in over $175 million in revenue. The website was brilliant, both for its user-friendly frontend UI and distributed backend that allowed people to share massive files around the world, which was almost unheard of at the time.
There was just one problem. The website made its money by selling ads, and those ads were served primarily on pirated material, like movies, music, and software. In 2012, the FBI shut down Mega Upload and raided Kim's mansion in New Zealand. But for the last decade, he's managed to avoid extradition to the United States and has remained a high-profile rich dude. That is until yesterday, when a New Zealand judge ruled that he could be handed over to the United States to be tried as a pirate.
In today's video, we'll look at the mega crazy story of Kim.com and the technical features behind Mega Upload. It is August 15, 2024, and you're watching The Code Report. Kim Schmitz is a German hacker who got famous as a teenager when he hacked into NASA and the Pentagon. That's pretty based, but in 1994, he was arrested for selling hacked phone numbers, then convicted of more hacking charges in 98, but never did any significant jail time because the judge chalked it up to youthful foolishness.
He then pushed his luck further in 2001 when he bought a bankrupt website called Let's Buy It.com during the dot com crash. He told everyone he was going to pump a bunch of money into it, and after the stock went up, he dumped it for a quick profit. He was doing pump and dump rug pulls before they were cool. He tried to move to Thailand and fake his own death, but once again was arrested and once again received a suspended sentence. Despite his convictions, he eventually immigrated to New Zealand on an investor visa, and that brings us to 2005 and the rise of Kim's mega empire.
It was a collection of websites that did everything from payment processing to philanthropy, but its core service was file uploads, like a precursor to Dropbox or Google Drive. Its HTML-based UI was faster and easier than iTunes, but most importantly, it allowed anyone to upload extremely large files. These uploads could be paused and resumed, and each download would generate a unique link that could be shared with friends. They were able to scale to a massive level with techniques like file deduplication, where a hash is generated for a file, so if you try to upload the same pirated Seinfeld episode twice, it only actually takes up the space of one file.
Mega also had a certain level of security and encryption to protect user data, but it wasn't totally anonymous, and after the seizure, none of the users got their data back, although Mega Upload continues to live on as Mega. Nowadays, Mega uses zero-knowledge encryption, where data is encrypted on both the client and the server, so no third party, including Mega, can know what you uploaded. What was absolutely genius, though, is that Mega Upload had an affiliate program that rewarded users for generating downloads, which eventually snowballed into Mega accounting for 4% of global internet traffic and wheelbarrows filled with money for Kim.
Speaking of which, Apple is also being sued by the U.S. Department of Justice for maintaining a monopoly. Many people will defend Apple's walled garden to their death, but the feds think that Apple is actually tricking you by using things like privacy as an elastic shield to justify abusive business practices among many other things. Apple also got into trouble with the EU and was required to open its payment service to competitors like Epic Games, and now Fortnite is finally coming back to the App Store, but Meta is also facing a lawsuit for monopolizing the social media space with anti-competitive acquisitions like Instagram and WhatsApp. Then Amazon is also fighting its own monopoly battle where it's accused of taking advantage of its sellers with anti-discounting measures and contracts that favor its own products. Now, if any of this comes as a shock to you, it's time to wake up. You don't become a trillion-dollar tech company by not being evil. It's a brutal cutthroat game. As a tech company, you either go bankrupt as a hero or live long enough to become an illegal monopoly. This has been The Code Report. Thanks for watching and I will see you in the next one.
The first alpha version for Linux and Mac OS isn't expected until the summer of 2026, and you'll probably die of old age by the time the Windows version comes out. The good news is that you can play around with the code and build it from source on GitHub, but building a web browser from scratch is extremely complex, and the general consensus is that it's impossible to pull off. In order for web developers to build websites with their half-assed HTML, CSS, and JavaScript code, browser engines need to follow the W3C spec, which contains over 114 million words and constantly evolves with new features that raise the barrier to entry. It's not a project you build in a weekend by printing chat GPT. The developers have already built their own HTML and JS engines, creatively named libHTML and libJS, and are leveraging established tools like FFmpeg for videos.
In software development, the cycle goes from make it work to make it good to make it faster, and they're very much in phase one of the cycle. Making a web browser ain't easy, but it's honest work. Regardless of the market share Ladybird gets, we all benefit from them trying, because the consolidation of power on the internet is only getting worse. And who knows, maybe one day it'll be our last hope to smuggle dank cat memes in and out of cyberspace. This has been the Code Report. Thanks for watching, and I will see you in the next one.
Unfortunately, the party came to an end in 2012 when the website was shut down, the servers were seized, and Kim's New Zealand mansion was raided. They took everything, including his Toyota Vellfire. Now, Uncle Sam has been trying to get his hands on him ever since, but New Zealand screwed up the search warrant and spied on him illegally, and his extradition has been delayed multiple times, but now it looks like the walls are closing in and the United States has the green light to take him. In addition, last year, two former Mega Upload executives were sentenced to prison, but the real guy they want to make an example of is Kim.com. They say he cost the entertainment industry $500 million, but there are multiple philosophical debates to be had here, like is piracy actually theft, is privacy a fundamental right for people on the internet, and should cloud providers retain data and give access to the government for criminal investigations?
Some things are always morally correct, like pirating Adobe products, but for many of these issues, there's no clear answer. Kim.com has been a huge advocate for privacy on the internet, and he's denied that Mega Upload was designed to encourage copyright infringement. Instead, it's just a content-neutral platform and shouldn't be liable, like in the same way that an internet service provider shouldn't be liable for illegal activity. That argument's probably not going to work in federal court, but don't worry, Kim has a plan. Some people think he might slip away into Russia to go live with Tupac and Michael Jackson in Siberia. The only problem with that plan is that Russia's not very privacy-focused and just recently banned the encrypted messaging app Signal.
One thing's for sure, though: Kim.com won't go to jail without a mega fight. This has been The Code Report, thanks for watching, and I will see you in the next one.