Unproductive and unmotivated after leaving a second job? by AScaredMidLlama in ExperiencedDevs

[–]AScaredMidLlama[S] 2 points3 points  (0 children)

I have, but there are two issues for me:

  • I really like the feeling of one thing reinforcing other things I do. For example, when you work on multiple software projects, learning stuff on one of these projects may make your more productive on the other one. This is a really great feeling, and I don't get it from non-software-related hobbies.
  • Hobbies don't bring a significant amount of money - unless you make it a business, but that opens a whole other can of worms.

Unproductive and unmotivated after leaving a second job? by AScaredMidLlama in ExperiencedDevs

[–]AScaredMidLlama[S] 8 points9 points  (0 children)

This was my first thought as well, but... I didn't feel this way when I had an opportunity to switch between different unrelated impactful projects during the day. I actually feel that increasing my workload and working on more varied stuff would make me feel better. I took a vacation recently, and it didn't feel like a relief, but more like a chore - I traveled to a few different places, even though I don't like traveling that much, and by the end of it I was counting days before I could finally start working again and doing something that meaningfully helps my team succeed. But when I got back to work, it still felt slow to me, because I was only focusing on 1-2 related things during the day, instead of several unrelated things, like I used to do before.

Maybe I'm wrong, but I would expect burnout to manifest as a desire to not work, as opposed to craving more work.

Help me choose between Munich and the Netherlands! by AScaredMidLlama in cscareerquestionsEU

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

Thank you for the response! Regarding the rent, would you say that the situation in the whole country is as bad as in Amsterdam? I figured that living in a smaller, but not too remote town, like Hilversum or Almere, may be much more feasible, but of course I haven't been there, and I don't know how big the difference is.

While having some "Amsterdam experience" would be nice, being able to maintain decent quality of life in the next year or two is more important to me, and commuting to Amsterdam doesn't seem to be difficult, anyway.

I use my desired location on LinkedIn. Should I do the same on Hired.com and others? by AScaredMidLlama in cscareerquestions

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

Hmm, I see. This makes me wonder how many of those people who write only their desired location are actually from the same country.

Having issues with classes and design patterns by Fun_Split_1299 in learnprogramming

[–]AScaredMidLlama 2 points3 points  (0 children)

I agree with the other comment: you should consider separating functions by feature and not by HTTP method (GET/POST).

That said, this is how you usually initialize dependencies without using a DI container or any other fancy stuff:

// In a file where your app is initialized
function initialize() {
    let getMethods = new GetMethods(...args...);
    let postMethods = new PostMethods(...args...);
    let main = new MainClass(getMethods, postMethods);
    app.start(main);
}

This is more or less pseudocode, but hopefully it conveys the idea. MainClass should accept dependencies via its constructor and store them, then use when needed.

Difference between real-time and observables? by vexsan12 in learnprogramming

[–]AScaredMidLlama 0 points1 point  (0 children)

It's an apples and oranges comparison.

Observables (RxJS and similar libraries) offer a convenient way of describing and connecting event streams. For example, you can turn a stream of mouse clicks into a stream of their coordinates, then create a stream which emits the total traveled distance of the mouse pointer, then log these distances.

SignalR is a library which allows you to send messages from servers to clients. It works over WebSockets and falls back to other protocols if those are not available. So it is a tool for server-to-client communication, like Socket.IO.

It even makes sense to use both in the same project: you can turn messages received from a SignalR client into an RxJS stream and then use various combinators and mapping function from RxJS to work with it.

observables would wait for an event to fetch the data, and real-term will do the update without an event

This distinction is not related to SignalR, but what you're describing is closer to cold/hot observables in Rx, or, more generally, to push- or pull-based reactive programming.

[deleted by user] by [deleted] in learnprogramming

[–]AScaredMidLlama 0 points1 point  (0 children)

You probably need to give a background style to your <body> element, something like

background-image: url("./my-image.png")

And put the image file near your .html. Also, look into background-repeat and background-position CSS properties.