an example of the importance of affordances for new users: i would probably be more productive if i learned how to use a debugger, but no debugger has ever been easier to start using than adding more printlns.
Replying to @withoutboats
yosh Retweeted electrified filth
Speaking of printlns; I learned how to create them with a single character in vim the other day. Optimized println workflow; the best :Phttps://twitter.com/sadisticsystems/status/963485911802679296 …
yosh added,
electrified filth @sadisticsystems
A gift for frequent print debuggers who use vim:
type ! and insert a line with print(LINE NUMBER)
au FileType rust nmap ! :s/^/\=printf("println!(\"%d\");\n", line('.'))<CR>
au FileType go nmap ! :s/^/\=printf("fmt.Println(\"%d\")\n", line('.'))<CR>
etc...
#vim #debugging
Show this thread
7:00 AM - 16 Apr 2018
0 replies
0 retweets
5 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.