Computer Science Profile Banner
Computer Science Profile
Computer Science

@CompSciFact

252,010
Followers
19
Following
526
Media
11,923
Statuses

Daily tweets about computer science and related stuff @JohnDCook .

Joined November 2010
Don't wanna be here? Send us removal request.
@CompSciFact
Computer Science
1 year
Tweet media one
140
2K
13K
@CompSciFact
Computer Science
4 months
Tweet media one
13
3K
12K
@CompSciFact
Computer Science
6 years
Q: Why can’t programmers tell the difference between Halloween and Christmas? A: Because oct 31 = dec 25. #oldprogrammerjoke
24
1K
3K
@CompSciFact
Computer Science
2 years
Tweet media one
19
485
2K
@CompSciFact
Computer Science
3 years
“The S in IoT stands for security.”
21
446
2K
@CompSciFact
Computer Science
1 month
Tweet media one
9
149
2K
@CompSciFact
Computer Science
10 years
2015 is a palindrome in binary: 11111011111
60
3K
1K
@CompSciFact
Computer Science
1 month
Tweet media one
13
163
1K
@CompSciFact
Computer Science
5 years
Q: Why can't programmers tell the difference between Halloween and Christmas? A: Because oct 31 = dec 25. #oldiebutgoodie
11
454
1K
@CompSciFact
Computer Science
7 years
'The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise' - Edsger Dijkstra
Tweet media one
5
475
963
@CompSciFact
Computer Science
6 months
Tweet media one
7
197
949
@CompSciFact
Computer Science
1 year
Is any other sculpture so associated with a CS textbook?
Visited a very special sculpture
Tweet media one
65
122
2K
18
74
881
@CompSciFact
Computer Science
6 years
You might be a computer scientist if you think 1024 is a nice, round number.
22
222
859
@CompSciFact
Computer Science
2 months
The dragon book has become the dragonfly book.
Tweet media one
20
151
868
@CompSciFact
Computer Science
9 years
'The hardest problem in computer science is not being an opinionated jerk about everything.' -- @ntakayama
12
1K
762
@CompSciFact
Computer Science
10 years
RT @KenScambler : Legacy. Looks easy; should be done in half an hour I reckon. http://t.co/XYjIzKtT71
Tweet media one
18
1K
661
@CompSciFact
Computer Science
7 years
If you look very carefully, the title says "Numerical methods that usually work." The word "usually" is in light gray type. In the original hardback version, "usually" wasn't printed per se, but pressed into the cover while the other letters were colored silver.
Tweet media one
6
209
636
@CompSciFact
Computer Science
4 years
'Just because you've implemented something doesn't mean you understand it.' -- Brian Cantwell Smit
10
118
634
@CompSciFact
Computer Science
4 years
'Unix is user-friendly; it's just picky about who its friends are.'
5
134
622
@CompSciFact
Computer Science
1 year
Tweet media one
8
129
620
@CompSciFact
Computer Science
5 years
'The idea that people knew a thing or two in the '70s is strange to a lot of young programmers.' -- Donald Knuth
14
193
585
@CompSciFact
Computer Science
7 years
Fallacies of distributed computing 1. The network is reliable. 2. Latency is zero. 3. Bandwidth is infinite. 4. The network is secure. 5. Topology doesn't change. 6. There is one administrator. 7. Transport cost is zero. 8. The network is homogeneous.
7
299
577
@CompSciFact
Computer Science
4 years
John von Neumann invented merge sort in 1945. It requires O(n log n) comparisons.
9
72
551
@CompSciFact
Computer Science
3 years
'Learning to program teaches you how to think. Computer science is a liberal art.' -- Steve Jobs
9
109
508
@CompSciFact
Computer Science
6 years
'Fancy algorithms are slow when n is small, and n is usually small.' -- Rob Pike
6
167
516
@CompSciFact
Computer Science
4 years
When you see a clever algorithm presented in a CS class in 20 minutes, it can be intimidating. You reasonably think "I could never come up with anything like that." But the person who did come up with it spent more than 20 minutes thinking about it. Maybe months or years.
9
125
509
@CompSciFact
Computer Science
2 years
Why can't programmers tell Halloween from Christmas? Because oct 31 = dec 25. (The joke worked better when programmers were more accustomed to octal.)
18
94
515
@CompSciFact
Computer Science
6 years
There's a new programming language, and now programming is going to be easy.
Tweet media one
11
219
507
@CompSciFact
Computer Science
8 years
'... the best programs are the ones written when the programmer is supposed to be working on something else.' -- Melinda Varian
3
337
503
@CompSciFact
Computer Science
3 years
'Unix is user-friendly; it's just picky about who its friends are.'
6
87
493
@CompSciFact
Computer Science
5 years
RSA algorithm in a poem, by Daniel G. Treat. Take two large prime numbers, q and p. Find the product n, and the totient ϕ . If e and ϕ have GCD one and d is e's inverse, then you're done! For sending m raised to the e reduced mod n gives secre-c.
5
188
474
@CompSciFact
Computer Science
3 years
“If your config file syntax becomes Turing complete, stop now and cancel the project.” — J. B. Crawford
8
94
478
@CompSciFact
Computer Science
6 years
"Why does CS count from 0? Nobody does that." How many years old are you during your first year of life? At what age do you enter your second decade? Are we in the 20th century or the 21st century?
22
155
480
@CompSciFact
Computer Science
4 years
A distributed system is one in which the failure of a computer you didn't even know existed can render your own computer unusable. - Lamport
3
90
465
@CompSciFact
Computer Science
4 years
'One of my most productive days was throwing away 1000 lines of code.' -- Ken Thompson
5
70
458
@CompSciFact
Computer Science
3 years
'Hardware eventually fails. Software eventually works.' -- Michael Hartung
7
90
458
@CompSciFact
Computer Science
6 years
'The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise' - Edsger Dijkstra
3
196
454
@CompSciFact
Computer Science
5 years
'Hardware eventually fails. Software eventually works.' -- Michael Hartung
8
151
460
@CompSciFact
Computer Science
5 years
Swap x and y without using a third variable. x = x^y y = y^x x = x^y where ^ is XOR.
18
112
449
@CompSciFact
Computer Science
7 years
'The hardest problem in computer science is not being an opinionated jerk about everything.' -- @ntakayama
9
229
442
@CompSciFact
Computer Science
7 years
'So much complexity in software comes from trying to make one thing do two things.' -- Ryan Singer
5
231
432
@CompSciFact
Computer Science
3 months
Tweet media one
2
61
435
@CompSciFact
Computer Science
3 years
'Code is like poetry; most of it shouldn't have been written.' -- @MetaThis
4
128
429
@CompSciFact
Computer Science
4 years
'Fancy algorithms are slow when n is small, and n is usually small.' -- Rob Pike
2
63
426
@CompSciFact
Computer Science
6 years
Asking what is the best programming language is like asking what is the best chess move. Neither question has an answer without some context.
13
167
425
@CompSciFact
Computer Science
7 years
There's a new record for the largest known prime. Written in binary, it is a string of 77,232,917 ones.
Tweet media one
7
278
420
@CompSciFact
Computer Science
8 years
The day of your birth is your 0th birthday. It’s not just computer scientists who count from zero.
6
294
426
@CompSciFact
Computer Science
4 years
'Learning to program teaches you how to think. Computer science is a liberal art.' -- Steve Jobs
3
79
420
@CompSciFact
Computer Science
6 years
'Unix is user-friendly; it's just picky about who its friends are.'
5
149
424
@CompSciFact
Computer Science
7 years
"If you don't run experiments before you start designing a new system, your entire system will be an experiment." -- Mike Williams
1
295
409
@CompSciFact
Computer Science
3 years
Goodhart's law: When a metric becomes a target, it ceases to be a good metric.
2
103
410
@CompSciFact
Computer Science
2 months
Tweet media one
4
43
420
@CompSciFact
Computer Science
7 years
"Computers in the future may weigh no more than 1.5 tons." -- Popular Mechanics, 1949
7
161
351
@CompSciFact
Computer Science
9 years
max(r, s) = (r + s + |r - s|)/2 min(r, s) = (r + s - |r - s|)/2
14
270
405
@CompSciFact
Computer Science
4 years
Objects are data with functions. Closures are functions with data.
4
74
401
@CompSciFact
Computer Science
8 years
'Hardware eventually fails. Software eventually works.' -- Michael Hartung
7
296
405
@CompSciFact
Computer Science
6 years
'Thinking doesn't guarantee that we won't make mistakes. But not thinking guarantees that we will.' -- Leslie Lamport
Tweet media one
8
176
400
@CompSciFact
Computer Science
5 months
Tweet media one
9
80
397
@CompSciFact
Computer Science
8 years
'The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise' - Edsger Dijkstra
3
251
385
@CompSciFact
Computer Science
5 years
That awkward moment when you realize you can't find the bug in your program because there isn't one. Your program is right but your expectations are wrong.
9
117
373
@CompSciFact
Computer Science
6 years
'Unix is user-friendly; it's just picky about who its friends are.'
3
168
369
@CompSciFact
Computer Science
5 years
C code to test whether an unsigned integer u > 0 is a power of 2: (u & (u-1)) == 0
8
83
377
@CompSciFact
Computer Science
4 years
Objects are data with functions. Closures are functions with data.
10
83
365
@CompSciFact
Computer Science
3 years
'Programming languages teach you not to want what they don't provide.' -- Paul Graham
8
58
358
@CompSciFact
Computer Science
3 years
Algebra, Topology, Differential Calculus, and Optimization Theory For Computer Science and Machine Learning 1,962 page PDF
7
88
363
@CompSciFact
Computer Science
4 years
'Hardware eventually fails. Software eventually works.' -- Michael Hartung
3
107
369
@CompSciFact
Computer Science
6 years
Computer scientist: "Unfortunately there's no known algorithm for solving this problem." Cryptographer: "Cool!"
3
104
360
@CompSciFact
Computer Science
7 years
'The idea that people knew a thing or two in the '70s is strange to a lot of young programmers.' -- Donald Knuth
6
227
359
@CompSciFact
Computer Science
5 years
'Unix is user-friendly; it's just picky about who its friends are.'
2
107
361
@CompSciFact
Computer Science
4 years
“An algorithm is a finite answer to an infinite number of questions.” — Stephen Kleene
5
90
357
@CompSciFact
Computer Science
8 years
'The fastest algorithm can frequently be replaced by one that is almost as fast and much easier to understand.' -- Douglas W. Jones
3
261
347
@CompSciFact
Computer Science
5 years
Seven design principles from Programming Pearls by Jon Bentley: 1. Work on the right problem. 2. Explore the design space of solutions. 3. Look at the data. 4. Use the back of the envelope. 5. Build prototypes. 6. Make trade-offs when you have to. 7. Keep it simple.
3
129
354
@CompSciFact
Computer Science
8 years
'Code is like poetry; most of it shouldn't have been written.' -- @MetaThis
1
369
344
@CompSciFact
Computer Science
9 years
'The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise' - Edsger Dijkstra
2
434
348
@CompSciFact
Computer Science
4 years
mRNA vaccines are to traditional vaccines what JavaScript is to static HTML. Instead of delivering a virus fragment, mRNA vaccines deliver code instructing your body to make virus fragments.
20
114
354
@CompSciFact
Computer Science
5 years
'Code is like poetry; most of it shouldn't have been written.' -- @MetaThis
3
120
349
@CompSciFact
Computer Science
9 years
'... the best programs are the ones written when the programmer is supposed to be working on something else.' -- Melinda Varian
2
342
331
@CompSciFact
Computer Science
2 years
'Inside every large program is a small program trying to get out.' -- Tony Hoare
1
55
329
@CompSciFact
Computer Science
4 years
Find the average of two unsigned integers without risking overflow: (x & y) + ((x ^ y) >> 1) Rounds down in the average isn’t an integer.
13
64
344
@CompSciFact
Computer Science
6 years
"Programs that write programs are the happiest programs in the world."
6
89
332
@CompSciFact
Computer Science
4 years
'If you lie to the compiler, it will get its revenge.' -- Henry Spencer
7
69
334
@CompSciFact
Computer Science
5 years
“We already store data. In a database. It works well.” Jimmy Wales in response to the suggestion that Wikipedia store data in a blockchain.
4
103
338
@CompSciFact
Computer Science
3 years
John von Neumann invented merge sort in 1945. It requires O(n log n) comparisons.
5
32
333
@CompSciFact
Computer Science
4 years
'So much complexity in software comes from trying to make one thing do two things.' -- Ryan Singer
7
73
334
@CompSciFact
Computer Science
7 years
'No matter how slow you are writing clean code, you will always be slower if you make a mess.' - @UncleBobMartin
2
212
330
@CompSciFact
Computer Science
5 years
'Code is like poetry; most of it shouldn't have been written.' -- @MetaThis
5
108
333
@CompSciFact
Computer Science
12 years
10 papers every programmer should read (at least twice) http://t.co/qPWCMGJR
3
140
338
@CompSciFact
Computer Science
4 years
'... the best programs are the ones written when the programmer is supposed to be working on something else.' -- Melinda Varian
7
62
336
@CompSciFact
Computer Science
8 years
"The idea that people knew a thing or two in the '70s is strange to a lot of young programmers." -- Donald Knuth
6
311
326
@CompSciFact
Computer Science
6 years
'The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise' - Edsger Dijkstra
0
157
332
@CompSciFact
Computer Science
4 years
'The idea that people knew a thing or two in the '70s is strange to a lot of young programmers.' -- Donald Knuth
5
60
327
@CompSciFact
Computer Science
8 years
'Hardware eventually fails. Software eventually works.' -- Michael Hartung
5
349
324
@CompSciFact
Computer Science
10 years
"Hardware eventually fails. Software eventually works." -- Michael Hartung
14
447
321
@CompSciFact
Computer Science
7 years
'The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise' - Edsger Dijkstra
0
189
327
@CompSciFact
Computer Science
6 years
There's a new prime record. Written in hex, it's a 1 followed by over 20 million F's.
Tweet media one
5
186
329
@CompSciFact
Computer Science
6 years
'... the best programs are the ones written when the programmer is supposed to be working on something else.' -- Melinda Varian
5
106
328
@CompSciFact
Computer Science
3 years
AES encrypted penguin image:
Tweet media one
6
87
328