🌉 bridged from @python@lemmy.world by Tidepool
python
@python.lemmy.world.ap.tdpl.io
Snakes are cats
I got got
I'm recovering from getting my wisdom teeth removed and decided to finally learn Zig to kill some time. Started up Ziglings and everything was completely smooth until the Exercise that had Error Unions. Couldn't figure out for the life of me why I was getting an Error for doing exactly what the exercise taught me to do though!!
var my_number: u8|MyNumberError = 5;I tried reading the error messages, checked if maybe my zls version was set to something wrong, checked the ziglang changelog if maybe the syntax changed between v16 and v17, checked the Issues tabs on the Ziglings git to see if anyone else had this issue, and then re-checked the zig documentation on my phone just to realize: The Error union type is supposed to be defined with an exclamation mark (!) instead of a pipe (|), I was just misreading it because I'm not wearing my glasses! And I guess I'm used to seeing pipes used in types because it's common in TypeScript hahaI'm at a crossroads and can't decide whether to take this new job
Hi! I'm currently hunting for a new job and a really really good sounding place came along, but I'm having a hard time deciding whether it's actually a good idea because my existing job is already pretty cushy, so a switch might not be worth it. Would love to collect a few more perspectives on this! My current situation: I live in Germany. The company I currently work at is my first workplace ever. I started there in late 2021, did my apprenticeship in 1.5 years and was taken as a Junior in early 2023. The economy wasn't great at the time, so I had no wiggle room with the initial salary and started a bit low. I was promoted to regular exactly a year later in early 2024, and now that I've hit the internal requirements for senior that promotion is scheduled for sometime this year (the talks to find a senior project for me are ongoing, but my manager is visibly dragging his feet). The pay raise system for my current company isn't great, so my low starting salary hasn't really grown at a pace that is acceptable considering my current duties and expertise. In hard numbers, I earn about 50k€ p.a. plus about 1.5k in performance bonuses (those aren't promised, but I've consistently gotten them every year) plus I own some company stocks that make like 300€ a year. Further bonuses are that the company pays a part of my D-Ticket (Universal Bus/Train ticket for the entirety of Germany, it's usually around 60€ a month but the company co-pays like 20€) plus they offer an Urban Sports Club membership with wich I can access all the gyms I'd ever want for 20€ a month. The work is 100% remote, hours are completely flexible and overtime is compensated very fairly. Plus since I'm out of my trial period, it's basically impossible to fire me (which is normal for Germany). The cons of my current workplace are that it's rapidly enshittifying. There's a strong push towards using AI everywhere, even if it makes no sense. It's also getting increasingly bureaucratic and annoying - many decisions can't be made by regular developers and need to be pushed through random stupid committees, and many features we need to build are just stupid random requirements that management came up with without actually knowing shit about fuck. I also hate the new hires, especially my team's new architect who has a background in working for advertising and retail systems and now wants to do dumb shit like enforce customer tracking and aggressive data collection (we're B2B, all customers are paying customers so collecting their data is a stupid and illegal idea). Another frustration is that I was appointed as the dedicated person that needs to keep watch on our security and compliance. That has never been an especially thankful role - no matter how large of a security flaw I bring up, I get met with an eyeroll and a "we don't have the time to fix that" from the side of the programmers and a very annoyed "why the fuck are you not doing anything about this??" from the side of the head security officer. Which ends in all security fixes being kind of my own problem. I'm extremely burnt out from that. My stats: In broad terms, my current skillset (which decides my market value) is the following: • 3 years of extremely solid hands-on experience in React and Typescript (not the kind of experience that code-bootcamp people have, actual experience) • 3 years of solid experience in everything AWS • Security Engineering knowledge • I'm extremely flexible, so I adapt to new tech very very fast • Outstanding soft skills and mentoring abilities, I basically lead all of my teams meetings and onboard all the new colleagues --> basically, I have all the capabilities of setting up, building and maintaining a state of the art web/cloud based project all by myself. My job search so far: Generally, I haven't been super active in searching and only applied to the occasional very interesting seeming position. I got more interviews than you'd expect for someone who refuses to use AI to write their CV and does not write motivation letters. Those have led to two serious leads so far: one role for an extremely large company that loans out programmers (so it's kind of a forward-deployed engineer role) for 65k which I declined because the role would entail pushing out AI slop all day. And another where my second interview is still upcoming, but it's for an ISP who is known to pull customers into predatory contracts. The pay range is 62-75k but I'm on the verge of canceling the second interview because I disagree with their business practices. In addition to that, I always have the option of nepotism and going to work at the small company my dad works at as an SPS/Delphi Programmer (the pay wouldn't be the best but it's always a fallback option). Or I could take a shot and apply for the company my husband works at. He says he could put in a good word for me and get me a good chance at a role, but that would probably be embedded programming with like C, which I don't find very fun or rewarding. And it would be for the military, I'm kinda iffy on that. But the pay and job security is great since it's a place that follows IG-Metall Union rules. The current offer I'm considering: I randomly came across a very small (like 20 people) company who used to be an SAP consulting firm but hard-pivoted towards developing tools in a small niche where they compete with the current american monopoly for those tools (sorry, I can't be more specific than that, it really is a tiny niche). They're extremely vocal about european data sovereignty (hell yes, no more working with AWS or Atlassian) and politically engaged in Open source, environmental projects and anti-nazi stuff. They've been successful in their hard pivot so far and now they can't keep up with customer demand and need to be rapidly expanding, but they still haven't proven that it will work out long term so that expansion is risky for them. Coincidentally they're looking for exactly what I bring to the table (deep expertise in React/Typescript with DevOps experience and a lot of autonomy) in a role where I basically solo-drive a small project from start to finish. They got those red flags where they say they're "basically a family" and "like a startup", so you know the workload will be extremely high and stressful, working on weekends will be normal and being on-call 24/7 will be expected. But: I'm really interested in their niche. It's a super cool ecosystem and even though I'd be getting a lot more architectural responsibilities than I should, that would be mitigated by the ecosystem being very opinionated on architecture so I can't go too wrong. And from the people I've met so far, it seems like a genuinely nice, open working environment with basically no bureaucracy. It's remote-first, but other than that the benefits are negligible. No more stocks, gyms or train ticket support for me. But working at a place I I morally align with is a big factor for me. I have never talked to a company where data sovereignty is even considered, much less actually promoted like with them. And between all my interviews, AI has not been mentioned even a single time. All I know about their stance on it is how many of the people I met keep liking "AI is a dumb waste of money" posts on Linkedin. Which is a good sign. I've had three interviews with them within the last week - first with their two "Face of the company/ people communication" guys (not HR, there is no dedicated HR person) then I got a small coding task which I absolutely aced so they wanted me for a technical interview the next day. They said they'd be thinking about it for at least the next week since they need to consider the other candidates, but the owner of the company was in my inbox the very next day asking to talk asap. The owner guy is the only one responsible for money allocation so he's the one I had to talk to when it came to salary stuff. He let me know that I absolutely aced all the interviews and literally every single person in the company unanimously wants me on board (I actually believe it, considering how many of them have checked out my Linkedin profile). BUT while talking to him was extremely nice, our salary expectations were very far apart. My opinion on the role was that demand-wise it's a Senior Software Engineer position with some aspects of Dev-Ops Engineer sprinkled in. The normal market rate for someone with 3-5 years of experience for that would be around 63-83k as far as I've seen, but the "startup workstyle", broad responsibility, high amount of project ownership and high amount of technical autonomy, plus the fact they want someone who can contribute right from day 1 makes me think the upper half of that range would be appropriate. So my number is 73k. He was.. quite shocked. He said the absolute maximum amount of budget he has is 50k, because their current pivot is still quite a large risk. Basically, they can't afford to spend more money than that if they aren't 100% that they can make it back. And I do believe him on that, that number did not seem like a tactic to lowball me. I've done very, very deep research on the company and have found out trough the grapevine that their annual revenue is only in the ballpark of 800-1100k. I can see that a programmer asking for almost 10% of your annual revenue can be a bit offensive, haha. Still, we ended the interview on a very good note and I still like the guy as a person. In my research I also came across the fact that he'd been considering turning the company into a Worker Cooperative when he retires (only like 3 years until then I believe) so I drilled him on his concrete plans for that. The plan apparently still stands and he explained the logistics of it to me - it sounded super solid, and I'm just way too on board with that kind of communist shit. He was also pretty flattered with how deeply I researched everything and how prepared I am, that's definitely not the norm for applicants 🥹 Anyways, we didn't come to an agreement on salary in that interview, none of us could even name a second number since we were literally 23k apart. So we decided to both crunch our numbers again, see what can be done and what compromises and risks we're willing to take. We're talking again on friday morning, and I'm pretty sure that where the final decision will be made. I have talked it trough with my husband about a dozen times now, and the offer I will be bringing to that talk is 60k€ but for 35h/week. Our current rental apartment contract is limited to 3 years, at the end of which we will be buying a house. The next market collapse is coming, and we're sure that having our own property will be the best way to weather it, so it's a big goal that we both need to financially contribute to. That means that I can't really afford to sell myself for much less than market value (AND much less than my current job! Which is 50k for 36h/week at the moment, but the yearly pay raises are next month). I also know I'm way too enarmoured with this offer. There's a heavy sunk cost fallacy going on and hating my current job is definitely pushing me to rash decisions. I totally see that I'm being a fucking vegan and letting my morals overshadow my financial self-preservation. But I also have enough savings to cushion a total catastrophe, and leaving my current company wouldn't actually burn any bridges, so there's a high chance they'd take me back if things don't work out. Honestly... I don't know. There's plenty of ways to argue that I should stay at my current job, or that I should keep looking, or that I should take that new job. When I weigh the pros and cons, all the options end up at kind of an equal place. Soo.. does anyone have opinions on this? What would you do in my place..?
Does anyone know whether this type of ebike frame to motor connection has a name?
Sorry, might be a stupid question, I have literally no idea about bikes! What I'm looking to do is figure out whether there are any modern-ish ebike motors on the market that I could swap my current motor with (I'm assuming I'd be swapping all the other innards to fit that motor too, so dw about battery compatibility and the like). All I know about the current Motor is that it's a 250W Panasonic motor from around 2011. I asked the mechanic at my bike shop whether I could just toss one of those Bafang conversion kits on the bike but he said the way that my pedals sit within the motor would be incompatible with that and I'd need to get an actual ebike motor, not a conversion motor. So now I'm trying to find information on current Panasonic motors and what sort of frames they need to fit, but I'm having a hard time because I have no idea how to even call this kind of spacing on the frame. Does anyone have an idea on what to call it/describe it as? Or is is a proprietary thing that I'd need a welder to rework? (Totally an option if push comes to shove, I know a guy) Some more pictures from as many angles as I could get into (should I be getting measurements of any of these?):
Going on a big adventure ✨
Revy just finished shedding yesterday, so she hasn't been out of her house in about two weeks. So when I opened the door for her today, she was zooming out with full speed, parkouring down her shelf very precariously. image I set up her little baby jail so that she could explore on the floor for a bit (I don't allow her to go on the actual floor so that she can't scoot away into some crevice or behind furniture) image image image image image She was all over the play pen for like an hour, but I had to wrap up and get ready for bed. She wasn't having that at all and kept booping me to get out of the way and let her climb back down 🥹 image image image image Now that she's wrangled back in, she's just sulking in her hide :( image
🌿 Veganuary Daily Check-in for January 31st 2025
Good Morning and welcome to day 31 of Veganuary! 🌿 It's the last day! Thank you for joining me on this! Feel free to use this general Check-in thread to update us on how you're feeling and what you're eating today - or take a look at the question of the day! If you've come across this in All, feel free to check the linked resources in the sidebar and maybe even join in for some time :) Question of the day:
Are you doing anything special today?
🌿 Veganuary Daily Check-in for January 30th 2025
Good Morning and welcome to day 30 of Veganuary! 🌿 Feel free to use this general Check-in thread to update us on how you're feeling and what you're eating today - or take a look at the question of the day! If you've come across this in All, feel free to check the linked resources in the sidebar and maybe even join in for some time :) Question of the day:
What should happen to this community on February 1st? We could go dormant for a year, just keep posting daily or weekly, move to a better instance than .world ?
🌿 Veganuary Daily Check-in for January 29th 2025
Good Morning and welcome to day 29 of Veganuary! 🌿 Happy Lunar new year! Make sure pat a snake today 🐍 Feel free to use this general Check-in thread to update us on how you're feeling and what you're eating today - or take a look at the question of the day! If you've come across this in All, feel free to check the linked resources in the sidebar and maybe even join in for some time :) Question of the day:
What foods totally gross you out?
🌿 Veganuary Daily Check-in for January 28th 2025
Good Morning and welcome to day 28 of Veganuary! 🌿 Feel free to use this general Check-in thread to update us on how you're feeling and what you're eating today - or take a look at the question of the day! If you've come across this in All, feel free to check the linked resources in the sidebar and maybe even join in for some time :) Question of the day:
Have you gotten better at cooking this past month?
bread on bread
It's balsamic-marinated chickpea seitan, with some pesto and some more balsamico on top. Tasted nice (texture was like mozzarella!) but it does look a bit sad haha
🌿 Veganuary Daily Check-in for January 27th 2025
Good Morning and welcome to day 27 of Veganuary! 🌿 Feel free to use this general Check-in thread to update us on how you're feeling and what you're eating today - or take a look at the question of the day! If you've come across this in All, feel free to check the linked resources in the sidebar and maybe even join in for some time :) Question of the day:
What are some positive habits that you're planning on picking (back) up?
🌿 Veganuary Daily Check-in for January 26th 2025
Good Morning and welcome to day 26 of Veganuary! 🌿 Feel free to use this general Check-in thread to update us on how you're feeling and what you're eating today - or take a look at the question of the day! If you've come across this in All, feel free to check the linked resources in the sidebar and maybe even join in for some time :) Question of the day:
How difficult did you find it so far?
🌿 Veganuary Daily Check-in for January 25th 2025
Good Morning and welcome to day 25 of Veganuary! 🌿 Feel free to use this general Check-in thread to update us on how you're feeling and what you're eating today - or take a look at the question of the day! If you've come across this in All, feel free to check the linked resources in the sidebar and maybe even join in for some time :) Question of the day:
How are your pets doing? (if you have any)
🌿 Veganuary Daily Check-in for January 24th 2025
Good Morning and welcome to day 24 of Veganuary! 🌿 Feel free to use this general Check-in thread to update us on how you're feeling and what you're eating today - or take a look at the question of the day! If you've come across this in All, feel free to check the linked resources in the sidebar and maybe even join in for some time :) Question of the day:
How's tour tummy doing? Have you noticed any gastrointestinal changes?
🌿 Veganuary Daily Check-in for January 23rd 2025
Good Morning and welcome to day 23 of Veganuary! 🌿 Feel free to use this general Check-in thread to update us on how you're feeling and what you're eating today - or take a look at the question of the day! If you've come across this in All, feel free to check the linked resources in the sidebar and maybe even join in for some time :) Question of the day:
Have you found any new favorite foods?
🌿 Veganuary Daily Check-in for January 22nd 2025
Good Morning and welcome to day 22 of Veganuary! 🌿 Feel free to use this general Check-in thread to update us on how you're feeling and what you're eating today - or take a look at the question of the day! If you've come across this in All, feel free to check the linked resources in the sidebar and maybe even join in for some time :) Question of the day:
Have you noticed any change in weight or body composition so far?
🌿 Veganuary Daily Check-in for January 21st 2025
Good Morning and welcome to day 21 of Veganuary! 🌿 We're at 3 weeks! Some people claim that's about the timespan you need to do something daily to form a habit :) Feel free to use this general Check-in thread to update us on how you're feeling and what you're eating today - or take a look at the question of the day! If you've come across this in All, feel free to check the linked resources in the sidebar and maybe even join in for some time :) Question of the day:
Sweet snacks or savoury/salty snacks?
🌿 Veganuary Daily Check-in for January 20th 2025
Good Morning and welcome to day 20 of Veganuary! 🌿 Feel free to use this general Check-in thread to update us on how you're feeling and what you're eating today - or take a look at the question of the day! If you've come across this in All, feel free to check the linked resources in the sidebar and maybe even join in for some time :) Question of the day:
What's a good habit that you wish you had?
🌿 Veganuary Daily Check-in for January 19th 2025
Good Morning and welcome to day 19 of Veganuary! 🌿 Feel free to use this general Check-in thread to update us on how you're feeling and what you're eating today - or take a look at the question of the day! If you've come across this in All, feel free to check the linked resources in the sidebar and maybe even join in for some time :) Question of the day:
Have you looked at any vegan documentaries so far? How'd they impact you?
🌿 Veganuary Daily Check-in for January 18th 2025
Good Morning and welcome to day 18 of Veganuary! 🌿 Feel free to use this general Check-in thread to update us on how you're feeling and what you're eating today - or take a look at the question of the day! If you've come across this in All, feel free to check the linked resources in the sidebar and maybe even join in for some time :) Question of the day:
What are your plans for the weekend?