python

joined 2 years ago
MODERATOR OF
 
[–] python@lemmy.world 2 points 1 day ago

oh, you're right lol
The first ?. after input would be more more of a safeguard against input being null/undefined and the .map not existing on it would have to have another ?.

[–] python@lemmy.world 4 points 1 day ago (1 children)

We should follow in the footsteps of many tech companies and stop numbering the Gs in favour of tagging on the year they were launched. So next year we wouldn't get 6G, we would get G2027. Sounds much cooler, doesn't it?

[–] python@lemmy.world 5 points 1 day ago (3 children)

Javascript would have no problem with it. Semicolons are already kinda optional in there, and having tons of question marks in your code is also pretty normal. ie:

input?.map(item => !!item?.name ? item : item?.toString() ?? "New Item")

Just means: If the variable named "input" has a function named .map(), which is usually the case if it's an array, you go through that array and transform its elements in the following way:

  • is your element an object that has the property "name" and that property isn't undefined, null or 0? (the "!!" is a double negation that would force undefined, null and 0 to evaluate to false through type coercion)?

  • if yes ( the syntax " ___ ? ___ : ___ " is a shorthand for an if-else statement) then just add that whole item to your output array.

  • if not, try to call the .toString() function on your item. If that works then that's your result, if not then your output is the string "New Item" ( the "??" is called the nullish coalescing operator - if the left side of the ?? evaluates to undefined or null, it takes the right--hand side value instead. The "?." part is called optional chaining and will evaluate to undefined if you try to call a function that doesn't exist on that type)

  • oh yeah, and if input isnt an array to begin with and doesn't have a .map() function? We just do nothing and move on without complaining. JS truly does not give a fuck.

[–] python@lemmy.world 5 points 1 day ago

I went to University for Electrical Engineering, switched to Computer Science after a semester and then dropped out after 5 more semesters. I had about half of the required credits after those 5 semesters, so I guess I was on track to graduate after studying for 5 years (which isn't bad considering my University's reputation for being so hard that the town opened a second easier University just for the dropouts, but I was still not very happy and really wanted to do real work)

So I got myself into an apprenticeship program to become a Programmer. There was a special one in my town that got you there in just 1.5 years instead of the 3 years that are the norm for apprenticeships here in Germany (again, University so hard they have an entire sector of special programs for dropouts). Just one day of school per week, the rest is spent at an actual company doing actual work. Finished that one with ease, got hired by the company that I did the apprenticeship with and have been working there for over 3 years by now.

I'm now in the job market for the first time because I want to work for a different company, and I'm seeing that I absolutely did the right thing. Because fresh graduates who only studied but never worked are absolutely flooding the market and no company wants them right now. I had a pretty interesting conversation with a hiring manager for a company I'm considering a few days ago, and they said that most applicants they get are either fresh graduates who are asking for insane salaries without any relevant skills to back it up, notorious job-hoppers who spend like 6 months per company and never get deeper skills and vibe-coders. It's insanely hard to find normal people with relevant hands-on knowledge because those people are staying with their existing companies.

Anyways, what I want to get at is that if you just want to work in a specific field that you're passionate about, there's a chance that you can just go and do that. Ofc I don't know your country's market situation or work system, but I bet as long as it is not something highly regulated like Doctor or Lawyer, there could be genuinely good alternative paths into it. And once you have a job in an industry and prove yourself, your academic success kinda stops mattering.

[–] python@lemmy.world 12 points 1 day ago (1 children)

There's a sack of flesh some of us have that can produce computational power at the cost of a granola bar every few hours. Can't beat the value of that.

[–] python@lemmy.world 8 points 2 days ago

I think they're thinking more about properly caring for the cat. Wherever you get them, you still have costs for spaying, vaccination, food, toys, and you need to be prepared for medical emergencies. Over their whole life, a cat will cost much more than a wedding ring. Not considering that cost because the kitten is "free" is just plainly irresponsible.

[–] python@lemmy.world 2 points 5 days ago (1 children)

If you expect the market to collapse, why buy high before the collapse and not after?

Mostly because we think hyper-inflation could absolutely happen. Basically all our saved up cash would have no value in that case, so we'd be back at square one. A house wouldn't just disappear like that (hopefully)

You can offer to take the risk. Accept 50k in cash but demand 25k in shares or later payout. Since you take the risk, that should increase the figure, like 30k or 40k in shares.

Huh, that could actually be a real option I hadn't considered! Thank you for the idea! Imma see what I'd have to do legally and how to contractually set that up, but it could be a good option that both sides would be happy with

 

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..?

[–] python@lemmy.world 1 points 1 week ago

No bro! You're prompting it wrong! Just tell it to be fast and not make any mistakes!! This will totally revolutionize software engineering (we want to fire you) in 18 months, I promise!!

[–] python@lemmy.world 2 points 1 week ago

I was applying to a job recently, and their online form had a "Upload your documents here" field. Problem was, the input was set to only accept a single file. Well, I wanted to upload two, so I just went into the html and added "multiple" to the input. Which just worked, I even checked the network tab to confirm that both files were submitted.
Haven't heard back from that company yet. It was a web dev position so I hope they appreciate my hijinks 🤞

[–] python@lemmy.world 1 points 2 weeks ago

Or you do document it - just to get called about it every week for the next few years by colleagues who have a similar but not the same problem, which you have to solve for them now. Then you document their problem too so the confuence page grows, which results in even more calls. The "Common Issues when using yarn" page I started like two years ago has about 30 different sections by now 😮‍💨

[–] python@lemmy.world 9 points 2 weeks ago

Don't forget to zip after peaing

[–] python@lemmy.world 15 points 2 weeks ago

Just tie a string to the bullet and pull it back out after shooting someone with it, duh

 

Bin da gerade tatsächlich beim normalen scrollen von Stepstone drauf gestoßen und schon in den ersten paar Sätzen läuteten die Alarmglocken.

Bei uns werden mit Mut, Neugier und Leidenschaft politisch korrekte Denkbarrieren durchbrochen und so die Zukunft der Medienwelt kreativ mitgestaltet.

🤨🤨🤨

Hier ist die Wikipediaseite von dem Kerl. Eine Sektion namens "Lokalpolitische Auseinandersetzungen" zu haben ist doch voll die Green Flag für einen Arbeitgeber.

 
 

My home assistant setup is super simple: pre-configured Home Assistant Green box, Zigbee dongle and some assorted Zigbee devices scattered around my home. I have the Home Assistant app on my phone to see the Dashboard while I'm at home, but since I never configured the box to be accessible from outside of my network, I obviously can't see the Dashboard if I'm not at home. Very basic stuff so far.

A few weeks ago, I built a little automation. I shoved a vibration sensor into my doorbell box (it's one of those that uses an electric motor to hit an actual bell) and when it detects the doorbell ringing, it flickers my light and sends a notification that says "ding dong" to my phone. The purpose is just to hear the doorbell ring when I have headphones on. The lights work perfectly fine, the notification is a bit delayed sometimes because I probably don't give the App enough permissions to hang out in the background all the time. I've never felt like fixing it though, since the lights are good enough by themselves.

Now I'm on my first longer trip since setting up that automation and I've noticed that I occasionally get the "dong dong" notification on my phone. First few times I've ignored it, because I assumed it's just old notifications that got queued while I was home but didn't fire until the app was allowed to sync. But the notifications started coming in at way too reasonable times and I checked in with my husband at home -- turns out they're actually completely correct and I'm getting actual real-time notifications for the doorbell ringing.

But like - how?! I thought my Home Assistant Green box isn't set up to send anything to the outside world?! I can't see my dashboard from other networks, so why would notifications be any different? Does anyone have any ideas as to why I'm getting those notifications?

edit: Thought it would make sense to include a screenshot of my settings; As you see, my home assistant URL is a local IP address. I have no idea why my phone would be able to talk to that? It can't talk to my local-IP-only Jellyfin server either, so why would this be any different?

84
Radish update (lemmy.world)
submitted 1 month ago* (last edited 1 month ago) by python@lemmy.world to c/dull_mens_club@lemmy.world
 

All my radishes have now sprouted! I thinned them out last week and had the spare ones on top of some potato salad.
Yesterday I also planted 10 Brokkoli saplings in between the radishes so that the planter isn't empty once the radishes are ready to go (should be in like 1-2 weeks I think?)
Oh, and I'm working on transitioning my sugar snap peas to the outside world. They're outside during the day and inside at night for now, but I'm hoping to keep them outside permanently pretty soon.

 
 

I know the radish trend ended like a month ago, but I'm still very excited haha

 

First time building a PC. The only somewhat reasonably priced DDR5 ram in my area was 2x 8GB SODIMM for 50 bucks.

1
(lemmy.world)
submitted 2 months ago* (last edited 2 months ago) by python@lemmy.world to c/cs_career_questions@programming.dev
 
 

I mean, if I'm not gonna have a good match anyway might as well embrace the fact it doesn't match lol

 

As in, either at an early age or early in their career.
Because I'm 26 with about 3-4 years of experience (maybe 5 if I count my apprenticeship), and my company keeps reiterating how they promote based on skill and knowledge, and not based on age. I know that I fit the soft skill requirements for senior dev on the internal checklist. And I know that I could absolutely handle the 6-week project that potential Seniors are asked to do, because all of my experience is extremely specialized into the exact current field and position I work at.

So I'm playing with the idea of asking to become a senior next year, because I plan on leaving the company and the title would look good on my resume.

Does anyone around here have experience with doing something like that?

view more: next ›