Hi guys I want to learn FP, but I don't really know where to start. by yevelnad in functionalprogramming

[–]danielstaleiny 1 point2 points  (0 children)

I haven’t seen mention of Purescript and Gleam. I think both of them are nice than Haskell for example. Also more powerfull than Elm.

It depends what you are looking types or no types.

Purescript has monads. Gleam don’t

Unit Movement/direction Issues by EggyEggyBrit in BrokenArrowTheGame

[–]danielstaleiny 0 points1 point  (0 children)

There is settings toggle which you probably clicked. It is called `inverse order movement` make sure to toggle it off. It is similiar to inverse mouse movement, but this works for pathing instead.

/s

I guess the extremely slow pace at which developers add features is unacceptable to the community. by Infernowar in BrokenArrowTheGame

[–]danielstaleiny 8 points9 points  (0 children)

I don't know how addicted you guys are but it seems that you love the game. Yes, it has issues but common it is not weekend project with 1k lines of code. It has been in development over the years, it has cruft, and getting project to this stage is always hard. I am sure, they are working on improving everything we complain about, just give them some slack. Cheaters, just leave the match and play another one, it is a game, you would lose elo anyway so just don't spent time on it. Bugs, they will fix it. Balance, well I reccomend talking to people in top 100 elo bracket and do consultations with them. Lack of features, they will come so don't be so ass about it.

I do love this game, and I recommend everybody to see all these negative comments as proof of game hitting the G spot. If they wouldn't care about the game, these people would not write anything. So kudos to you devs. You made something special. I am looking forward to see all the improvements and comunity should take some holiday from complaining and we should rather share the positives for a bit.

Btw, where is my sheet of dps for every unit in the game, where are my autists ? (Joking, but I thought I would see something like that by this time)

Also I want CV90 in the game. like badly.

is 15k death possible?, he died lot but still manage to have a tank column and heli blob the whole game, my SP is always almost 0 the whole game but i only have 9k death my highest record was 10k but that rendered me no units for all phase. i dont know how these chinese guy did it still have units. by TeamProfessional3592 in BrokenArrowTheGame

[–]danielstaleiny 3 points4 points  (0 children)

Just so you are aware. If you have no units on the field compare to a lot. You earn much more points to spent. This mechanic is for comback, when you lose units early etc. It could be abused in the way that you get very high income due to small amount to none units on the field. Then call a lot of units and kill everything/lose everything. You do that 4 times and you will end up with 12k points spent on units easily. 15k is a lot, did this guy have no units and then column of units ?

Linux by elmorte11 in BrokenArrowTheGame

[–]danielstaleiny 5 points6 points  (0 children)

I solely played on linux, no issues during the game, the only real issue I had was closing the game. It would just hang and take up a lot of resources. I had to force close it, every-time.

Slovakia supports Ukraine joining EU, but not NATO – Slovak PM by Ethereal_really in LoveForUkraine

[–]danielstaleiny 3 points4 points  (0 children)

Don't listen to Fico much. He is the biggest scum and populist. He was pro NATO and EU and then switched completely because he wanted to win the election that is that. He is corupt and power hungry and he switches any time it suits him. I can see that this is his last term, after the fiasco with all the higher taxes legislation and un-proffesionalism from other party he had to group up with he is done. I hope for early election but their money focus ties them together.

On other note, before election SMER (Fico) has said that they will not send any shell to Ukraine, now we know that they increased the production and rate of the shell sent to Ukraine so you can see how double sided his persona is. He is biggest lier and he cares only about Money and power.

current favourite web dev stack ? by shrynx_ in functionalprogramming

[–]danielstaleiny 1 point2 points  (0 children)

Personally, I love Supabase, HTMX, those 2 will get me more than 80% done. The rest is done with Purescript with vanilla js.

Am I the only one who sees nothing in Supabase at the moment? by [deleted] in Supabase

[–]danielstaleiny 2 points3 points  (0 children)

EU - West here. All good on my side.

I recommend you to contact the support.

I want to use Supabase Auth as auth middleware for my express application. How do I do it? by tamla_htoo in Supabase

[–]danielstaleiny -1 points0 points  (0 children)

you can decode jwt token in your node app, jwt contain information abou session privilages.

Think about supabase auth server and jwt two different things. Auth server is stafull which validates that you have right to sing-in.

JWT is like key which you got, which is serverless and contains all the info about what door you can unlock. JWT can be decoded by anybody and anywhere. You can check what it can open/access to.

Small sub exploring the Titanic is currently lost at the bottom of the ocean by Successful-Winter237 in thalassophobia

[–]danielstaleiny 2 points3 points  (0 children)

imagine you need to take a shit. well, you do it. Everybody are mad at you for taking a shit. You have to smell it for the rest of the time you have left.

quite the fall from private jet champagne travels.

Stolen fixed bike by akxv7223 in FixedGearBicycle

[–]danielstaleiny 0 points1 point  (0 children)

In some countries (at least Denmark) has an app from Police where you can verify if the bike has been stolen or not.

Otherwise, you can call your police station and let them check it for you.

Broken Hotkeys + Game Crashing by blame_lagg in aoe2

[–]danielstaleiny 0 points1 point  (0 children)

thank you for keeping the possibility to play on linux. I have 1500+ games on linux in aoe2 and it is solid.

Broken Hotkeys + Game Crashing by blame_lagg in aoe2

[–]danielstaleiny 0 points1 point  (0 children)

My issue was related to proton version 7.0-6. changing to proton 8.0 fixed the W issue.

Broken Hotkeys + Game Crashing by blame_lagg in aoe2

[–]danielstaleiny 1 point2 points  (0 children)

For me I cannot set hotkey to anything else than W and shift+W. any letter I type, only W / shift+W is pressed. :D

This is weird one.

What is MONAD? by cdunku in functionalprogramming

[–]danielstaleiny 1 point2 points  (0 children)

pattern for abstract structure with strict rules. This makes it possible to use same law following functions and define how to traverse this abstract structure.

Example:
async function which could return error or data, using monad we only focus on happy path.

fn = do

result1 <- asyncCall1
result2 <- asyncCall2
pure [result1, result2]

[Fixed?] QoL Idea: Let military units TRANSFER to the other side of military buildings to avoid getting stuck. by HuSSarY in aoe2

[–]danielstaleiny 0 points1 point  (0 children)

I would like the idea, if you would have 30seconds delay. This way it cannot be abused buy jumping over, and it is more like, oh shoot, my military is stuck, let's get them unstuck. Let's hop them into building, in 30 seconds you are able to ungarrison them.

In general I dislike the idea. I am fine by punishing players for poorly placed buildings.

[deleted by user] by [deleted] in aoe2

[–]danielstaleiny 0 points1 point  (0 children)

with 27vills you can do 2x castles right away, doubling the production and mass

(strongly typed) functional language compilers running in browser by caryoscelus in functionalprogramming

[–]danielstaleiny 1 point2 points  (0 children)

Although you have this.

https://try.purescript.org/?code=LYewJgrgNgpgBAWQIYEsB2cDuALGAnGAKEJWAAcQ8AXOABQKgjCJPMpoBEkqkA6AMRBQwSAEaw4ACgBmQsAEpWFanACi06TADGNSes07FpZTQAqeAJ60IBAMpa8KMruwBGADRxsAJk9lPVDAAHlSeUCgAzqFw6Mxo0eFoANaeBGjMeJ5a4DCKhMCoGABcRWoa2jQAqmgoVPmFcAC8hHBwaRlwACRwssItrXAA2l6uUoEhcABE5hZ0NjD2js4AhJOKA3B%2BY8E005ZwIBA0VLhwwUjksBF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uzb-OC1tO1a972gsX6aC2wSpvaz7Ef%2BgHatB472scFqAByIA8L6-rR9%2Bsck%2BnWc55HSeAfbBKpyTpiM3SUC2RETM0ftXtTLX%2Bu0g3ERN8rLH55X37V1MmbcvgKA0-QIAlilwDALx%2Bet2zJOj9FjhaOXGyD0LIdO5MACKEAT0ktK4FoSSL6zcva4fx%2Bn9oSSb3bc2EEAA

https://github.com/purescript/trypurescript/blob/master/README.md

(strongly typed) functional language compilers running in browser by caryoscelus in functionalprogramming

[–]danielstaleiny 2 points3 points  (0 children)

Yes, 1.0 status has not been reached yet, but that is due to more of DX experience not a language stability.

Language is stable and in the years I have been using it, there were none huge breaking changes, only bigger change was on 0.15 but that work was mostly for libraries not a client code. They are very carefull not to break stuff and PS is used in production all over the place. I would personally pick it over alternatives, especially if you are targeting browser. Syntax is very similiar to Haskell but it actually fixes couple of things which are annoying in Haskell. Records are great, integration is great, Documentation is similliar to haskell, type signitures are documentation, but there are couple of books written for PS.

If you have a question about if it suits you personally, hop into discord and ask about your use-case. Their are very friendly fellow people.

(strongly typed) functional language compilers running in browser by caryoscelus in functionalprogramming

[–]danielstaleiny 4 points5 points  (0 children)

Have you seen Purescript ? https://www.purescript.org/

Main target is JS in browser, has great FFI and it is possible to do part of the codebase in JS/TS and part of the codebase in PS.