News for hackers. Stuff that matters.
Re:Ask HN: What Lived Up to the Hype? by YesThatTom2 on Thursday December 24, 2020 @09:27AM (#25527701)
printf

Man, when I first read about it I was like “whaaaaa???” A little interpreted language in my print statements? That’s crazy talk!

Now it’s like ... everywhere!

Re:Ask HN: What Lived Up to the Hype? by emerged on Thursday December 24, 2020 @10:12AM (#25528105)
I feel it’s worth giving credit to Python f-strings in that case. They blew my mind in terms of convenience vs printf.
Re:Ask HN: What Lived Up to the Hype? by Nightshaxx on Thursday December 24, 2020 @10:58AM (#25528593)
Python has a few cool things like that. List comprehension blows my mind at how elegant it is.
Re:Ask HN: What Lived Up to the Hype? by abdusco on Friday December 25, 2020 @02:04AM (#25534824)
Agreed. Same with dict, set and generator comprehensions. I wish more languages included that feature.
Re:Ask HN: What Lived Up to the Hype? by danfang on Thursday December 24, 2020 @10:34AM (#25528330)
In addition to Python format strings: Javascript template strings:

`I am ${variable.foo} ${variable.bar}.` - Life changing!

Re:Ask HN: What Lived Up to the Hype? by tonymet on Thursday December 24, 2020 @10:40AM (#25528409)
Wait til you try scanf
Re:Ask HN: What Lived Up to the Hype? by asattarmd on Thursday December 24, 2020 @10:39AM (#25528392)
What year did reaction happen? I spent my entire life taking it for granted, not realizing that it indeed is a little interpreted language in print statements.
Re:Ask HN: What Lived Up to the Hype? by chx on Thursday December 24, 2020 @12:20PM (#25529369)
For many of us it was in 2015 when Control-Flow Bending: On the Effectiveness of Control-Flow Integrity was presented at USENIX proving printf is turing complete. https://github.com/carlini/printf-tac-toe https://www.usenix.org/conference/usenixsecurity15/technical...