home.social

#stringinterpolation โ€” Public Fediverse posts

Live and recent posts from across the Fediverse tagged #stringinterpolation, aggregated by home.social.

fetched live
  1. 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.

    ยน kitten.small-web.org/reference

    #Kitten #SmallWeb #SmallTech #web #dev #Markdown #HTML #JavaScript #JS #stringInterpolation

  2. 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.

    ยน kitten.small-web.org/reference

    #Kitten #SmallWeb #SmallTech #web #dev #Markdown #HTML #JavaScript #JS #stringInterpolation

  3. 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.

    ๐Ÿ”—: useyourloaf.com/blog/swift-def by @kharrison

    #Swift #StringInterpolation #iOSDevelopment #SwiftLanguage

  4. ๐Ÿ’ป๐Ÿšซ 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! ๐Ÿ‘
    datagubbe.se/braket/ #403Forbidden #stringInterpolation #techHumor #webAccess #HackerNews #ngated

  5. ๐Ÿ’ป๐Ÿšซ 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! ๐Ÿ‘
    datagubbe.se/braket/ #403Forbidden #stringInterpolation #techHumor #webAccess #HackerNews #ngated

  6. "Small" things I highly appreciate about Kotlin coming from Java - Chapter 2

    ๐—ฆ๐˜๐—ฟ๐—ถ๐—ป๐—ด ๐—ง๐—ฒ๐—บ๐—ฝ๐—น๐—ฎ๐˜๐—ฒ๐˜€

    ๐š’๐š–๐š™๐š˜๐š›๐šโ€‚๐š“๐šŠ๐šŸ๐šŠ.๐š๐š’๐š–๐šŽ.๐™ป๐š˜๐šŒ๐šŠ๐š•๐™ณ๐šŠ๐š๐šŽ

    ๐š๐šž๐š—โ€‚๐š–๐šŠ๐š’๐š—()โ€‚{
    โ€‚โ€‚โ€‚โ€‚๐šŸ๐šŠ๐š•โ€‚๐š—๐šŠ๐š–๐šŽโ€‚=โ€‚"๐™น๐š˜๐š‘๐š—โ€‚๐™ณ๐š˜๐šŽ"
    โ€‚โ€‚โ€‚โ€‚๐šŸ๐šŠ๐š•โ€‚๐š๐š˜๐š๐šŠ๐šขโ€‚=โ€‚๐™ป๐š˜๐šŒ๐šŠ๐š•๐™ณ๐šŠ๐š๐šŽ.๐š—๐š˜๐š ()
    โ€‚โ€‚โ€‚โ€‚๐š™๐š›๐š’๐š—๐š๐š•๐š—("๐™ท๐šŽ๐š•๐š•๐š˜,โ€‚$๐š—๐šŠ๐š–๐šŽ!โ€‚๐šƒ๐š˜๐š๐šŠ๐šขโ€‚๐š’๐šœโ€‚${๐š๐š˜๐š๐šŠ๐šข.๐š๐šŠ๐šข๐™พ๐š๐š†๐šŽ๐šŽ๐š”}.")
    }

    kotlinlang.org/docs/strings.ht

    No more overusing ๐š‚๐š๐š›๐š’๐š—๐š.๐š๐š˜๐š›๐š–๐šŠ๐š parameters. No more clunky ๐™ผ๐šŽ๐šœ๐šœ๐šŠ๐š๐šŽ๐™ต๐š˜๐š›๐š–๐šŠ๐š.๐š๐š˜๐š›๐š–๐šŠ๐š. It just works.

    #Kotlin #Java #JVM #String #StringInterpolation #StringTemplates #SoftwareDevelopment

  7. 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

  8. 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