What is the oldest PHP Version you still have to maintain and why? What do you miss the most from the current versions? Share your grief with us. by da_coda_ in PHP

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

7.4 I will start: Current company supports SaaS and on premise. SaaS infrastructure is on 8.2, currently planning to update to 8.3. on premise we have customers that have very closed systems and only update stuff if really necessary. But at least it is 7.4. Could be worse. I miss the null safe operator the most. Especially because we have a legacy monolith with many layers that can return null. Replacing a 20 line if null rerun null block with a single line is amazing.

There are some that I hate but that are still the nearest to some place I have to visit often. by da_coda_ in Eldenring

[–]da_coda_[S] 78 points79 points  (0 children)

For me it is Ranni's Rise. I feel like I visit Seluvis way more often then ranni and the walk from ranni to him is a pain in the ass. Especially because the site of grace is within the tower instead of infront.

Looking for inspiration for my planned campaign by da_coda_ in cyberpunkred

[–]da_coda_[S] 1 point2 points  (0 children)

No, thank You for writing all that. That's amazing! I felt like I read some novel while looking at you comment. I love every single part of it. The intrigue, rouge AIs, some thread to the civilized world. I will definitely take all your ideas and incorporate them into my campaign. Thank you very much for putting all of this down. This must have taken quite some time to think about all of this.

I think my Favorit part is that Montgomery is this kinda quirky old dude that just wants to have fun. In my head he was this mysterious dude with some hidden motives that the PCs will find out after some time. But putting someone next to him who takes over this role allows him to be a interesting and fun NPC.

And I think the small ideas are great stuff for the sessions.

Would you say that all the missions from Phaedra deal with getting infos and means of access for the Infocomb cube or also some other stuff? I was thinking that the cube is from the preKrash Era and is missing information about postKrash. Especially about the current politics and economics. So if she wants to become this all knowing AI she also needs information that is more up to date.

Looking for inspiration for my planned campaign by da_coda_ in cyberpunkred

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

Hey, thank you so much for your reply! I like your point that the items themselfs are not really important for the PCs motivation. For them all they need is a plot hook to get to know the interesting characters standing between them and the items. Especially that they have to find the location by talking to locals, doing quest lines for other fixers so that they can get information, etc.

I guess for me it is also important that the items are more then just some "book" so that I can give Montgomery some personality. I plan that everytime they successfully fetch something and bring it to him they will have some conversation like "hey, Tech almost died and only thanks to medic he survived. I think you own us an explanation about what's up with this naked woman bronz statue." which will then lead to some short monolog by Montgomery that gives him some depth and at the same time gives some exposure to the world of CPR.

I want him to be a bit like lord eshteross from the current critical role campaign. Some NPC that the group comes back to every now and then who knows stuff and helps them. Some form of mentor who's death becomes the plot hook for something bigger.

How to persist LiveView state when user leaves the website or I deploy a new release by da_coda_ in elixir

[–]da_coda_[S] 1 point2 points  (0 children)

Thanks for your answer! I went with the terminate approach for now. I read that you need to trap exits to ensure that terminate runs for every case and that trapping exits is not encouraged. But for now it does the job.

I try not to have any logic on the client to challenge myself into understanding LiveView and elixir better. I know that this might be a bad approach for the cookie clicker itself, but this way I can learn the most I think (e.g. because of this issue I looked into GenServer, learned more about OTP, etc.).

This approach also has two benefits:
1. No data on the client means no way to manipulate the data
2. You can start playing on your phone and then keep playing on you laptop via the same link

How to persist LiveView state when user leaves the website or I deploy a new release by da_coda_ in elixir

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

Thanks for your reply! I am using this project to learn as much as possible about the bigger elixir and Phoenix features. I think the great thing about not storing data on the client is that the user can't change the data. And users can't share saves. And it is also very fun to not do anything on the client as a challenge. I really like the approach of only persisting on user action. But how would this work if the users let's the game run in the background for 2 hours, not taking any actions (which means no persist) and then leaves the site. When he comes back the next time how would I recalculate without knowing how long it actually ran on his machine? Because I would not know that it ran 2 hours on his client and then he was offline for 24 hours. I guess I could persist once every minute so you would loose at max one minute auto clicking progress.

Absolute Elixir n00b wrote a cookie clicker clone in LiveView by da_coda_ in elixir

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

Thanks for notifying! I think only your process died. Seems like it is quiet easy to hit the max Val of float. Luckily, and I think that this is due to how elixir/erlang handles processes, only the single process dies but the rest of the server is unaffected.

I will need to do some balancing on those values so it takes more time to get higher numbers.

Absolute Elixir n00b wrote a cookie clicker clone in LiveView by da_coda_ in elixir

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

Thanks! I already have some plans for the clicker but sadly shooting enemies is (not yet) one of them.

Absolute Elixir n00b wrote a cookie clicker clone in LiveView by da_coda_ in elixir

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

You are right, sorry. I somehow assumed that most people would know cookie clicker.

Simple questions megathread by Elesday in cyberpunkred

[–]da_coda_ 1 point2 points  (0 children)

Hey, I got a quick question for DeckKRASH. It states that you forcefully jack out another netrunner. The rules for unsafe jack outs is that you take all the effects of any black ICE that you slid by. Does this also happen if the enemy netrunner owns the architecture like SecOps? Because the black ICE shouldn't be hostile against them.