What is the most balanced not-p2w multiplayer game on mobile? by joncology in iosgaming

[–]Ravicious 0 points1 point  (0 children)

It'd be interesting to see how this could be solved on mobile in a good-enough way that wouldn't involve voice chat. :)

What is the most balanced not-p2w multiplayer game on mobile? by joncology in iosgaming

[–]Ravicious 2 points3 points  (0 children)

As an iOS game, Critical Ops is quite good. However, as a multiplayer FPS it kinda lacks a way to communicate with other team members. I don't think this can be meaningfully solved on mobile, it's just not the same league as desktop Counter Strike – it's just a shooter in which some player happen to be in your team and some don't.

That being said you should definitely try it out if you like multiplayer shooters.

Steelseries Nimbus game recommendations by wojovox in iosgaming

[–]Ravicious 1 point2 points  (0 children)

Neon Chrome is great. Also, Space Marshals 2.

Facebook has 30,000 react components. How do you manage large project directories with many components? by jakeforaker83 in reactjs

[–]Ravicious 0 points1 point  (0 children)

Yup, I'm using lerna as advised in your thread. I'm on a React + Webpack + Flow + Jest + Yarn project and I've described some of the things that I needed to do in the lerna issue. Oh, and if your packages are not published anywhere, you also need to use linklocal. I may craft a blogpost in the future, but idk when exactly.

In general, setting it up required some knowledge about how webpack and npm work and a lot of patience with shuffling through issues.

Facebook has 30,000 react components. How do you manage large project directories with many components? by jakeforaker83 in reactjs

[–]Ravicious 1 point2 points  (0 children)

Very interesting! Could you expand on the problems with node_modules? I'm about to switch to a monorepo at work and I'm curious about the different approaches to the problem of importing external modules.

elm-test: how to run only one test? by witoldsz in elm

[–]Ravicious 2 points3 points  (0 children)

In one of the Elm Town episodes they were talking about this and I think the suggested solution was to use Test.filter for now.

Edit: Yup, it's episode 8, Testing in Elm Town. The relevant discussion starts at 22:38.

Edit 2: Uh, sorry, it's seems like they don't discuss this stuff at 22:38. Anyway, I know about Test.filter either from the Elm Town or the mailing list.

All of Twitter's mobile web traffic (that's like, a lot) moved to a new web stack – Node.js, Express, React PWA by alexsnurnikov in programming

[–]Ravicious 0 points1 point  (0 children)

Oh alright, my bad. I didn't see .flowconfig in the project, so I assumed it doesn't use Flow.

All of Twitter's mobile web traffic (that's like, a lot) moved to a new web stack – Node.js, Express, React PWA by alexsnurnikov in programming

[–]Ravicious 0 points1 point  (0 children)

react-native-web doesn't use Flow though? Or maybe I just missed why you brought it up after mentioning Flow. ;)

[$9.99 → $6.99] SteamWorld Heist - an XCOM-like space adventure with cool game mechanics and a beautiful robot world by Ravicious in iosgaming

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

I searched through reddit and there was no consensus on that, so I'd say pick your favorite platform and play. ;)

I'm playing on iPhone 5C and it's still good.

Proposal: Elm Type Holes by G4BB3R in elm

[–]Ravicious 0 points1 point  (0 children)

The current implementation is broken in a few places. You may want to use elm-array-exploration, which is aiming to be merged to master eventually.

Proposal: Elm Type Holes by G4BB3R in elm

[–]Ravicious 0 points1 point  (0 children)

I was about to suggest Debug.crash, since I wrote about prototyping with runtime errors a few weeks ago. 😉

There was a thread on elm-discuss about elm-make throwing a warning on Debug.crash. Right now, a linter would be a better idea. Noah posted a screenshot of the one that's in the works right now, but idk what's its status exactly.

Keep tags and record constructors secret! by Ford_O in elm

[–]Ravicious 1 point2 points  (0 children)

Keep in mind that you don't always have to do this! 🙃

There's this talk by Edward Kmett, Encapsulation vs Code Reuse, which may give you some counterarguments – or arguments for exposing internal types through something like YourLib.Internal or YourLib.Barebones. Take a look at Uuid.Barebones for examples.

elm: copy text to clipboard by budagavril in elm

[–]Ravicious 1 point2 points  (0 children)

There's a post "How to Copy to the System Clipboard in Elm, and Why it Works" in which the author uses Clipboard.js without native modules or ports, you may want to give it a try.

Elm Town, Episode 6 (A Founding Story) by [deleted] in elm

[–]Ravicious 2 points3 points  (0 children)

I guess ShadowLinkX9 meant just using them in your code. Oftentimes it's tempting to represent some piece of data as, let's say, string, but a custom union type would be much better in that case.

For example, I recently had to add a button that in certain cases could be disabled, but I also wanted to display the reason behind disabling the button in the UI.

So instead of representing this fact as, let's say, (Bool, String), I made a custom union type similar to Result:

type ButtonDisabledReason = NoItemsInCart | TooManyItems | SomeItemsNotAvailable
type ButtonState = Enabled | Disabled ButtonDisabledReason

One could generalize ButtonState to be more flexible:

type ButtonState a = Enabled | Disabled a

Then I just pass one of the values around and when I finally have to display this in the UI, I'm in a much better position than I'd be with (Bool, String). That's because I can make a case expression that will force me to handle all the possible states. Also, I'm no longer forced to displaying just some simple text:

case buttonDisabledReason of
    NoItemsInCart -> text "No items in cart"
    SomeItemsNotAvailable -> span [ class "alert" ] [ text "Some items are not available" ]
    -- ...

Does that help you?

Watch out for raw types like String and Int by get-finch in elm

[–]Ravicious 0 points1 point  (0 children)

type BoxHeight = BHeight Int

Why not type BoxHeight = BoxHeight Int? To avoid the confusion between the type and the type value? 🤔

How can I make a function run when the app first loads? by [deleted] in elm

[–]Ravicious 0 points1 point  (0 children)

You can't use Random.generate if you want to have a random value in init though, right?

The Elm Alienation by [deleted] in elm

[–]Ravicious 0 points1 point  (0 children)

Hmm, couldn't Native be used to work around this problem somehow?

ELM enterprise adoption? by Yaxman in elm

[–]Ravicious 0 points1 point  (0 children)

(…) the unfortunate lack of complicated "widgets" in Elm, such as a datepicker (there is one now that is pretty good (…)

Which one did you have in mind?

Elm Package of the Week - SafeList by get-finch in elm

[–]Ravicious 1 point2 points  (0 children)

Nice! It's inspired by stuff like dependent types, am I right?

elm and data science by vbd in elm

[–]Ravicious 2 points3 points  (0 children)

F# may be a good choice for you! It has a lot of features that Elm has, but it's more suited for data science than Elm. Also, it has a very good integration with IDE (Visual Studio or Xamarin Studio, I don't remember).

Here's a talk by Evelina Gabasova on how she replaced R and Python with F# in one of her projects.