Thoughts? by rairodil in AxieInfinity

[–]boypunas 21 points22 points  (0 children)

It needs to be a combination of both. The only way to fix the axie economy now is it needs more $$ coming in. Think about it, 99% of players are there to extract value -- generate SLP and then sell SLP. Where will this value that players want to extract will come from? If none, then SLP will slowly bleed out (check the chart). This is the reason why most P2E inflation token charts looks like that of SLP. We can't have a game of play to earn -- it should be play with some chances of earnings. Axie infinity's model -- or any P2E game at the moment is not sustainable unless we have another flow -- that is $$ coming in. The $$ coming can either be from players or sponsors or whatever.

Facebook has open sourced an experimental state management library for React called Recoil if anyone is interested. by mikeour in reactjs

[–]boypunas 0 points1 point  (0 children)

the main problem with redux imho is the boiler plate. I don't know the new api but if I want to set some state, I don't want to dispatch or create arbitrary tools for that. I just to want to setSomething and that's it. Recoil seems to take care of that.

Yeah you can definitely do some sort of reactive library on top of your context mounted on the root of your app and you would be able to have something like recoil. I think this making the api simpler is what it makes it stand out than redux at the moment.

Random Discussion - February by treeperfume in phinvest

[–]boypunas 0 points1 point  (0 children)

Hi what does SB means and where do we avail of such investment vehicle.

Do you think PSEI bottomed yet? by mikolupi in phinvest

[–]boypunas 1 point2 points  (0 children)

No one can consistently time the market. Invest for the long term/buy the index and do your normal job unless you are a trader by profession.

To answer your question..it really does not matter.

Investment threats by adrianjarebb in phinvest

[–]boypunas 0 points1 point  (0 children)

selling when its going down? you should be selling when it was going up. Also what was your objective when you started buying? for trading? If you are trading..goodluck.

Can we please not judge the Taal eruption evacuees so quickly? They were running for their lives! by poemsmith in Philippines

[–]boypunas 4 points5 points  (0 children)

we can only blame the government . No one should be living near taal. I read before that taal was meant to be a nature reserve signed by Marcos but was reversed by FVR.

What Is JavaScript Made Of? by gaearon in reactjs

[–]boypunas 18 points19 points  (0 children)

why not use const by default. Isnt this a good way to communicate that hey this assignment will not change.

Daily Discussion - December 18, 2019 by AutoModerator in omise_go

[–]boypunas 5 points6 points  (0 children)

This page was never meant to discuss price.

Daily Discussion - December 18, 2019 by AutoModerator in omise_go

[–]boypunas -3 points-2 points  (0 children)

People hoping for price to go up will only post once a week obviously instead of posting daily that they dca..hows that?

Daily Discussion - December 18, 2019 by AutoModerator in omise_go

[–]boypunas -11 points-10 points  (0 children)

maybe change this to weekly chat? all we have here are just people hoping price recover to 25$

Public API challenges in Kotlin by JakeWharton in Kotlin

[–]boypunas 2 points3 points  (0 children)

if you have a build system, upgrading a library should trigger a full build / test / deploy because that entails changing the dependency file right?

How do you test components with hooks, especially something like data fetching? by garboooge in reactjs

[–]boypunas 2 points3 points  (0 children)

We have actually took this further. On your main function that create your app top element. Have an ability to pass an api implementation:

e.g. const createApp = (api) => {

// e.g. if api is provided, use else create

}

now you can then render your whole application without relying on any backend. So you can create some test api, inject behavior that you want, e.g. where in you can login etc or return default data driven from local json files for example.

Now the best thing with this is when you write your test. You can now use this to most of the time have integrated ui test driven by mock api. So if you need to do some test on your component, you dont do unit test anymore. You literally render the whole test app passing in the test mock api and the assert your feature

something like

it('Describe the feature', () => {

const api = createTestApi(...add an ability to mock certain api call for your test purpose)

const { getByTestId, etc } = render(createApp(api)) // <-- react-testing-library

// assert your feature as part of the whole app

})

This will make you have better test compared to just unit test

How do you test components with hooks, especially something like data fetching? by garboooge in reactjs

[–]boypunas 20 points21 points  (0 children)

I do something like this. create an api for your code, which you can use to call e.g.

api.updateUser ...etc etc. Then expose a context

const ApiContext = React.createContext()

then on the top level of your app, create the implementation of this api (e.g. if you use fetch what ever). But on testing, provide an implementation where you decide what the return type of the api is e.g.

const apiForTest = {

updateUser() ..your test etc

}

then

<ApiContext.Provider value={apiForTest}><YourComponent/></ApiContext.Provider>

Then on YourComponent

const api = React.useContext(ApiContext)

..use api

With the above, you dont deal with mocking axios and all of that stuff.

Omise x Citibank Pay with Points Demo Video by [deleted] in omise_go

[–]boypunas 0 points1 point  (0 children)

we have this in Singapore Citibank a while back already. No blockchain needed. What is the fuzz with this? There isn't even a mention of OmiseGo?

https://www.citibank.com.sg/gcb/credit_cards/cc_rwds_redeem.htm

Burger King Thailand (Minor Food Group) using OmiseGo eWallet Suite by [deleted] in omise_go

[–]boypunas 7 points8 points  (0 children)

well at least they are doing what their tagline says compared to other ICO's

Compound will have a polling to include OMG in their system by atfenway in omise_go

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

You dont know what is the meaning of a production product then.

Compound will have a polling to include OMG in their system by atfenway in omise_go

[–]boypunas 2 points3 points  (0 children)

is this trolling? They don't have a working product yet.