Computer Science Profile Banner
Computer Science Profile
Computer Science

@CompSciFact

Followers
249,671
Following
19
Media
469
Statuses
11,597

Daily tweets about computer science and related stuff @JohnDCook .

Joined November 2010
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
@CompSciFact
Computer Science
10 months
Tweet media one
144
2K
14K
@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
1 year
Tweet media one
19
490
2K
@CompSciFact
Computer Science
3 years
“The S in IoT stands for security.”
21
446
2K
@CompSciFact
Computer Science
9 years
2015 is a palindrome in binary: 11111011111
60
3K
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
12
457
1K
@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
Tweet media one
5
480
970
@CompSciFact
Computer Science
2 months
Tweet media one
7
202
985
@CompSciFact
Computer Science
7 months
Is any other sculpture so associated with a CS textbook?
@endingwithali
ali
7 months
Visited a very special sculpture
Tweet media one
66
125
2K
19
76
894
@CompSciFact
Computer Science
6 years
You might be a computer scientist if you think 1024 is a nice, round number.
22
222
864
@CompSciFact
Computer Science
9 years
'The hardest problem in computer science is not being an opinionated jerk about everything.' -- @ntakayama
12
1K
770
@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
669
@CompSciFact
Computer Science
6 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
208
641
@CompSciFact
Computer Science
3 years
'Just because you've implemented something doesn't mean you understand it.' -- Brian Cantwell Smit
10
118
643
@CompSciFact
Computer Science
4 years
'Unix is user-friendly; it's just picky about who its friends are.'
5
135
626
@CompSciFact
Computer Science
7 months
Tweet media one
8
130
631
@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
198
591
@CompSciFact
Computer Science
6 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
303
581
@CompSciFact
Computer Science
3 years
John von Neumann invented merge sort in 1945. It requires O(n log n) comparisons.
9
72
556
@CompSciFact
Computer Science
6 years
'Fancy algorithms are slow when n is small, and n is usually small.' -- Rob Pike
6
168
521
@CompSciFact
Computer Science
3 years
'Learning to program teaches you how to think. Computer science is a liberal art.' -- Steve Jobs
9
109
511
@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
95
523
@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
127
519
@CompSciFact
Computer Science
7 years
'... the best programs are the ones written when the programmer is supposed to be working on something else.' -- Melinda Varian
3
339
509
@CompSciFact
Computer Science
5 years
There's a new programming language, and now programming is going to be easy.
Tweet media one
11
219
511
@CompSciFact
Computer Science
3 years
'Unix is user-friendly; it's just picky about who its friends are.'
6
88
497
@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
157
485
@CompSciFact
Computer Science
2 years
“If your config file syntax becomes Turing complete, stop now and cancel the project.” — J. B. Crawford
8
95
485
@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
190
479
@CompSciFact
Computer Science
3 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
92
471
@CompSciFact
Computer Science
4 years
'One of my most productive days was throwing away 1000 lines of code.' -- Ken Thompson
5
70
460
@CompSciFact
Computer Science
3 years
'Hardware eventually fails. Software eventually works.' -- Michael Hartung
7
91
461
@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
197
460
@CompSciFact
Computer Science
5 years
'Hardware eventually fails. Software eventually works.' -- Michael Hartung
8
151
461
@CompSciFact
Computer Science
4 years
Swap x and y without using a third variable. x = x^y y = y^x x = x^y where ^ is XOR.
18
112
455
@CompSciFact
Computer Science
6 years
'The hardest problem in computer science is not being an opinionated jerk about everything.' -- @ntakayama
9
232
450
@CompSciFact
Computer Science
7 years
'So much complexity in software comes from trying to make one thing do two things.' -- Ryan Singer
5
233
438
@CompSciFact
Computer Science
3 years
'Code is like poetry; most of it shouldn't have been written.' -- @MetaThis
4
130
435
@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
170
430
@CompSciFact
Computer Science
3 years
'Fancy algorithms are slow when n is small, and n is usually small.' -- Rob Pike
2
64
430
@CompSciFact
Computer Science
7 years
The day of your birth is your 0th birthday. It’s not just computer scientists who count from zero.
6
296
432
@CompSciFact
Computer Science
4 years
'Learning to program teaches you how to think. Computer science is a liberal art.' -- Steve Jobs
3
79
426
@CompSciFact
Computer Science
6 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
279
422
@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
417
@CompSciFact
Computer Science
6 years
'Unix is user-friendly; it's just picky about who its friends are.'
5
148
425
@CompSciFact
Computer Science
3 years
Goodhart's law: When a metric becomes a target, it ceases to be a good metric.
2
104
416
@CompSciFact
Computer Science
3 years
Objects are data with functions. Closures are functions with data.
4
74
405
@CompSciFact
Computer Science
7 years
"Computers in the future may weigh no more than 1.5 tons." -- Popular Mechanics, 1949
7
160
357
@CompSciFact
Computer Science
7 years
'Hardware eventually fails. Software eventually works.' -- Michael Hartung
7
297
408
@CompSciFact
Computer Science
9 years
max(r, s) = (r + s + |r - s|)/2 min(r, s) = (r + s - |r - s|)/2
14
273
408
@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
181
404
@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
3
255
391
@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
118
377
@CompSciFact
Computer Science
6 years
'Unix is user-friendly; it's just picky about who its friends are.'
3
170
372
@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
84
379
@CompSciFact
Computer Science
4 years
Objects are data with functions. Closures are functions with data.
10
84
371
@CompSciFact
Computer Science
3 years
'Programming languages teach you not to want what they don't provide.' -- Paul Graham
8
58
362
@CompSciFact
Computer Science
2 years
Algebra, Topology, Differential Calculus, and Optimization Theory For Computer Science and Machine Learning 1,962 page PDF
7
87
369
@CompSciFact
Computer Science
4 years
'Hardware eventually fails. Software eventually works.' -- Michael Hartung
3
107
373
@CompSciFact
Computer Science
5 years
Computer scientist: "Unfortunately there's no known algorithm for solving this problem." Cryptographer: "Cool!"
3
105
361
@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
226
365
@CompSciFact
Computer Science
5 years
'Unix is user-friendly; it's just picky about who its friends are.'
2
109
364
@CompSciFact
Computer Science
4 years
“An algorithm is a finite answer to an infinite number of questions.” — Stephen Kleene
5
91
359
@CompSciFact
Computer Science
7 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
349
@CompSciFact
Computer Science
8 years
'Code is like poetry; most of it shouldn't have been written.' -- @MetaThis
1
370
352
@CompSciFact
Computer Science
4 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
356
@CompSciFact
Computer Science
3 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
115
357
@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
439
351
@CompSciFact
Computer Science
5 years
'Code is like poetry; most of it shouldn't have been written.' -- @MetaThis
3
122
350
@CompSciFact
Computer Science
2 years
'Inside every large program is a small program trying to get out.' -- Tony Hoare
2
55
339
@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
347
@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
2
345
339
@CompSciFact
Computer Science
3 years
'If you lie to the compiler, it will get its revenge.' -- Henry Spencer
7
70
339
@CompSciFact
Computer Science
4 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
104
341
@CompSciFact
Computer Science
6 years
"Programs that write programs are the happiest programs in the world."
6
89
337
@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
214
335
@CompSciFact
Computer Science
2 years
John von Neumann invented merge sort in 1945. It requires O(n log n) comparisons.
5
34
342
@CompSciFact
Computer Science
5 years
'Code is like poetry; most of it shouldn't have been written.' -- @MetaThis
5
109
336
@CompSciFact
Computer Science
3 years
'So much complexity in software comes from trying to make one thing do two things.' -- Ryan Singer
7
75
339
@CompSciFact
Computer Science
3 years
'... the best programs are the ones written when the programmer is supposed to be working on something else.' -- Melinda Varian
8
62
336
@CompSciFact
Computer Science
12 years
10 papers every programmer should read (at least twice) http://t.co/qPWCMGJR
3
142
339
@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
62
335
@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
313
330
@CompSciFact
Computer Science
5 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
159
336
@CompSciFact
Computer Science
9 years
"Hardware eventually fails. Software eventually works." -- Michael Hartung
14
447
324
@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
336
@CompSciFact
Computer Science
8 years
'Hardware eventually fails. Software eventually works.' -- Michael Hartung
5
352
325
@CompSciFact
Computer Science
5 years
'... the best programs are the ones written when the programmer is supposed to be working on something else.' -- Melinda Varian
5
107
331
@CompSciFact
Computer Science
5 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
187
331
@CompSciFact
Computer Science
6 years
'The idea that people knew a thing or two in the '70s is strange to a lot of young programmers.' -- Donald Knuth
2
107
324
@CompSciFact
Computer Science
3 years
AES encrypted penguin image:
Tweet media one
6
87
329
@CompSciFact
Computer Science
8 years
"It's hard to do a really good job on anything you don't think about in the shower." -- Paul Graham
4
288
313
@CompSciFact
Computer Science
4 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
4
110
321
@CompSciFact
Computer Science
8 years
'Unix is user-friendly; it's just picky about who its friends are.'
3
383
310
@CompSciFact
Computer Science
4 years
Learning a new programming language is easy compared to learning the new ecosystem that comes with it.
4
91
319
@CompSciFact
Computer Science
2 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
1
76
323
@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
234
319