Vince

joined 2 years ago
[–] [email protected] 2 points 2 years ago* (last edited 2 years ago)

I've been on-call in 3 of my past jobs in Germany, most of it was pretty similar, 1 week per person, 600-800€ per week and some extra pay on incidents. Current job:

  1. ~500€ for a week and I get an extra day off after each week on-call, but no extra pay for incidents
  2. With the extra day off it's really nice. Our team is light on incidents too.
  3. Not much past that. The standard German worker protection laws would apply, but pushing those would not help me much and it might not be the best career move.
  4. 5 others
  5. EU
 

Hallo, mal eine kleine Frage was ihr machen würdet, tl;dr am Ende.

Ich bin in der echt glücklichen Situation, dass ich durch das employee stock option Programm meines Arbeitgebers die nächsten 3 Jahre mit aktuellem Kurs 3k netto monatlich zusätzlich bekomme. Kann natürlich auch sein, dass der Aktienpreis runter geht und ich nichts bekomme.

Finanzielle Situation ist aktuell ohne die Optionen ein Haushaltsnetto von ca 6,5k mit 2 Kindern und Frau in Teilzeit. Das geht in ne Sparrate von 2k, dann 1,5k für den Kredit fürs Haus und so 2,5k Ausgaben für alles von Lebensmitteln über Urlaub bis Spenden. Der Hauskredit läuft mit 0,6% Zinsen noch 8 Jahre und wird ne Restschuld von 350k haben.

Jetzt überlege ich mir gerade, was es für Szenarien für die Anschlussfinanzierung geben könnte, insbesondere in Anbetracht der Zinsentwicklung. Wenn die Zinsen wieder fallen (<=2%) würden wir einfach weiter finanzieren wie bisher. In dem Fall wäre alles in ETF stecken am besten.

Interessanter sind die Fälle wenn die Zinsen steigen und wir mit höheren Zinsen weiter finanzieren müssen, entweder ungefähr auf dem aktuellen Niveau (3-5%) oder noch höher (>=6%). Dann würde es Sinn machen, einen Teil der Restschuld direkt zu tilgen. Um das Geld dafür zu haben würde ich das extra Geld risikolos anlegen in Festgeld oder Anleihen.

Und genau da bin ich jetzt am überlegen ob ich einfach alles in die ETF Sparrate kloppen soll, oder doch lieber komplett risikolos, oder etwas dazwischen. Oder doch lieber einen Porsche finanzieren :D

zl;ng: Extra 3k netto monatlich die nächsten 3 Jahre, Immo Anschlussfinanzierung in 8 Jahren für 350k, was würdet ihr tun?

[–] [email protected] 5 points 2 years ago* (last edited 2 years ago) (1 children)

I thought it was a non-issue that tooling should take care of anyway until stackoverflow published this:

https://stackoverflow.blog/2017/06/15/developers-use-spaces-make-money-use-tabs/

Spaces all the way

[–] [email protected] 1 points 2 years ago

Good questions, I could probably write a lot, but I'll try to keep it short. I usually apply TDD and there are different schools of thought within it about how to structure the development process. But no matter how exactly you do it, if you focus on writing the tests while writing your code, you won't end up with an application that you then have to figure out how to test.

what to test

Well, what is the application supposed do? That is what you test, the behaviour of the application.

So in a codebase without any tests, the first thing you should write a test for is the happy path. That will probably not be a unit test. So for the web server example, set it up in a test with a file, start it and check if it serves that file.

Then you can add tests for all the error cases and for additional functionality. You can write unit tests for individual components. The ideal places to test are interfaces with clear boundaries. Ideally you should not have to look at the code of a method to be able to write a test for it. In reality that's not always so easy, especially in existing code bases, but if you have to set up more than one mock, it tends to lead to brittle tests.

Every time you encounter a bug/issue, reproduce it in a test first. And do measure code coverage, but don't make it a target, just check for places that are lacking.

[–] [email protected] 13 points 2 years ago (1 children)

Here you go: https://codegolf.stackexchange.com/

But on a more serious note, I don't really agree. Writing more code needs to be a conscious choice, but going for the shortest code too often creates a mess. I know, since I was that junior dev who just wanted to get stuff done and I would ignore project architecture in order to have to implement less, like accessing the database in GUI code.

Shorter code with the same amount of coupling between components and with the same readability is always better though.

[–] [email protected] 2 points 2 years ago

But does it have to be? I haven't touched non-web GUIs since 15 years, so my perspective on this is limited. And web frontend is not what I would call a well designed system for it's current purpose.

[–] [email protected] 4 points 2 years ago

Nice, so they are hot takes :D

If the design of a code change is bad, noticing that in the PR stage is not desirable. It should be discussed before someone actually went ahead and implemented it. It can also happen if people misunderstand the architecture, but again, that should be cleared up before actually implementing a change. Code style should be enforced automatically, as should test coverage and performance. Code review is also pretty bad at finding bugs from my experience. That imo leaves very few things where code review is useful that are not nitpicking.

As for programming languages, the amount does matter for individuals and for teams/organisations. A developer who can only use a single language is not very good, and using a many different languages within the same team is not good either.

[–] [email protected] 8 points 2 years ago

Even better is to ship small increments often.

Unfortunately in many organisations, leadership doesn't really understand that instead of reducing quality, scope should be reduced in order to ship faster. And developers rarely have a say in these things.

While I agree that it can be considered a hot take industry wide, I don't think for most devs that is a hot take, the ones whom I've seen ship broken stuff were rushed on tight deadlines and didn't have the experience/motivation/political capital to fight back on deadlines.

[–] [email protected] 73 points 2 years ago* (last edited 2 years ago) (11 children)

Not sure if these are hot takes:

  • Difficult to test == poorly designed
  • Code review is overrated and often poorly executed, most things should be checked automatically (review should still be done though)
  • Which programming language doesn't matter (within reason), while amount of programming languages matters a lot