CF2014 - Code Matters
Upcoming SlideShare
Loading in...5
×
 

CF2014 - Code Matters

on

  • 293 views

「コードをしたためる」ということは「プログラマー」という「職人」の「仕事」だと巷では認識されているようです。

「コードをしたためる」ということは「プログラマー」という「職人」の「仕事」だと巷では認識されているようです。
その認識が誤りで、どう誤りで、誤った認識のままだと何がおこるのか。本講演がその認識を改めるきっかけとなれば幸いです。

Statistics

Views

Total Views
293
Views on SlideShare
277
Embed Views
16

Actions

Likes
0
Downloads
1
Comments
0

1 Embed 16

https://twitter.com 16

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

CF2014 - Code Matters CF2014 - Code Matters Presentation Transcript

  • 1. Code Matters @dankogai
  • 2. What’s Code?
  • 3. Dictionary says… 1.a system of words, letters, figures, or other symbols substituted for other words, letters, etc., esp. for the purposes of secrecy: 2. Computing program instructions: 3.a systematic collection of laws or regulations:
  • 4. Dictionary says… 1.a system of words, letters, figures, or other symbols substituted for other words, letters, etc., esp. for the purposes of secrecy: 2. Computing program instructions: 3.a systematic collection of laws or regulations:
  • 5. Dictionary says… 1.暗号 2.軟件 3.法律
  • 6. What gives? 1.Not so easy to read. 2.Not only readable, but executable. 3.Not always executed as written.
  • 7. An Example
  • 8. A Pair of Cords of Code • Decoded in 1953 •ATGC = 4 letters = 2 bits • 3 bases = 1 codon = 6 bits • 6 billion bases = 1.5 GBytes • Micro SD card can hold 20 of us (without compression :-)
  • 9. Physics vs. Logics
  • 10. Physics: conservation
  • 11. Physics: conservation •Mass + Energy •Moment •Angular Moment •Electric Charges •…
  • 12. Physics: conservation To give something, it must be taken from somewhere.
  • 13. Logics: propagation
  • 14. Logics: propagation •Copying is easier than moving •To move something, you first copy then delete the original
  • 15. Logics: propagation •Copying is easier than moving •To move something, you first copy then delete the original •What happens if you forget to delete the source?
  • 16. Economics: Physics or Logics?
  • 17. Economics: Physics or Logics? •It’s Physics! •If I give you a 10,000 yen, you have 10,000 yen more and I have 10,000 yen
  • 18. Economics: Physics or Logics? •It’s Logics! •I just left 10,000 dollars in my bank account. It is now 10,300 dollars. Where’s that 300 dollars come from?
  • 19. Economics: Physics AND Logics •It conserves spatially •It propagates temporally •It is an emulation of what we look, hear, and feels at the reality
  • 20. Our Reality != Physics
  • 21. Our Reality == Physics + Logics •See how we design money •Emulates physics, adjusted to our perception •See how we design UI •Emulates physics, adjusted to our perception
  • 22. Adjusted to Perception • A physically impossible building • Looks so real • Why?
  • 23. Physics + Logics ⇒ Real + Imaginary Fundamental Theorem of Algebra • The field of complex numbers is Algebraically closed •You need not only real numbers but also imaginary numbers
  • 24. Hardware: Physical Economy •Hardcoded •Cost of production ∝ Number of Units ↓ Inventory required ↓ You have to repair the broken parts to fix it ↑ People are used to paying for it
  • 25. Software: Logical Economy •(soft)coded •The cost of single copy ≒ The cost of billion copies ↑ No Inventory required ↑You can fix the broken parts later ↓People are used to paying for it
  • 26. Hardware + Software = i + P* • iPhone itself = Physical • No one else but Samsung can make 200 million of them a year • iOS = Logical • Samsung has to import Android to complete the product
  • 27. Reality changes • Introduced in 2007 • "A Phone, an iPod, an internet communicator" • People are least impresssed with "an internet communicator" • 7 years later • who makes a phone call with smart phones?
  • 28. Reality changes - but only slowly • iOS is NOT quite logical • Look and feel = physics • > 90% of iOS is used up to emulate physics • But it is getting less physical generation by generation • iOS6 -> iOS7
  • 29. Q. Why did Apple Make iPhones Big?
  • 30. Don’t bet against the code
  • 31. Don’t bet agains the code • (Unless you are a scholar) • When physics does not work, think logics • When logics does not work, think physics • Reality is complex, not real or imaginary.
  • 32. That’s it - for now for q in questions { q.answer() }
  • 33. Further Reading 小飼弾のコードなエッセイ 小飼弾 技術評論社 ISBN:978-4774156644