Latest / CyberSecurity Summary / Building Telegram Bots: Develop Bots in 12 Programming Languages using the Telegram Bot API
Transcript
- 0:00Speaker 1: Imagine for a second, right that you are just relaxing
- 0:02Speaker 1: on a gorgeous, sun drenched beach.
- 0:05Speaker 2: Oh I'm already there, right.
- 0:07Speaker 1: You have a cold drink in your hand, the waves
- 0:10Speaker 1: are gently crashing, and you don't have a single care
- 0:12Speaker 1: in the world.
- 0:13Speaker 2: Sounds perfect. Why am I so relaxed?
- 0:16Speaker 1: Exactly because back in the real world, you have a
- 0:18Speaker 1: digital double Oh wow. Yeah, like a tireless, invisible assistant
- 0:24Speaker 1: who is currently handling all of your mundane daily tasks.
- 0:28Speaker 1: It's checking your schedules, filtering your messages, and basically doing
- 0:32Speaker 1: all the heavy lifting of your life while you just
- 0:34Speaker 1: sit back and listen to the ocean.
- 0:36Speaker 2: I mean that sounds like pure science fiction.
- 0:37Speaker 1: Honestly, he surely does, right, But today we're going to
- 0:40Speaker 1: show you exactly how close that reality actually is. Welcome
- 0:44Speaker 1: to the deep dive.
- 0:45Speaker 2: Glad to be here for this one.
- 0:46Speaker 1: Yeah, Today we are opening up a really fascinating piece
- 0:49Speaker 1: of source material. It's a book called Building Telegram Bots
- 0:53Speaker 1: Develop Bots in twelve programming languages by Nicholas Maudzik. And well,
- 0:59Speaker 1: we are going to expor how you can build these
- 1:01Speaker 1: digital assistance yourself.
- 1:03Speaker 2: Yeah, And what stands out immediately about mad ROC's approach.
- 1:06Speaker 2: And I love this is that he didn't write this
- 1:10Speaker 2: to show off like abstract theoretical coding.
- 1:13Speaker 1: Tricks, right, it's not a text put exactly.
- 1:16Speaker 2: He built these bots to solve highly relatable everyday problems
- 1:20Speaker 2: he was actually facing while living in Tokyo.
- 1:23Speaker 1: The examples are incredibly grounded. I mean, anyone who has
- 1:26Speaker 1: lived in a massive metropolis knows the absolute panic of
- 1:29Speaker 1: like missing the last train home.
- 1:32Speaker 2: Oh yeah, and having to pay for a ridiculously expensive taxi.
- 1:35Speaker 1: It's the worst. So instead of constantly checking an app,
- 1:37Speaker 1: he just wrote a bot that automatically tracks the last
- 1:40Speaker 1: train schedules and drops his optimal transit options right into a.
- 1:44Speaker 2: Chat window, which is brilliant. Yeah.
- 1:47Speaker 1: He also built an IoT webcam bot that snaps a
- 1:49Speaker 1: picture and sends it to his phone whenever someone rings
- 1:52Speaker 1: his doorbell. And oh, my favorite party bot, ah, the
- 1:55Speaker 1: party bot. Yeah, it uses a mini projector to display
- 1:58Speaker 1: random incoming chat messages onto his life living room wall
- 2:00Speaker 1: during get togethers.
- 2:01Speaker 2: It's so cool because it illustrates a fundamental shift in
- 2:04Speaker 2: how we should view automation. You know how so well,
- 2:08Speaker 2: a bot isn't just a corporate customer service gimmick anymore.
- 2:12Speaker 2: It is a highly customizable personal tool to reduce friction
- 2:16Speaker 2: in your daily life.
- 2:17Speaker 1: Right.
- 2:18Speaker 2: But the structure of this text is what makes it
- 2:20Speaker 2: a masterclass. He doesn't just teach you how to build
- 2:24Speaker 2: a bot. He teaches you how to build the exact
- 2:27Speaker 2: same bot using twelve different programming languages.
- 2:31Speaker 1: Which naturally brings up the big question, right, and really
- 2:34Speaker 1: the entire mission of our deep dive today for you,
- 2:38Speaker 1: Why in the world would you solve the exact same
- 2:40Speaker 1: problem in twelve different programming languages when you could just
- 2:43Speaker 1: learn one and stick to it.
- 2:45Speaker 2: Yeah, sounds like a lot of extra work.
- 2:47Speaker 1: It does. The best way I can think to describe
- 2:49Speaker 1: it is like cooking. Imagine cooking your absolute favorite go
- 2:52Speaker 1: to recipe. Okay, I'm with you, but instead of just
- 2:55Speaker 1: making it in your own familiar kitchen, you cook it
- 2:57Speaker 1: in a massive commercial restaurant, pitchin when you cook it
- 3:00Speaker 1: over a campfire in the woods, and then I don't know,
- 3:04Speaker 1: you cook it in a tiny, high tech kitchen on
- 3:06Speaker 1: a submarine. That is a great analogy, right, You're making
- 3:09Speaker 1: the exact same food, but the process teaches you just
- 3:12Speaker 1: as much about the constraints the tooling and the environment
- 3:15Speaker 1: as it does about the meal.
- 3:16Speaker 2: Itself, and that environmental constraint is precisely the point of
- 3:21Speaker 2: the exercise. By holding the output constant the BOD, we
- 3:26Speaker 2: get to clearly see the variables in the languages themselves, right.
- 3:29Speaker 1: It strips away the distraction of what you're building.
- 3:32Speaker 2: Exactly. It is about deeply understanding how different programming languages
- 3:37Speaker 2: approach the very nature of problem solving at a systemic level.
- 3:41Speaker 1: Like how they handle memory yes.
- 3:43Speaker 2: How do they handle memory management? How do they structure
- 3:45Speaker 2: their syntax to prioritize human readability versus raw machine level performance.
- 3:51Speaker 2: When you build the same tool repeatedly, the philosophy of
- 3:54Speaker 2: the language just kind of reveals itself.
- 3:56Speaker 1: Okay, let's unpack this Before we can start touring these
- 3:58Speaker 1: different programming kitchens. We actually need some groceries, or in
- 4:02Speaker 1: this case, we need a bot identity.
- 4:04Speaker 2: You can't code a bot if it doesn't exist yet.
- 4:06Speaker 1: Exactly, we have to start with the absolute foundation of
- 4:09Speaker 1: the telegram platform, and to do that, we are going
- 4:12Speaker 1: to look at one of the most famously readable, user
- 4:16Speaker 1: friendly languages out there. Ruby.
- 4:18Speaker 2: Ruby serves as an excellent gateway because of its design philosophy.
- 4:22Speaker 2: It explicitly prioritizes developer happiness.
- 4:25Speaker 1: Developer happiness, I love that.
- 4:27Speaker 2: Yeah, it reads almost like plain English. Yeah. Architecturally it's
- 4:31Speaker 2: an interpreted scripting language, and that means that means you
- 4:34Speaker 2: don't have to run it through a compiler to translate
- 4:37Speaker 2: it into machine code before executing it. An interpreter simply
- 4:40Speaker 2: reads your code line by line at runtime, which makes
- 4:42Speaker 2: spinning up a prototype incredibly fast.
- 4:45Speaker 1: But before we write a single line of Ruby, we
- 4:47Speaker 1: have to meet the boss.
- 4:49Speaker 2: Ah, yes, the Botfather.
- 4:50Speaker 1: To create a bot on Telegram, you don't just fill
- 4:53Speaker 1: out a web form. You actually have to chat with
- 4:55Speaker 1: a bot. To create a bot, you talk to prafana
- 4:58Speaker 1: Agat bot Father, who is the literal old godfather of
- 5:01Speaker 1: all telegrambots.
- 5:02Speaker 2: The book highlights some hilarious details here too.
- 5:04Speaker 1: Oh my gosh. Yes, Botfather is available twenty four to seven.
- 5:07Speaker 1: Never sleeps, but according to his bio, he quote takes
- 5:10Speaker 1: showers and always looks fresh. I mean, you gotta appreciate
- 5:14Speaker 1: the lore, right his profile picture isn't.
- 5:16Speaker 2: Yeah.
- 5:17Speaker 1: The author makes a great joke about this, actually warning
- 5:19Speaker 1: you not to leave this token hanging around on a
- 5:21Speaker 1: public GitHub repository quote. Especially now that Microsoft.
- 5:25Speaker 2: Owns it, we'll developer humor there.
- 5:27Speaker 1: Right, so you keep it haydden in an environment variable.
- 5:31Speaker 1: Now diving into the Ruby environment, setting this up is
- 5:34Speaker 1: incredibly smooth. You use Ruby's package manager, which is called
- 5:37Speaker 1: JEM to install the telegrambot library yep standard setup, and
- 5:41Speaker 1: you create a simple file like step zero dot rb.
- 5:44Speaker 1: But how does the code actually know when someone sends
- 5:47Speaker 1: a message? Like?
- 5:48Speaker 2: Mechanically, the mechanics rely on what we call a polling loop. Specifically,
- 5:53Speaker 2: the script calls a dot get updates method. Okay, Conceptually,
- 5:58Speaker 2: think of it like a kid in the backseat of
- 5:59Speaker 2: a car constantly asking are we there yet? How about
- 6:02Speaker 2: now are we there yet?
- 6:03Speaker 1: Oh man?
- 6:04Speaker 2: Right? The Ruby script is in a continuous loop, constantly
- 6:07Speaker 2: knocking on Telegram server door asking if any new data.
- 6:11Speaker 1: Has arrived, and when a message finally does arrive, it's
- 6:13Speaker 1: not just the text the user typed. The book shows
- 6:17Speaker 1: how if you use Ruby's toyomal function, which formats data
- 6:21Speaker 1: into a really readable structured list, you can actually see
- 6:25Speaker 1: the full anatomy of a Telegram payload.
- 6:27Speaker 2: It's surprisingly dense.
- 6:28Speaker 1: It's a massive package of data. You get a message
- 6:31Speaker 1: you get the from field detailing the user, the chat
- 6:35Speaker 1: channel info, the exact timestamp, and of course the actual
- 6:38Speaker 1: text itself.
- 6:39Speaker 2: And this is where Ruby's high level abstractions really shine.
- 6:43Speaker 2: To make the bot reply, you don't have to manually
- 6:45Speaker 2: construct some complex httppost requests from scratch.
- 6:49Speaker 1: Thank goodness.
- 6:49Speaker 2: Right, you use string interpolation instead of clunky commands to
- 6:53Speaker 2: concatenate or glue text together. Ruby lets you seamlessly evaluate
- 6:57Speaker 2: variables right inside a string. You just write hello, followed
- 7:00Speaker 2: directly by a hashtag message up from dot first name.
- 7:03Speaker 1: Which instantly grabs that specific piece of data from the payload.
- 7:06Speaker 1: So the bot replies, hello Nico exactly. It completely abstracts
- 7:10Speaker 1: away the complex network requests and the dense data parsing.
- 7:13Speaker 1: You get a fully functioning, responsive bot in under ten
- 7:16Speaker 1: lines of code.
- 7:17Speaker 2: It's beautiful.
- 7:17Speaker 1: But and here's where we hit a wall. Ruby is
- 7:21Speaker 1: brilliant for a personal bot. Well, what happens if your
- 7:24Speaker 1: bot goes viral?
- 7:25Speaker 2: Uh? The scaling problem?
- 7:26Speaker 1: Yeah? If that interpreter is reading code line by line
- 7:30Speaker 1: and suddenly ten thousand people are messaging your bot at
- 7:33Speaker 1: the exact same second, that are we there yet? Polling
- 7:36Speaker 1: loop is going to become a massive bottleneck.
- 7:38Speaker 2: Precisely, the interpreter becomes a huge liability under heavy load.
- 7:43Speaker 2: If you want raw speed and if you want a
- 7:45Speaker 2: standalone executable file that runs directly on the machine's hardware
- 7:50Speaker 2: without needing a Ruby environment installed on the server at all,
- 7:53Speaker 2: which is a hassle it is, so if you want
- 7:55Speaker 2: to avoid that, you have to leave scripting languages behind entirely.
- 7:58Speaker 1: Here's where it gets really interesting. We want the readability
- 8:02Speaker 1: of a script, but we need the heavy duty performance
- 8:04Speaker 1: of a compiled binary, and that architectural shift brings us
- 8:08Speaker 1: to a completely different.
- 8:09Speaker 2: Language, NIM. NIM is a fascinating piece of technology. If
- 8:13Speaker 2: you look at NIM code on a screen, it visually
- 8:15Speaker 2: looks and feels very much like Python.
- 8:17Speaker 1: Oh really yeah.
- 8:18Speaker 2: It uses indentation and really clean readable syntax. But under
- 8:22Speaker 2: the hood, NIM doesn't interpret. It compiles, meaning it translates
- 8:26Speaker 2: your code down into clus plus U or JavaScript and
- 8:30Speaker 2: then uses a C compiler to turn it into a
- 8:33Speaker 2: highly optimized bare metal machine binary.
- 8:36Speaker 1: Okay, I have to play the skeptic for you here though,
- 8:38Speaker 1: because reading the NIM section of the text, the developer
- 8:41Speaker 1: experience felt incredibly jarring after how smooth Ruby.
- 8:45Speaker 2: Was, Well, yeah, that's a different beast.
- 8:48Speaker 1: With NIM, we need the NIM compiler, we need the
- 8:50Speaker 1: Nimble package manager, and we have to install a specific
- 8:53Speaker 1: vs code extension by constantin Zeitzev just to get syntax
- 8:57Speaker 1: highlighting right. And even then I can't just click run.
- 9:01Speaker 1: The author outlines how you have to configure custom tasks.
- 9:04Speaker 1: Do Jason build tasks. You have to use terminal commands
- 9:07Speaker 1: like nimcar to compile and run.
- 9:09Speaker 2: It's definitely more involved.
- 9:11Speaker 1: And to make a simple secure web request to get HUBSAPI,
- 9:14Speaker 1: the code straight up fails unless you manually add a
- 9:17Speaker 1: just dossl flag to the compile command. With Ruby, the
- 9:20Speaker 1: web request just worked. Why take on all this extra friction?
- 9:23Speaker 2: If we connect this to the bigger picture, you have
- 9:25Speaker 2: to understand the fundamental trade off of compiled systems. The
- 9:28Speaker 2: friction you're describing is the literal price of optimization. When
- 9:31Speaker 2: you manually add that digdssl flag, you are making a
- 9:36Speaker 2: conscious architectural decision through a process called dead code elimination.
- 9:40Speaker 2: Dead code elimination, Yes, NIM gives you the ultimate power
- 9:45Speaker 2: to exclude massive libraries you just don't need. If your
- 9:49Speaker 2: specific bot doesn't need to make secure external web requests.
- 9:53Speaker 2: Nim won't include that heavy SSL cryptographic code in your
- 9:57Speaker 2: final binary.
- 9:58Speaker 1: Oh I see.
- 9:59Speaker 2: The result is a final program that is astonishingly tiny
- 10:02Speaker 2: and lightning fast because the processor executes it directly.
- 10:05Speaker 1: So you trade a little upfront convenience for a massive
- 10:08Speaker 1: back end performance boost.
- 10:09Speaker 2: Exactly.
- 10:10Speaker 1: So, when we build the nimbot, we use the telebot library,
- 10:13Speaker 1: but we also have to import something called async dispatch,
- 10:16Speaker 1: and this introduces a completely different paradigm than that Ruby
- 10:19Speaker 1: polling loop we discussed earlier.
- 10:20Speaker 2: Yes, the text introduces the async pragma, which is vital
- 10:24Speaker 2: for concurrency.
- 10:25Speaker 1: Right.
- 10:25Speaker 2: Think about synchronous programming. Like a single barista at a
- 10:28Speaker 2: coffee shop. They take an order, make the coffee, and
- 10:31Speaker 2: hand it over before even making eye contact with the
- 10:33Speaker 2: next customer in line. That sounds infuriating, It is if
- 10:37Speaker 2: the coffee takes five minutes, the line stops moving. That
- 10:40Speaker 2: is a synchronous bottleneck. Right. A synchronous programming is like
- 10:43Speaker 2: a head barista taking an order, handing the ticket to
- 10:46Speaker 2: the espresso machine, and immediately turning to take the next
- 10:49Speaker 2: customer's order while the first coffee is brewing in the background.
- 10:53Speaker 1: But traditionally, writing that asynchronous logic leads to what developers
- 10:57Speaker 1: call callback hell right where the code becomes this deeply nested,
- 11:02Speaker 1: unreadable mess of functions waiting on other functions.
- 11:05Speaker 2: Exactly, and that is where NIM shines. The ACYNC feature
- 11:09Speaker 2: allows you to write asynchronous code as though it were
- 11:11Speaker 2: simple top down synchronous code.
- 11:13Speaker 1: Wow.
- 11:14Speaker 2: Yeah. It yields control back to the event loop without
- 11:17Speaker 2: deeply nesking functions, keeping the logic clean while maintaining massive concurrency.
- 11:22Speaker 1: The author also uses a brilliant security trick in NIM
- 11:25Speaker 1: that you simply can't do in Ruby, going back to
- 11:28Speaker 1: that golden rule of hiding the token. In NIM, he
- 11:31Speaker 1: uses a built in function called slurp secret dot key.
- 11:34Speaker 2: I love the name of that function, slurp.
- 11:37Speaker 1: It's great mechanically. What this does is reach out, grab
- 11:42Speaker 1: the token from a local hidden text file on your
- 11:44Speaker 1: hard drive, and bake it directly into the binary during
- 11:48Speaker 1: the compilation step.
- 11:49Speaker 2: It's an elegant demonstration of compiler power. Because NIM compiles
- 11:53Speaker 2: down to machine code. That token gets embedded into a
- 11:56Speaker 2: binary format.
- 11:57Speaker 1: So it's not just sitting in plaintex. No.
- 12:00Speaker 2: A malicious actor can't just open a text file and
- 12:03Speaker 2: read it on your server. They would have to reverse
- 12:05Speaker 2: engineer and decompile a machine binary to extract that string,
- 12:09Speaker 2: which raises the security barrier exponentially.
- 12:12Speaker 1: And the bot we build a NIM is super fun.
- 12:14Speaker 1: It's a Cats and Dogs blot classic. The compiled code
- 12:17Speaker 1: listens to the chat and if a user types the
- 12:19Speaker 1: word cat or dog, it triggers a new photo function.
- 12:22Speaker 1: It pulls a local image file, attaches a custom caption,
- 12:25Speaker 1: and fires it back to the user. It proves that
- 12:28Speaker 1: even though NIM compiles down to raw c it handles
- 12:31Speaker 1: media and chat interactions effortlessly.
- 12:33Speaker 2: It does, but it also highlights the eternal programmers dilemma.
- 12:37Speaker 2: You love the fast write elegant syntax of Ruby, but
- 12:41Speaker 2: you also want the raw, compiled speed and type safety
- 12:45Speaker 2: of NIM. The friction of compilation versus the joy of scripting.
- 12:49Speaker 2: It's natural to ask if a language exists that bridges
- 12:52Speaker 2: that gap.
- 12:53Speaker 1: Which brings us to a language that genuinely feels like
- 12:56Speaker 1: the best of both worlds.
- 12:57Speaker 2: Crystal Crystal is fascinating because it was explicitly heavily influenced
- 13:02Speaker 2: by Ruby.
- 13:03Speaker 1: Yeah, if you glance at a Crystal file, you would
- 13:04Speaker 1: swear you're looking at Ruby code.
- 13:06Speaker 2: But just like NIM, it compiles directly. To see the
- 13:10Speaker 2: author provides a benchmark to prove this speed. Actually, he
- 13:12Speaker 2: runs a script to calculate the Fibonacci sequence up to
- 13:15Speaker 2: one billion a billion. Yes, and in Crystal, this massive
- 13:19Speaker 2: calculation takes fewer than five seconds.
- 13:21Speaker 1: That is insane.
- 13:23Speaker 2: That is a level of CPU performance that a dynamically
- 13:26Speaker 2: typed interpreted scripting language could never dream of achieving.
- 13:29Speaker 1: How does it do that?
- 13:30Speaker 2: Crystal achieves this through advanced type inference. It looks dynamically
- 13:34Speaker 2: types like Ruby, but the compiler figures out the data
- 13:37Speaker 2: types of compile time, enduring memory safety and raw speed.
- 13:40Speaker 1: I have to challenge this premise, though, go for it.
- 13:42Speaker 1: Calculating the Fibonacci sequence to a billion in five seconds
- 13:46Speaker 1: is an incredible feed of engineering. Sure, but we are
- 13:49Speaker 1: building a telegram bot to tell us when the next
- 13:51Speaker 1: train leaves or to reply with the picture of a dog.
- 13:54Speaker 1: Isn't optimizing for that level of intense CPU performance? Total
- 13:58Speaker 1: overkill for what is his essentially just a text messaging
- 14:01Speaker 1: assistant for.
- 14:02Speaker 2: A single user checking a train schedule. Absolutely, it's overkill,
- 14:06Speaker 2: But think about scalability and infrastructure costs. Okay, if your
- 14:10Speaker 2: bot is adopted by one hundred thousand users, an inefficient
- 14:13Speaker 2: scripting language will require you to rent expensive, heavy duty
- 14:17Speaker 2: cloud servers just to keep up with the memory overhead
- 14:21Speaker 2: and the interpreter lag.
- 14:22Speaker 1: That gets pricey fast.
- 14:23Speaker 2: Because Crystal compiles to such highly optimized, lightweight C code,
- 14:28Speaker 2: you could theoretically run that massive one hundred thousand user
- 14:31Speaker 2: bot on a cheap five dollars a month virtual private server.
- 14:35Speaker 2: You aren't just optimizing for speed, you are optimizing for
- 14:38Speaker 2: server resources.
- 14:39Speaker 1: Oh. That puts it in perspective. The efficiency pays off
- 14:42Speaker 1: at scale, and Crystal doesn't sacrifice developer experience to get
- 14:45Speaker 1: there either, not at all. It has an amazing built
- 14:47Speaker 1: in sandbox feature called Crystal Play. You type that into
- 14:50Speaker 1: your terminal and it instantly launched the web server on
- 14:53Speaker 1: port eighty eighty, where you can test your code live
- 14:55Speaker 1: in a browser.
- 14:56Speaker 2: It's so user friendly.
- 14:57Speaker 1: But what really blew me away was the standard library.
- 15:01Speaker 1: The author shows an example where the code queries the
- 15:03Speaker 1: GitHub api to search for repositories. In most languages, you're
- 15:07Speaker 1: hunting down third party libraries for network requests.
- 15:10Speaker 2: Crystal, however, has eahttp client and Jason Parsing built right
- 15:14Speaker 2: into its core standard library that is so convenient you
- 15:17Speaker 2: don't have to import external packages just to perform basic
- 15:20Speaker 2: modern web functions. The language is fundamentally designed for the
- 15:23Speaker 2: Internet age out of the box, and.
- 15:25Speaker 1: When you are ready to build a larger project, Crystal's
- 15:28Speaker 1: tooling treats you like a professional. From second one. You
- 15:31Speaker 1: take Crystal init app my bot, and it instantly builds
- 15:34Speaker 1: out an entire, scalable project skeleton, testing folders, get ignore files, license,
- 15:40Speaker 1: and your shard dot EML dependency file.
- 15:42Speaker 2: And that Shard dot eml file represents a massive philosophical
- 15:46Speaker 2: shift in how Crystal handles packages compared to traditional ecosystems.
- 15:50Speaker 2: How so well, Crystal's package managers called shards. Instead of
- 15:54Speaker 2: relying on a centralized package repository which acts as a
- 15:58Speaker 2: single point of failure that can go offline or be
- 16:00Speaker 2: compromised by supply chain attacks, Crystal allows direct Git access
- 16:05Speaker 2: for dependencies.
- 16:07Speaker 1: Meaning you simply point your code directly to the source
- 16:10Speaker 1: code repository on GitHub. You completely bypass the middleman centralized server.
- 16:14Speaker 2: Exactly which inherently makes your build process significantly more resilient.
- 16:19Speaker 1: So we've explored the developer happiness of Ruby, the bare
- 16:22Speaker 1: metal optimization of NIM, and the scalable hybrid power of Crystal.
- 16:26Speaker 1: So if Crystal writes like beautiful Ruby and runs with
- 16:29Speaker 1: the blistering speed of c is Crystal the ultimate programming
- 16:33Speaker 1: language for building our personal digital assistance?
- 16:36Speaker 2: This raises an important question about the nature of tool optimization.
- 16:39Speaker 2: There is really no six thing as an ultimate language, ah,
- 16:42Speaker 2: the classic developer answer, Well, it's true. The best language
- 16:45Speaker 2: depends entirely on your specific ecosystem and constraints. For instance,
- 16:49Speaker 2: Crystal currently relies heavily on a Unix like environment. If
- 16:52Speaker 2: your native development machine is running Windows, you have to
- 16:55Speaker 2: use the Windows subsystem for Linux or WSL, which adds
- 16:59Speaker 2: a layer of virtualized complexity that might defeat the purpose
- 17:02Speaker 2: of a fast setup. Furthermore, the best language is often
- 17:06Speaker 2: simply the one that aligns best with your own mental
- 17:09Speaker 2: models of logic.
- 17:10Speaker 1: So what does this all mean? We started this journey
- 17:13Speaker 1: imagining a digital double handling your life while you relax
- 17:16Speaker 1: on a beach, and what Nicholas Muljik's book shows us
- 17:19Speaker 1: is that getting there isn't about finding one magical, perfect
- 17:23Speaker 1: piece of syntax. It's about learning how to translate your
- 17:27Speaker 1: physical problems into computational solutions. Whether you choose the interpreted
- 17:31Speaker 1: ease of Ruby to whip up a quick script to
- 17:33Speaker 1: check your doorbell, or you embrace the compile time friction
- 17:36Speaker 1: of NIM to build a tiny standalone binary, or you
- 17:40Speaker 1: leverage Crystal to build a massive, highly scalable architecture for
- 17:43Speaker 1: thousands of users. The real takeaway here is empowerment.
- 17:47Speaker 2: Yes, absolutely, building a.
- 17:48Speaker 1: Personal bot is a gateway to upgrading your own life.
- 17:51Speaker 1: You truly can stop worrying about checking the train schedules
- 17:53Speaker 1: at midnight and let your code do the heavy lifting
- 17:56Speaker 1: for you.
- 17:56Speaker 2: It democratizes automation. You don't need an enterprise grades server,
- 18:01Speaker 2: rack or a whole team of engineers to have a
- 18:02Speaker 2: personal assistant. You just need an understanding of your own constraints,
- 18:06Speaker 2: a few lines of code, and a chat app.
- 18:09Speaker 1: And that leaves us with one final slightly wild thought
- 18:12Speaker 1: to Mullover.
- 18:13Speaker 2: Oh boy, we've.
- 18:14Speaker 1: Seen today just how easy it is to spin up
- 18:16Speaker 1: a digital double to fetch images, parse Jason data, or
- 18:20Speaker 1: monitor trans at times using surprisingly little code. The barriers
- 18:24Speaker 1: to entry are practically gone. They really are, But as
- 18:28Speaker 1: these programming languages become increasingly abstracted, as the compilers get smarter,
- 18:32Speaker 1: and standard libraries do more of the heavy lifting for
- 18:35Speaker 1: us right out of the box. How far are we
- 18:37Speaker 1: from a future where our personal bots become smart enough
- 18:40Speaker 1: to write code for other bots?
- 18:42Speaker 2: Oh wow?
- 18:42Speaker 1: Imagine relaxing on that beach not just because your bot
- 18:45Speaker 1: is checking your emails, but because your bart noticed a
- 18:48Speaker 1: repeated inefficiency in your daily routine, automatically generated a brand new,
- 18:52Speaker 1: compiled robotic assistant, deployed it, and solved an inconvenience you
- 18:56Speaker 1: hadn't even consciously noticed yet until next time. Keep dye
- 19:00Speaker 1: moving deep