HomeНаука и техникаRelated VideosMore From: Haseeb Qureshi

Let's build a blockchain! — A mini-cryptocurrency in Ruby (Haseeb Qureshi)

473 ratings | 21723 views
Ever wondered how cryptocurrencies like Bitcoin or Ethereum work? Well, what better way to find out than to build one! Come watch this lecture by Haseeb where he builds a blockchain from scratch in Ruby. By the end, we'll definitely all be rich with something resembling money. Probably. Slides: https://speakerdeck.com/haseebq/lets-build-a-blockchain-a-mini-cryptocurrency-in-ruby Github code: https://github.com/Haseeb-Qureshi/lets-build-a-blockchain This talk was generously hosted by App Academy. App Academy helps exciting companies hire promising software engineers. More than 2,000 young professionals apply for just 60 spots in App Academy's 1,000 hour web immersive program. If accepted, they learn computer science fundamentals, Ruby on Rails, JavaScript and React. For those that make it through the program, they get high paying jobs with companies such as Facebook, Google, Tesla or Linkedin. To follow Haseeb: https://twitter.com/hosseeb https://haseebq.com
Html code for embedding videos on your blog
Text Comments (46)
Jackson Lenhart (1 year ago)
Start of talk: 17:22 Great talk, thank you
CJ Odina (1 year ago)
Jackson Lenhart God bless you!
Joselie Castañeda (1 year ago)
thanks captain
Michael McGurk (1 year ago)
you da real mvp
Charlie Egan (3 months ago)
Great talk - many thanks!
Feitan (5 months ago)
Now i'm curious, dang gotta back to code with ruby and cryptocurrencies never interested me.
mbkc (4 months ago)
after few mounth discovering ruby & programming, I feel like it's not the best language for blockchains (in term of popularity, I cant really judge efficiency/possibilities). JS, python or Go looks more adequat. Maybe a real programmer could give us his point of view (but Ruby is so cool man, dont hesitate learning it !)
Cristian WS (6 months ago)
I truly appreciate what you did here BUT, storing blocks in an array? That would never ever scale. All blockchain on the web show that approach however that's something the entire stack overflow defines as "toy implementation"
Rahul Kumar (5 months ago)
He says it here that a it's a linked list. https://youtu.be/3aJI1ABdjQk?t=6300
Manoj Singh (7 months ago)
Great work Haseeb, lot of things clarified in this video; just a query, can i assume that if the miners are not adding new blocks on chain ( in another way, there are less transactions to be added to blockchain in a business scenario) then probability of bad block getting added increases?
iera (7 months ago)
1:41:28 We have a blockchain! *and the crowd goes wild*
Manuel Korfmann (29 days ago)
is there any continuation of this? like ruby blockchain tech?
Juan (8 months ago)
This is one of the best talks that I've watched in my entire life. Thank you
Pat Hooser (10 months ago)
Cryptocurreny is going to kill most banks
mbkc (4 months ago)
All commercial banks I believe, slowly but surely. Why should we have banks if we have programmable money ? And it looks like it's just starting (but 1st, banks will try to kill cryptocurrencies, and they'll fail) dont take this comment srsly :^)
Rayson Kong (11 months ago)
this is good stuff, thanks for the talk!!!
Ahmedin Hassen (11 months ago)
If Alice send 0.05 btc to Bob, will this transaction be a single block on the Blockchain? will the miner get 12.5 btc for verifying 0.05 btc transaction?
Ahmedin Hassen (11 months ago)
I think I have the answer for this my own question. 1 transaction is not really 1 block. a block usually contains multiple transactions (1block = 1MB in size) so as long as the block size is less than 1MB then transactions will be added to the block...
Cumpacho (1 year ago)
There are tutorials in spanish on this?
Andrei (1 year ago)
I learned alot, tho I can't read the code, never used ruby before, is this possible on Javascript
Hanes Barbosa (1 year ago)
Check this for a Javascript framework: https://lisk.io
Michael Madison (1 year ago)
Haseeb, I saw this video and have been enjoying in chunks between other work. I see the brilliant light in you man. I literally stopped and read about your journey; definitely an interesting one. I've learned that nothing is wasted in our experiences, everything is brought to bear to be of value at some point. Would love to hear about what you're working on now.
Thomas Groh (1 year ago)
Thanks for sharing, nice conf learned so much!!
Joe Hunt (1 year ago)
Excellent video! You've covered a lot of technical ground with clear concise example of real working code. Too bad the video is a little laggy.
Chief (1 year ago)
im looking for creat my own crypto in ruby , this vid will help me ? there any Book for learn it?first is for my own expérience , any good pdf for it ? thanks you , go look around the vidéo 👌👍
Kevin L (1 year ago)
in the update_state() helper function, what is the meaning of [STATE[port], [movie, version_number]].compact.max_by(&:last)
Jonasauruz (1 year ago)
So per a selfish mining scenario, what if an entity updates via gossip at a fractional rate comparable to the network? ie: perhaps the network isnt large enough or after some software update?
Eric Iacutone (1 year ago)
This is great, thanks!
John G. Moore, Jr. (1 year ago)
Damn, that was fire. Well done.
Vitaliy Holovko (1 year ago)
Awesome! Please do more videos
Kill3R (1 year ago)
fv
Agent Smith (1 year ago)
great talk, and great talk at ruby conf!!
Alberto Harres Rocha (1 year ago)
I'd like to know the next step to learn more about on how to build a cryptocurrency
rubyrails.ninja (1 year ago)
great video and great subject about ruby, crypto and blockchain, thanks :)
Haseeb, can You implement torrent? You already got DHT.:)
Naga Krushna Y (1 year ago)
Sir do you have any Blockchain app implemented in Ruby on rails or React ?
Antonio Lorusso (1 year ago)
great talk, thanks!
Steven Galvis (1 year ago)
great work haseeb please do more videos
Andrés Colón (1 year ago)
Great talk. Thanks for sharing!
Keke Arif (1 year ago)
Fantastic. One of the best programming talks I’ve ever seen. Especially appreciated the gossip protocol section and making it clear how a p2p works. Most tutorials don’t touch this.
Great talk and performance. I will use this in a local meetup, referring to the source ofc. You rock!
Craig Mullins (1 year ago)
Any github resources or anything? Slides? Zip files?
it's here, the github name was mispelled in last slide, but I found it here https://github.com/Haseeb-Qureshi/lets-build-a-blockchain
Haseeb Qureshi (1 year ago)
Yep, added links for slides and Github repo in the description!
Huang Wenwei (1 year ago)
👍
Mike Gregory (1 year ago)
Awesome talk! I'm playing with this thing right now. Learned a ton.

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.