aral, to markdown
@aral@mastodon.ar.al avatar

🎉 New Kitten feature: Markdown pages

You can now create .page.md files and use front matter to specify a layout template as well as any other props you want to pass to your layout.

(I’m working on the Kitten web site with docs, etc., so I thought I’d bite the bullet and add this feature this morning to make my life easier. Should make it easier to make this sort of site with Kitten in the future for everyone.)

https://codeberg.org/kitten/app

:kitten: 💕

akop, to Java
@akop@mastodon.akop.online avatar

Code-Smells caused by "history" are sometimes funny. In one project, we have often this:

variable = otherValue == null ? null : otherValue

instead it can be just this:

variable = otherValue

(Some months ago, the null-check was important because the code was like this:

variable = otherValue == null ? null : otherValue.longValue())

MoritzGiessmann, to random
@MoritzGiessmann@mastodon.social avatar

Suche gerade den Thread mit vielen StIckermotiven um in meinen Birdsite-Backups herauszufinden, dass der gepostet wurde bevor der große 𝕏-odus begann. Dann muss der wohl hier nochmal rein… wegen und so. Kam zwar nicht mehr dazu Sticker drucken zu lassen, aber vielleicht gibt’s ja welche die Gefallen finden.

opdavies, to CSS
@opdavies@mastodon.social avatar
aral, to SmallWeb
@aral@mastodon.ar.al avatar

So Kitten’s build process (i.e., the time it takes to build Kitten itself) takes ~0.7 seconds on my ~1 year old desktop (Ryzen 7 5700G 3.8Ghz) vs ~1.4 seconds on my ~3-year-old Starlabs LabTop (renamed to the Starbook thanks to a suggestion by yours truly but sadly, not quickly enough).

So, in summary, it’s bloody fast for something that results in a ~9MB bundle.

(And that’s all thanks to esbuild.)

https://codeberg.org/kitten/app

#Kitten #SmallWeb #build #performance #web #dev #esbuild #NodeJS #JS

aral, to SmallWeb
@aral@mastodon.ar.al avatar

Looking forward to presenting my computer science colloquium on Small Web at the University of Groningen, Netherlands, on 11th of June, 2024 at 4PM.

https://www.rug.nl/research/bernoulli/calendar/colloquia/computer-science-oriented/2024/20240611-aral-balkan

There might be space for a few people from outside the university to attend so if you want to drop by, make some noise and I’ll have a chat with the university.

Thanking @mirela for organising this and looking forward to hopefully meeting some of you in the Netherlands soon.

#SmallWeb #groningen #netherlands #web #dev

aral, to SmallWeb
@aral@mastodon.ar.al avatar

Kitten bugfix release:

Please upgrade to the latest release that fixes a regression introduced into sessions object with the latest JSDB¹/JSDF² upgrade:

https://codeberg.org/kitten/app/issues/177

Persisting arbitrary objects to sessions is a supported workflow and this regression broke that.

e.g., See the Kitten Count Sessions example: https://codeberg.org/kitten/app/src/branch/main/examples/kitten-count-sessions/index.page.js

:kitten:💕

¹ https://codeberg.org/small-tech/jsdb#javascript-database-jsdb
² https://codeberg.org/small-tech/jsdb#javascript-data-format-jsdf

#Kitten #SmallWeb #web #dev #sessions #JSDB #JavaScript #database #regression

darylbaxter, to random
@darylbaxter@mastodon.social avatar

Now confirmed: I'm hosting a #dev talk, all about #TombRaider 4!
From Von Croy to that ending, we're going to go in-depth about it all.

You can book tickets for the event below:
https://www.derbyquad.co.uk/events/tr28/

setebos, to IT
@setebos@mastodon.online avatar
YurkshireLad, to Zombies
@YurkshireLad@mastodon.social avatar

It's always a good day when you can introduce the concept of into your code at work.

aral, to SmallWeb
@aral@mastodon.ar.al avatar

New Video – Kitten features introduced this week:

• Interactive Shell (REPL)
• Multi-page Settings
• Backup and restore (data portability)

With examples that cover components and Kitten’s built-in JavaScript database (JSDB).

https://ar.al/2024/05/23/new-kitten-features-interactive-shell-repl-multi-page-settings-and-backup-and-restore-data-portability/

:kitten:💕

aral, to SmallWeb
@aral@mastodon.ar.al avatar

So! Many! Kittens!

(Going to record a demo of the new interactive shell – REPL to some – and multi-page Settings this afternoon, just planning it out now.)

Oh and is that me creating and calling web routes interactively in the REPL on a live server? Why yes, yes it is.

:kitten:💕

#Kitten #SmallWeb #web #dev #HTML #CSS #JavaScript #NodeJS

emmanuelc, to CSS French
@emmanuelc@mamot.fr avatar

Dites, développeuses z'et développeurs, régulièrement, dans mon cercle professionnel direct, j'entends dire que vous n'aimez pas (voire ).
Question sérieuse et qui n'appelle pas à réveiller quelconque troll ou débat sans fin : pourquoi n'aimez-vous pas ce langage ?
Qu'est-ce qui vous chiffonne, vous rebute ?
D'où vient votre éventuel manque d'intérêt ?
J'ai déjà des éléments de réponse proches de moi, mais je suis curieux d'élargir la question ici.

JesseSkinner, to webdev
@JesseSkinner@toot.cafe avatar

Your boss, manager or client will never ask you to take time to refactor your code. They'll never ask you to set up a test suite for the code you wrote. They'll never ask you to upgrade your framework.

Do these things every day. Make them a part of your process. You don't need permission.

https://www.codingwithjesse.com/blog/you-dont-need-permission/

Fangh, (edited ) to unity
@Fangh@shelter.moe avatar

I will soon change my job to become an independant teacher and I will open a YouTube channel + insta + tiktok + twitch to show some content like tutorials.
Do you think I also should open a Twitter account ?

Luke, to design
@Luke@typo.social avatar

The respect and admiration we have for our idols and industry greats comes from our sometimes oblivious realization that they put in the work to get there
…AND made it.

For now.

It’s all temporary.

n0rthk1n9, to iOS
@n0rthk1n9@mastodon.social avatar

Hi there im back with Day 49 of 🙋‍♂️ Today I used a really cool blog article written by my friend @JagCesar to change how my App Intents are displayed in the Shortcuts app and in spotlight search 😍 I also refined the favorites and history lists with some smooth animations 🤤

If you want to make your App intents look stylish too, here you go:

https://blog.ambi.se/ios-17-color-intents

tmaz, to random French
@tmaz@piaille.fr avatar

Le saviez-vous ?
Git ≠ Github

Vous pouvez versionner votre code sans travailler gratuitement pour les actionnaires de Microsoft et compagnie.

Par exemple, et notamment pour vos projets libres : https://codeberg.org/ (c'est une asso berlinoise)

➡️ @Codeberg

#git #code #dev #logiciel

aral, to SmallWeb
@aral@mastodon.ar.al avatar

:kitten: 🎉

Kitten now has a lovely new multi-page Settings screen and… drumroll… a new 🐢 interactive shell (REPL) for you to play with the running state of your Small Web site/app/place and debug your app, inspect/manipulate its database, etc.

I plan on recording demos of each of them tomorrow but you can play with them now.

And here’s a little tutorial to get you started with the shell:

https://codeberg.org/kitten/app#kitten-s-interactive-shell

💕

#Kitten #SmallWeb #SmallTech #NodeJS #REPL #JavaScript #HTML #CSS #web #dev

Screenshot of Kitten running in terminal: 🌍 Domain https://localhost 📂 Source /var/home/aral/Projects/kitten/app/examples/file-uploads 💾 Databases /var/home/aral/.local/share/small-tech.org/kitten/databases 🐢 To launch an interactive shell, press the [s] key. Server is running and listening for connections… s 🐢 Launching interactive shell ctrl-d to exit; .help for assistance A good place to start is to run the .ls command to see the keys of the global kitten object: » 💡.ls is an alias for Object.keys(kitten) [ 'version', 'domain', 'port', 'app', 'databaseDirectory', 'projectIdentifier', 'deploy', 'WebSocket', 'html', 'libraries', 'page', 'events', 'css', 'js', 'markdown', 'md', 'safelyAddHtml', 'sanitise', 'uploadsDirectory', '_db', 'uploads', 'package', 'db' ] 🐱 💬 kitten.db.images[0] Proxy [ { path: '/uploads/1a6c2612-057d-435b-83c7-7157b4add982/', altText: 'Screenshot of Draw Together sketch that reads Free Gaza!' }, { get: [Function: bound getHandler], set: [Function: bound setHandler], defineProperty: [Function: bound definePropertyHandler], deleteProperty: [Function: bound deletePropertyHandler] } ] 🐱 💬

opdavies, to random
@opdavies@mastodon.social avatar
YurkshireLad, to javascript
@YurkshireLad@mastodon.social avatar

These questions/answers make me glad I'm not working with anymore!

"lydiahallie/javascript-questions: A long list of (advanced) JavaScript questions, and their explanations"

https://github.com/lydiahallie/javascript-questions

opdavies, to opensource
@opdavies@mastodon.social avatar

Do you want free code reviews? What about contributing to open-source?

https://www.oliverdavies.uk/archive/2024/05/14/free-code-reviews

kerfuffle, to architecture
@kerfuffle@mastodon.online avatar

Too often, what people call technical debt is simply an encounter with the limits of functional anticipation. If you think a system will never need to do X given the foreseeable usecases and then one day it does need to do X, you don't have technical debt.

Technical debt arises when you then try to shoehorn the needed functionality in, instead of asking/making/taking the time and effort to redesign it.

opdavies, to random
@opdavies@mastodon.social avatar
aral, to SmallWeb
@aral@mastodon.ar.al avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines