lingo.lol is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for linguists, philologists, and other lovers of languages.

Server stats:

68
active users

#templates

1 post1 participant0 posts today
Continued thread

In 2023, two years after being built, the app was legacy. Couldn't upgrade the frontend.

Sure Svelte was less heavy than React. But why did the login page, as bare as it was, need JS anyway, let alone 100kB of it?

I took a week off my main project and did the app a favor: rewrite, but moving *out *of the "JS by default" paradigm.

I replaced the API routes with controller methods returning HTML rendered by Nunjucks #templates.

A third of the codebase disappeared!

Tired of people messing up your Google Docs? 🤯 Or maybe you're just sick of making copies over and over again? 🥱 There's a better way! 🚀

Did you know you can share Google Docs as templates with a few simple clicks? This means no more accidental edits to your originals and a much smoother workflow. 🙌

👉 Check out my latest video for a quick tutorial on how to share templates and copy links in Google Docs: youtu.be/kOjfn1i0flc

SUNY Online has developed a set of OSCQR-aligned course templates for 8 distinct use cases and instructional modalities that are free & openly licensed.

Online Asynchronous, Synchronous, Hybrid, Hyflex, Simple Structure, and to support Face-to-Face instruction.

Non-Credit content repository, and Non-Credit Interactive versions.

online.suny.edu/onlineteaching

bit.ly/dletemplates

Replied in thread

That being said, I'm actually among the perverts that are fascinated by #templateMetaProgramming (even though I'm well aware of its limitations pertaining readability and maintainability). Which is why I took @tess venting as an opportunity to challenge myself into writing a workable approach to generic properties for C++ objects with a common interface:

wok.oblomov.eu/tecnologia/cpp-

wokC++ templates and object propertiesA C++ template metaprogramming approach to generic interfaces for object properties

But the biggest issue with C++ #templates #metaprogramming isn't just the syntax (that has been improving in the last years) and the errors. To paraphrase an XML joke, «C++ metaprogramming is like violence, if it doesn't solve your problems, you're not using enough of it.»
The moment you start using metaprogramming, it creeps into every corner of the code base, often requiring several layers of indirection and extensive auxiliary classes to achieve a relatively simple “user” interface.