fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.8K
active users

#libcst

0 posts0 participants0 posts today
Zło To<p>Just rewriting <a href="https://101010.pl/tags/jinja" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>jinja</span></a> python code generator to <a href="https://101010.pl/tags/libCST" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>libCST</span></a> . So far it takes more code to do the same but it's much simpler to do the hard stuff, especially when there's a lot of conditionals.</p><p>Take annotated class field: can be generic or not, can have annotated metadata or not. Annotated metadata may be name (class or function), generic or not, or a call, and so on.</p><p>A big nuisance of libCST is indentation - it belongs to the previous node, even though we tend to think as part of the next one. For an indented language it's rather weird design decision.</p><p><a href="https://101010.pl/tags/JSONSchema" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>JSONSchema</span></a> <a href="https://101010.pl/tags/codeGenerator" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codeGenerator</span></a> <a href="https://101010.pl/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://101010.pl/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://101010.pl/tags/pythonLapidary" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pythonLapidary</span></a></p>
$(cat /dev/urandom)<p>OMG <a href="https://fosstodon.org/tags/libCST" class="mention hashtag" rel="tag">#<span>libCST</span></a> is SO much simpler!</p>
Gina Häußge<p>Listening to the latest <span class="h-card"><a href="https://fosstodon.org/@pythonbytes" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>pythonbytes</span></a></span> episode and damn, hearing that <span class="h-card"><a href="https://fosstodon.org/@brianokken" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>brianokken</span></a></span> hadn't heard of <a href="https://chaos.social/tags/LibCST" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LibCST</span></a> makes me think I should have brought that along for my own guest appearance in that show after all 😅</p><p>I didn't because the topic search said it had been covered in episode 179 by Guido himself 😬</p><p>Have found it quite helpful though to write some custom checks and mods to use with precommit on <a href="https://chaos.social/tags/OctoPrint" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OctoPrint</span></a>, has made some cleanup a LOT faster together with <a href="https://chaos.social/tags/pyupgrade" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pyupgrade</span></a>.</p>