#stringinterpolation โ Public Fediverse posts
Live and recent posts from across the Fediverse tagged #stringinterpolation, aggregated by home.social.
-
If I do say so myself, I do love expressive I can be with Kitten.
This is me injecting raw HTML markup into a Markdown code block in a Kitten Markdown page to highlight specific lines in a code blockยน.
(The string interpolation of the HTML as an array is a hack that bypasses Kittenโs default sanitisation and should only be used with trusted content.)
PS. Iโm going through all the tutorials on the site to update them to reflect the current state of Kitten after the three-month breaking-change update Iโve been working on.
ยน https://kitten.small-web.org/reference/#markdown-support
#Kitten #SmallWeb #SmallTech #web #dev #Markdown #HTML #JavaScript #JS #stringInterpolation
-
If I do say so myself, I do love expressive I can be with Kitten.
This is me injecting raw HTML markup into a Markdown code block in a Kitten Markdown page to highlight specific lines in a code blockยน.
(The string interpolation of the HTML as an array is a hack that bypasses Kittenโs default sanitisation and should only be used with trusted content.)
PS. Iโm going through all the tutorials on the site to update them to reflect the current state of Kitten after the three-month breaking-change update Iโve been working on.
ยน https://kitten.small-web.org/reference/#markdown-support
#Kitten #SmallWeb #SmallTech #web #dev #Markdown #HTML #JavaScript #JS #stringInterpolation
-
Template Literals vs Heredoc: String Battle ROYALE!
JavaScript's template literals vs PHP's heredoc - which formatting is prettier? WTF!
#javascript #php #jsvsphp #templateliterals #heredoc #stringinterpolation #multilinestrings #viralcoding #es6 #syntaxcomparison #stringformatting #mindblown
-
Tagged Template Does MATH in Strings?!
Tagged templates can EXECUTE CODE! The tag function receives values and can transform them. This one DOUBLES every number. String interpolation becomes code execution!
#javascript #javascripttricks #taggedtemplates #templateliterals #stringinterpolation #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #templateprocessing #advancedjavascript
-
Tagged Template Does MATH in Strings?!
Tagged templates can EXECUTE CODE! The tag function receives values and can transform them. This one DOUBLES every number. String interpolation becomes code execution!
#javascript #javascripttricks #taggedtemplates #templateliterals #stringinterpolation #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #templateprocessing #advancedjavascript
-
Template Literals vs F-Strings: String Interpolation Showdown
JavaScript template literals vs Python f-strings. Which language's string formatting is more powerful? You won't believe this!
#javascript #python #javascriptvspython #templateliterals #fstrings #stringinterpolation #programmingcomparison #codecomparison #javascripttricks #pythontricks #syntaxcomparison #viralcoding
-
Template Literals vs F-Strings: String Interpolation Showdown
JavaScript template literals vs Python f-strings. Which language's string formatting is more powerful? You won't believe this!
#javascript #python #javascriptvspython #templateliterals #fstrings #stringinterpolation #programmingcomparison #codecomparison #javascripttricks #pythontricks #syntaxcomparison #viralcoding
-
Ever wish Swift had a cleaner way to handle optional values in string interpolation?
Swift 6.2 introduces a game-changing default value parameter that works with any optional type. No more verbose nil-coalescing or custom string conversions โ just elegant, type-safe defaults right in your interpolation.
๐: https://useyourloaf.com/blog/swift-default-value-in-string-interpolations/ by @kharrison
-
๐ป๐ซ Ah, the classic '403 Forbidden' jazz hands performance, where readers are left yearning for string interpolation wisdom from the ghost of #AmigaDOS past. ๐ญ๐ฅ Turns out, the only strings being pulled are the ones ensuring you can't access the page. Bravo! ๐
https://www.datagubbe.se/braket/ #403Forbidden #stringInterpolation #techHumor #webAccess #HackerNews #ngated -
๐ป๐ซ Ah, the classic '403 Forbidden' jazz hands performance, where readers are left yearning for string interpolation wisdom from the ghost of #AmigaDOS past. ๐ญ๐ฅ Turns out, the only strings being pulled are the ones ensuring you can't access the page. Bravo! ๐
https://www.datagubbe.se/braket/ #403Forbidden #stringInterpolation #techHumor #webAccess #HackerNews #ngated -
Bra and KET: String Interpolation in AmigaDOS
https://www.datagubbe.se/braket/
#HackerNews #Bra #KET #StringInterpolation #AmigaDOS #HackerNews
-
Bra and KET: String Interpolation in AmigaDOS
https://www.datagubbe.se/braket/
#HackerNews #Bra #KET #StringInterpolation #AmigaDOS #HackerNews
-
"Small" things I highly appreciate about Kotlin coming from Java - Chapter 2
๐ฆ๐๐ฟ๐ถ๐ป๐ด ๐ง๐ฒ๐บ๐ฝ๐น๐ฎ๐๐ฒ๐
๐๐๐๐๐๐โ๐๐๐๐.๐๐๐๐.๐ป๐๐๐๐๐ณ๐๐๐
๐๐๐โ๐๐๐๐()โ{
โโโโ๐๐๐โ๐๐๐๐โ=โ"๐น๐๐๐โ๐ณ๐๐"
โโโโ๐๐๐โ๐๐๐๐๐ขโ=โ๐ป๐๐๐๐๐ณ๐๐๐.๐๐๐ ()
โโโโ๐๐๐๐๐๐๐("๐ท๐๐๐๐,โ$๐๐๐๐!โ๐๐๐๐๐ขโ๐๐โ${๐๐๐๐๐ข.๐๐๐ข๐พ๐๐๐๐๐}.")
}https://kotlinlang.org/docs/strings.html#string-templates
No more overusing ๐๐๐๐๐๐.๐๐๐๐๐๐ parameters. No more clunky ๐ผ๐๐๐๐๐๐๐ต๐๐๐๐๐.๐๐๐๐๐๐. It just works.
#Kotlin #Java #JVM #String #StringInterpolation #StringTemplates #SoftwareDevelopment
-
Responding to the demand for better string interpolation with a convoluted custom way that looks different from how every other language does it the most java thing ever. #java #stringinterpolation #pleasecanwemovebeyondthislanguage
-
Responding to the demand for better string interpolation with a convoluted custom way that looks different from how every other language does it the most java thing ever. #java #stringinterpolation #pleasecanwemovebeyondthislanguage