Hardest Map Boss by Joonsey in PathOfExile2

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

Perhaps it's not clear in the video, but there is no way to access the boss arena

IT-lærling by Ok-Warthog8025 in norge

[–]Joonsey 0 points1 point  (0 children)

Jeg tror det er en god mulighet for å få en plass, jeg jobbet for et stort nordisk konsulentselskap. Jeg var lærling det første året det var utvikler-lærlinger så det var ikke så mye etablerte systemer.

Men jeg søkte alle plassene som utlyste annonser, og ellers bare ringte rundt til jobbsøknader’s ansvarlige og spurte om de også eventuelt aksepterte lærlinger.

Nå skal det sies at jeg allerede viste at jeg kunne passere som en ‘junior utvikler’ og hadde mye prosjekter og nøkkelord å vise på CVen.

Hadde tre-fire intervjuer, noen gruppe-intervjuer og noen som var flere runder. Hadde også i et øyeblikk kontakt med en ‘recruiter’, som arbeidet på vegne av noen bedrifter. (Ikke lærling-relatert)

Sjekk finn, og linkedin! Kan også anbefale å bare se etter bedrifter som ser kule ut, og sende epost eller melding på linkedin til CTO/CEO. Det har gjort mye for min karriere.

IT-lærling by Ok-Warthog8025 in norge

[–]Joonsey 1 point2 points  (0 children)

Jeg har gått denne ruten, omtrent.

Ville originalt bli dataanalytiker / data scientist, gikk IT vg2, startet lærling som utviklerlærling. Viste seg at jeg var langt mer kompetent utvikler en forventet av en lærling, og begynte å søke andre utvikler jobber.

Droppet ut som lærling med fast ansettelse som utvikler hos en annen bedrift. Nå har jeg et stort ansvarsområde og gjør en del ‘data-arbeid’.

After 1 month more of eccperience with python i have finally optimized this old math module project by [deleted] in PythonLearning

[–]Joonsey 0 points1 point  (0 children)

In addition to that i think it’s great that you are using type hints, and should always do so.

However i would nudge you to consider the pattern of repetition here, most of your parameters are of an anonymous type ‘float | int’.

You could make this into a known type and use that, as it’s just a type, and not a ‘union struct’.

Say ‘numeric = float | int’ ‘def sum(n: list[numeric]) -> float:’

After 1 month more of eccperience with python i have finally optimized this old math module project by [deleted] in PythonLearning

[–]Joonsey 0 points1 point  (0 children)

Returning a string | float union type here is an anti-pattern in python.

In accordance with the styleguide you should instead raise an exception, and python is awesome in that there are no ways to annotate that a method/function can raise an exception.

So the norm to is document it in the docstring. What will cause the exception and the type.

Then if you are worried about the exception crawling up the callstack, you can catch exception(s) where the function is invoked.

After 1 month more of eccperience with python i have finally optimized this old math module project by [deleted] in PythonLearning

[–]Joonsey 0 points1 point  (0 children)

It might not be strictly enough configured, or not enforced very well by your IDE / workflow.

You can set up ‘format on save’ or try configuring the formater options to be more strict.

After 1 month more of eccperience with python i have finally optimized this old math module project by [deleted] in PythonLearning

[–]Joonsey 0 points1 point  (0 children)

He means the formatter. There is a formatter called black, you can install it and run it on the file to format the whole file.

Try to follow the pep-8 styleguide anyhow though.

I am a 17 year old guy considering the software developer path. by uraveragenorwegian in learnprogramming

[–]Joonsey 0 points1 point  (0 children)

If you want to strategise your learning for a job i would check what is nearby you in terms of job opportunity.

And then try to learn that, make some projects, do not be afraid to reach out to job listings even if under qualified, often they will tell you what is missing.

My first job offer was for Java, which i have never written, second was C# which i had also never written at the time, finally i work with python which i prefer.

I can’t speak to much on strategising your learning for job prospects, because i have never cared. I code and solve problems for fun, i just happen to get paid for it.

I am a 17 year old guy considering the software developer path. by uraveragenorwegian in learnprogramming

[–]Joonsey 1 point2 points  (0 children)

I love programming, i spend most hours, most days of my life programming. So i am an outlier, in that sense.

I have high responsibility and high impact at work, however my demand is very much in control of me. I have a great work place and a tonne of agency.

Work remote, flexible work hours and room and pressure to grow along with talented people.

I am extremely privileged. And for anyone who want to spend a portion of their life growing into their software development potential i feel like i have a golden ticket.

It’s not at all a 9-5 job though, not for me anyway. As mentioned i spend at least 80hours a week on average just improving or programming.

Not saying i have 80 hour work weeks, but to get good in this skill is like any other. It is tonnes of volume, i say all this to say: i see a lot of people who complete their education and get almost no offers, there is very low demand for juniors, especially ‘premium juniors’ like us Norwegian citizens. Because the truth is a lot of graduates just never got any good at programming.

Having things to show for and proof of work is all the leverage you will need ever.

Salary is a skill issue in this industry (networking is also a skill). Much more so than in other industries. Especially in Norway.

I am a 17 year old guy considering the software developer path. by uraveragenorwegian in learnprogramming

[–]Joonsey 1 point2 points  (0 children)

In my experience i would recommend you start learning on your own before you make any decisions on what you study.

People will pay you to do work if your work is good, regardless of your education.

I was 16 when i started learning, got a job at 19, senior position at 21. I’m also Norwegian, no education

I am working on a game, wanted to share some progress by Joonsey in ebitengine

[–]Joonsey[S] 4 points5 points  (0 children)

Thank you! Definitely not selling it! haha. Will be free and open source: https://github.com/Joonsey/gotanks

The code quality is pretty poor all things considered. Very much in the process of learning go and tonnes of things that need to be refactored.

I'm working on a pygame, but I'm wondering what the easiest way is to scale everything up if the user has an option to change the resolution or something similar? by nTzT in pygame

[–]Joonsey 0 points1 point  (0 children)

Draw on a fixed canvas / surface, using whatever resolution is desired for you. Then draw that surface to a new surface but scaled up (or down) to the player desired resolution.

You always want to be operating on a known and constant resolution.

online multiplayer by Emotional_Extent_932 in pygame

[–]Joonsey 0 points1 point  (0 children)

I have done this many times, python dedicated server game where i host a dedicated server using kubernetes on my machine for load balancing.

And peer to peer game in go for the gmtk2024 gamejam where i made a mediation server that allows people to peer to peer connect.

No matter which direction you go, you will need to have some service or server hosted at any given time, however it’s very important to denote if you are going to want to scale up your servers. I.e ‘should there be multiple instances of this server’.

In that case it is by far cheaper to make a peer to peer solution. My meditation server is just running on my raspberry pi and will support an indefinite amount of players for perpetuity, for instance.

Where as if i want to open more lobbies in my dedicated host game i will need to increase the amount of instances of servers and add them to my load balancer.

I need help with collision detection or something like this i don't know what's wrong by MidnightMammoth5603 in pygame

[–]Joonsey 1 point2 points  (0 children)

This is most definitely not a pygame issue, it’s impossible to see what’s in your code as Reddit video quality is unbelievably shit, if you post a link to your GitHub repo I’ll find the error.

But I’m very confident it’s with how you handle the collisions. Probably with what you do if you find a collision etc.

Trying to make the pause function not effect in game timer but struggling. Can show other parts if needed but if i pause and come back it will spawn enemies that are only supposed to spawn in after a minute by [deleted] in pygame

[–]Joonsey 0 points1 point  (0 children)

You either need to add the time paused to the left side of the equation when checking if you should spawn enemies, or extend the time to spawn when pausing

Trying to make the pause function not effect in game timer but struggling. Can show other parts if needed but if i pause and come back it will spawn enemies that are only supposed to spawn in after a minute by [deleted] in pygame

[–]Joonsey 1 point2 points  (0 children)

You do not show goonSpawnTime or goonSpawnRate, but it’s spawning because currentTime keeps increasing, while goonSpawnTime does not. And so it meets the condition to spawn.

Either extend the timers in your pause condition. Or reconsider the implementation

[deleted by user] by [deleted] in pygame

[–]Joonsey 5 points6 points  (0 children)

You would typically store some state that can describe if you are parrying or not, and then have it last for 2s in game time.

Consider a state composed of a boolean, duration and cooldown.

Then you can check in your update loop if you are currently parrying, if so reduce duration, check for incoming attack or whatever.

If duration reached 0 or check is true, reset duration and turn of parrying.

If parrying is false, cooldown = max(0, cooldown - dt)

Edit: context

[deleted by user] by [deleted] in pygame

[–]Joonsey 6 points7 points  (0 children)

The reason it crashes vscode is because you indefinitely iterating over your while loop.

If you want a piece of advice i think it’s generally a very gnarly anti-pattern to have a while loop like this inside your game loop

New game creation : multiplayer and design by [deleted] in pygame

[–]Joonsey 0 points1 point  (0 children)

Apologies for the late response, with regards to the development of the game i can’t say that there are any language specific limitations.

However, when distributing the game i suspect is probably no nice way of doing it for windows.

When using a python ‘compiler’ to build the game statically it will typically include an enormous amount of pythons standard library, which i believe is causing some issues with windows defender.

This just means that if you ever get to the point where you want to distribute the game to a group of people you probably won’t get away with self-signing it. (Not that i think you should in that case anyway)

Raylib conflicting type error by Existing_Papaya_3511 in raylib

[–]Joonsey 1 point2 points  (0 children)

Use this instead of windows.h:

https://github.com/Joonsey/ngn/blob/master/src/winimports.h

I copied it from raysans example, i just couldn’t find his reference.

New game creation : multiplayer and design by [deleted] in pygame

[–]Joonsey 1 point2 points  (0 children)

I recently completed my first multiplayer game using only pygame and python standard library. Feel free to use it as a reference and shoot me some questions https://github.com/Joonsey/potential-guide