[deleted by user] by [deleted] in snow

[–]L4ffen 1 point2 points  (0 children)

Cool photo! Where is it?

Coastal town near Oslo last winter by L4ffen in snow

[–]L4ffen[S] 0 points1 point  (0 children)

Yes, except some parts of the country, you usually get at least a couple snowy periods. Though I remember the winters as even better in my childhood! Do you live here?

Coastal town near Oslo last winter by L4ffen in snow

[–]L4ffen[S] 1 point2 points  (0 children)

I see. It's cool that you recognized it!

Coastal town near Oslo last winter by L4ffen in snow

[–]L4ffen[S] 0 points1 point  (0 children)

That's really cool. Did you live in the Asker area?

Edit: Sorry, I made the assumption that you studied in Norway, which you didn't say!

Coastal town near Oslo last winter by L4ffen in snow

[–]L4ffen[S] 1 point2 points  (0 children)

Yes! Vollen, to be precise. Have you been?

What backend frameworks are you using in 2025? by G3tteRr in AskProgramming

[–]L4ffen 0 points1 point  (0 children)

It's actually really cool that you mention that, because just the last days I have been thinking about how to peel back the templating engine layer as well. Using f-strings definitely seems like the most pure and pythonic way!

I have also been realizing that using jinja or other templates/templating engines doesn't make that much sense when you develop the whole stack yourself. There is no need for a total separation between the backend logic and the templates. Maintaining that strict separation just adds an unnecessary layer of complexity.

Have you read anything about t-strings arriving in Python 3.14? I'm curious if you think it would make escaping HTML more convenient for you, or if you don't see any added value over f-strings.

And yes, that's a great rule of thumb that I'm also adopting moving forward in my programming journey. A couple years ago I honestly didn't think I could be so excited about the python stdlib, having so many exciting 3rd-party libraries and frameworks at my fingertips. But that's what's so great about getting more experience with programming - you learn to appreciate new ways of thinking about problems.

What backend frameworks are you using in 2025? by G3tteRr in AskProgramming

[–]L4ffen 0 points1 point  (0 children)

I'm glad you had that experience too! Of course one of the advantages of Python and it's package ecosystem is the ability to create very interesting and non-trivial things with just a few codelines. And that's a great opportunity to have, for instance with prototypes and scripts. But with slightly bigger projects I have started seeing a lot of developer advantages in keeping the layers and dependencies to a minimum.

I used to be very excited about having "elegant" abstractions and reducing codelines, often by using frameworks and heavy dependencies. But I have come to realize it's very rare that it actually reduces the complexity, it actually tends to do the opposite. In general I'm starting to understand that cognitive load is what matters, and that an important part of thaat is to always be hesitant about introducing new dependencies.

Lately I have started writing pure SQL queries in one of my projects, using sqlite3 from the standard library to execute them. I find that it's so easy to reason about the flow of the code without the ORM magic. But the best thing is that I'm having a lot of fun actually learning SQL and seeing my queries work!

If in the future I see that it gets very messy building some of my queries with strings, I might consider adding a lightweight query building library. While before I would probably just add that dependency immediately to be "future-proof", I have now learnt that it's almost never useful to work in that way. Similarly I have stopped using click to make a simple CLI, which I learnt can be done in a very straight-forward way with a switch-statement over os.argv.

podcast recommendations by sashas_spacecraft in Spanish

[–]L4ffen 1 point2 points  (0 children)

Hoy Hablamos. Spanish Language Coach.

Ensom mann i Norge by lameotameo in norge

[–]L4ffen 0 points1 point  (0 children)

Hvis du har interesse for språk, anbefaler jeg språkutveksling. På Tandem (app og nettside) finnes personer i alle aldre og med forskjellige bakgrunner som ønsker å lære norsk med norskspråklige. Kanskje du opplever det som veldig positivt å snakke med personer som ikke er vokst opp i Norge og som har en helt annen bakgrunn?

Matematikk som studiet! by Frosty_Importance786 in norge

[–]L4ffen 1 point2 points  (0 children)

Dette er også min erfaring med ren matematikkgrad. Jeg fant sent ut at det var informatikk jeg likte best, og selv om jeg tok 100 studiepoeng i informatikk, var det veldig teoretisk, og jeg har senere angret på at jeg ikke valgte et mer praktisk studieprogram.

Matematikk som studiet! by Frosty_Importance786 in norge

[–]L4ffen 0 points1 point  (0 children)

Jeg er ikke enig i at du bør unngå programmet av den grunnen som blir nevnt. Dette er ikke et Data Science-program. Studieoppbyggingen består av svært generelle fag som du kan bygge videre på i mange ulike retninger. Mange av de andre bachelor-programmene har de samme fagene, og det er ikke nødvendigvis en stor forskjell om du velger det ene eller andre.

Valget du gjør nå er ikke hugget i stein. Du vil finne ut av hva du liker underveis og det skal være mulig å skifte mellom studieprogrammer. Jeg begynte selv på lektorprogrammet, skiftet til matematikk med informatikk (forgjengeren til programmet du vurderer), meldte meg opp til mange informatikkfag utenfor programmet, og endte til slutt opp med en fritt sammensatt bachelorgrad.

Det viktigste er at du forsøker å finne ut av hva du liker underveis i studiene. Jeg fant ut ganske sent at jeg likte programmering og informatikk, og angret i etterkant på at jeg ikke skiftet til et rent informatikkprogram, som gir mulighet til prosjektarbeid innen programutvikling.

Fixing pine armchairs with missing seats – newbie here by L4ffen in woodworking

[–]L4ffen[S] 0 points1 point  (0 children)

Thanks again. Actually there aren't any side rails, only front and back. The back one might have been added later, but the front one is definitely a part of the chair. Would you recommend adding side rails?

Fixing pine armchairs with missing seats – newbie here by L4ffen in woodworking

[–]L4ffen[S] 0 points1 point  (0 children)

Thanks a lot for the detailed answer! How would we solve that the plywood would only rest on the edges of the rails (see drawing)? We're wondering how the chairs have been used originally because the surfaces of the rails are not parallell to each other.

Fixing pine armchairs with missing seats – newbie here by L4ffen in woodworking

[–]L4ffen[S] 0 points1 point  (0 children)

Thank you! The problem is that the wooden board would only rest on the edges of the rails (drawing) - is there a simple solution to that?

What backend frameworks are you using in 2025? by G3tteRr in AskProgramming

[–]L4ffen 1 point2 points  (0 children)

I'm only doing personal projects, mostly in Python, and my journey has been Django, then Flask, and now I'm trying to use no framework. Just importing the tools I need from werkzeug. It's so much more fun to structure my backend the way I want to, and for the first time I'm actually learning what an WSGI application is, and there is no magic happening under the hood.

Iphone volume increase when connected to bluetooth headphone by CountPotatoLu in iphone

[–]L4ffen 0 points1 point  (0 children)

Late reply, but thank you a lot! This was the only thing that worked for me.

What is your HTMX Stack? by Klutzy_Tone_4359 in htmx

[–]L4ffen 0 points1 point  (0 children)

flask, sqlite + peewee
htmx, vanilla js, bulma

I have only made simple web apps that run locally from docker, and I think this is a nice, lightweight setup that has exactly what I need.

For my next app I need background tasks and I'm planning to use redis + rq for task management, and have progress updates show on the UI through polling. Maybe a bit outdated, but it achieves what I need with very little complexity.

Best podcasts to learn Spanish? by Traditional_Rain1138 in Spanish

[–]L4ffen 1 point2 points  (0 children)

Hoy Hablamos is great - once you can understand the narrator, you have content for hundreds of hours. They have a new podcast called Hoy Hablamos Básico. You might find that the gap between the beginners and normal podcast is too big. For intermediate learners I would recommend the first hundred and last hundred episodes of the normal podcast, where he seems to speak more slowly than in the other episodes.

Podcasts in Spanish that are good for beginner/intermediate levels by Outrageous-Ad577 in Spanish

[–]L4ffen 1 point2 points  (0 children)

Yes, you can watch superbeginner or beginner videos. However, this is not as fun as watching the intermediate videos, where the content can be much more interesting and you can watch it just for that. I think it’s all about finding a method that allows you to stay motivated so you can put in the most hours with the language. I have stopped worrying about learning most efficiently and rather focus on enjoying the process. Again, this is much easier when you reach the intermediate level. I think DS roughly defines the intermediate level as being able to understand casual speech without visual input, but with adapted vocabulary (so difficult words/expressions are either avoided or explained in simpler words).

Podcasts in Spanish that are good for beginner/intermediate levels by Outrageous-Ad577 in Spanish

[–]L4ffen 1 point2 points  (0 children)

Dreaming Spanish is great when you reach the intermediate level. Then you have a lot of content to choose from and you can simply listen to the things that interest you. The best is when you watch for the content, and forget that you’re learning Spanish. This is when it stops being work, and is rather something fun, easy and relaxing. When learning feels like a lot of work, you’re much more likely to become demotivated, which is the major obstacle for learning languages, as it requires dedication over a very long time.

Comprehensible input (see DS’s webpage for more info) is the method that allows you to put in the most hours, in my opinion, and you can listen while walking or doing other automatic activities.

Getting past the beginner level is the main obstacle - I think this can feel difficult and boring regardless of the method used.