Categories
Programming

Idiots should stay away from jQuery

Consider this one of my first real lessons of writing code. Idiots should stay away from jQuery. I’m sure by this time in internet history this is well documented phenomenon. I got a job, wrote a bunch of form validation in jQuery like an idiot. No functions, just purely procedural. Now I have to clean […]

Categories
Bitcoin Programming

Working through BUIDL Bootcamp: BankCoin

Problem with ECDSA Coin The problem with our previous coin is that it could be doublespent. Alice could have sent that coin to anyone before sending it to us. There is no source of truth. We can use centralization to fix this. Every time a coin is sent, we use a “bank” to make sure […]

Categories
Bitcoin Programming

Working through BUIDL Bootcamp: ECDSA Coin

Overview of Lesson In my opinion, this lesson makes a lot of sense once you finish it. You’re kept a little bit in the dark while working through it, and even at the end, you can be a little confused about what is going on. The fundamental thought of this lesson is this: We’re building […]

Categories
Bitcoin Programming

Working through BUIDL Bootcamp: PNG Coin

Fungibility means every coin is the same, or interchangeable. Definition: In economics, fungibility is the property of a good or a commodity whose individual units are essentially interchangeable, and each of its parts is indistinguishable from another part. We serialize the coins, because this is how we would transfer the data over the network. Serialization […]

Categories
Programming

Introduction to AJAX

History of AJAX The pre-history to AJAX was a technology called “Livescript” developed by Netscape. This allowed users to interact with the browser using small scripts, a precursor to JavaScript. Later a pseudo-asynchronous method was developed, using iFrames in order to change the content of a page, once it had been loaded and was termed […]

Categories
Programming

Brief Introduction to PushState in WordPress

Yesterday, I was developing a WordPress website and I needed to incorporate PushState in order to properly fulfill particular specifications. I think it took me a lot longer than I needed, partially because I didn’t come across any easy documentation to understand how to work with PushState. So, consider this an introductory guide to using […]

Categories
Bitcoin Programming

Bitcoin & Protocol

Bitcoin is going to be a protocol. Bitcoin is not currently a protocol. Bitcoin is like the Internet. The Internet has 8 layers of infrastructure, that let you go on FaceBook. But it didn’t start with 8 layers. Bitcoin has 1 ½ layers. The blockchain, and maybe Lightning Network. We have to wait and see […]

Categories
Programming

Programmer vs Engineer

Lately I’ve been diving deep into the fundamentals. One thing I was quite interested in, was the underlying architecture of Git. I didn’t understand was quite how Git stored information. Then, I read about Hash Tables in Four Semesters of Computer Science in 5 hours. It was quite enlightening. It made me realize the difference […]

Categories
Programming

Frustrations and Programming

The most frustrated I get when I’m programming is when I focus on the outcome, and not the process. You can learn how to program by focusing on the outcome. But I think the truly excellent programmers understand the process. Example: I learned Ruby on Rails lately. It abstracts away a lot of the process. […]