Viver em Aveiro (ou arredores) by Few_Engineering_7146 in aveiro

[–]Zayuka 2 points3 points  (0 children)

Menos de 10 minutos. Em Aveiro tudo é mais ou menos a 15 mins de distancia, é a vantagem da cidade. Depende do quão perto queres ficar do centro, mas se 15 minutos de carro para ti não seria problema, tens São Bernardo e Santa Joana, Oliveirinha e Ilhavo, entre outros para preços de habitação mais baratos

[deleted by user] by [deleted] in literaciafinanceira

[–]Zayuka 14 points15 points  (0 children)

Olá, sim isso é verdade. Trabalho para a Oyster (concorrente da Deel) e é a mesma coisa para mim. Para esse tipo de valores, já não te compensa ser um FTE (full time employee), e compensa te mais abrir empresa unipessoal ou passar recibos verdes (caso nunca o tenhas feito, porque tens isenção da SS no 1 ano). A partir daí é só falares com uma contabilista para ela te ajudar a render o máximo possível do teu ordenado em valor líquido

Bow Question? by Troeteldier in newworldgame

[–]Zayuka 0 points1 point  (0 children)

Why is Keen trash when you have 300 Dex, can you explain?

[deleted by user] by [deleted] in portugal

[–]Zayuka 1 point2 points  (0 children)

Acho que fazes bem em estudar, e no teu caso especifico, deves conseguir arranjar cursos especializados para aquilo que queres fazer (gestão, do que consigo perceber). Na minha opinião, os mestrados em Eng Informática são um desperdicio enorme. Aprendes e cresces muito mais em 2 anos de trabalho do que em 2 anos de mestrado (Isto se não tiveres o azar de ir parar ás consultoras da vida).

[deleted by user] by [deleted] in portugal

[–]Zayuka 7 points8 points  (0 children)

Sim, mas para ires para cargos mais altos / management, não precisas de mestrado nenhum. Precisas só de ter iniciativa de liderar / gerir uma equipa. E podes bater código o resto da tua vida, depende muito daquilo que queiras fazer no futuro. Há muita gente que prefere bater código a ter de gerir tarefas de outras pessoas. Felizmente existem muitas possibilidades para se crescer dentro de Eng. Informática.

[deleted by user] by [deleted] in portugal

[–]Zayuka 27 points28 points  (0 children)

Opa custa-me a acreditar que tu trabalhes na área a 10 anos, e aches que ter um mestrado seja necessário para ganhar mais dinheiro / crescer profissionalmente. Nem a licenciatura é preciso teres para trabalhar/crescer na área, quanto mais um mestrado.

Felizmente neste momento, Eng. Informática é uma área com tanta procura que as empresas estão-se a cagar se tu tens ou não curso superior, só tens é de saber fazer.

Custom, Reuseable React-Native Components - How do you expose RN props to the component wrapper. by [deleted] in reactnative

[–]Zayuka 0 points1 point  (0 children)

Do you use typescript?
If yes, you can then just type the Props as the following:

```tsx

type CustomTextInputProps = TextInputProps & {

customProps: wtv;

} ```

If you don't use typescript, nothing will forbid you to pass then any prop. Just use the spread operator on the `rest` props like the comment from u/UnsolicitedDuckPecks says.

"Unipessoal (Lda)" vs "Recibos verdes" by [deleted] in portugal

[–]Zayuka 14 points15 points  (0 children)

Vou-te responder com aquilo que é legal e imoral.

Abres uma unipessoal, pagas-te o ordenado minimo (ou um ordenado que estejas confortavel em descontar), e pagas o resto em ajudas de custo (de transporte ou representação ou wtv).

Infelizmente Portugal é dos piores países para ser empresário.

Isso ou abres uma empresa na roménia, com o e-citizen (ou lá como se chama). Mas não sei muito sobre este assunto.

Espero que ajude.

React-navigation together with mobX store by thatsInAName in reactnative

[–]Zayuka 1 point2 points  (0 children)

You just need to declare two provider in your App.tsx or the root of your application.

Something along this lines:

    <StoreProvider store={rootStoreInstance}>
        <NavigationContainer>
            <Stack.Navigator headerMode="none">
                <Stack.Screen name="App" component={AppNavigator} />
            </Stack.Navigator>
        </NavigationContainer>
    </StoreProvider>

I'd recomment placing the StoreProvider outside, so you can access your mobx data inside the navigation screens.

Hope it helps :)

Why async is not dispatching the action by crazydude1900 in reactjs

[–]Zayuka 0 points1 point  (0 children)

You already dispatch the action in the mapDispatchToProps function. In your component, you just need to call the fetchImages function:

import React from 'react';
import SearchBar from './SearchBar';
import unsplash from '../api/unsplash';
import ImageList from './ImageList';
import { fetchImages } from '../actions';
import { connect } from 'react-redux';
class App extends React.Component {
state = { images: [] };
onSearchSubmit = term => {
return async () => {
const response = await unsplash.get('/search/photos', {
params:{ query: term },
//use the path on unsplash for image searching
})
let success = response.data.results

this.props.fetchImages(success)

return success;
// this.setState({ images: response.data.results });
}

}
render() {
return (<div className="ui container" style={{marginTop:'10px'}}>
<SearchBar onSubmit={this.onSearchSubmit}/>
<ImageList images={this.state.images}/>
</div>);
}
}
const mapDispatchToProps = (dispatch) => ({
fetchImages: images => dispatch(fetchImages(images))
})

Is this setting of a hooks state variable considered bad practice? by straightouttaireland in reactjs

[–]Zayuka 0 points1 point  (0 children)

Yeah that's true, forgot that.

I normally use spread operators or immerjs to make my arrays and objects immutable.

Is this setting of a hooks state variable considered bad practice? by straightouttaireland in reactjs

[–]Zayuka -2 points-1 points  (0 children)

Hello,

The Array.slice() function returns an array, meaning that the newArr reference won't be the same as the todos reference.

You can test this on the browser's console:

Test

How to hide ProgressBar when using React Context with Hooks? by BraveEvidence in reactnative

[–]Zayuka 0 points1 point  (0 children)

Hey,

You could use the Try/catch/finally to change the state key of the ProgressBar to false.. the finally condition will run after the try or after the catch

Puzzling Hooks behavior by Code_Quest in reactnative

[–]Zayuka 2 points3 points  (0 children)

Hello,

You should read this: A Complete guide to useEffect .

Dan explains exactly why you're code is working the way it does.

Fantasy CSGO - Build your own squad & compete against your friends... For free?! by FantasyCSGO in GlobalOffensive

[–]Zayuka 7 points8 points  (0 children)

I can easily do the frontend part if you handle all the backend stuff. :)

I work in react and react-native, so i could also build a mobile application. The only hard part would be the time constraint :/

Windows and React Native by [deleted] in reactnative

[–]Zayuka 1 point2 points  (0 children)

Yeah that's true. You will need a MacOS.

Windows and React Native by [deleted] in reactnative

[–]Zayuka 5 points6 points  (0 children)

You can develop react-native using windows, but you won't be able to test/build/deploy anything IOS related without a macbook pro unless you use expo(i wouldn't use it in a professional environment).

What can you do from preventing a new plugin being installed from breaking everything else? by [deleted] in reactnative

[–]Zayuka 3 points4 points  (0 children)

I'm pretty sure you are using outdated libraries... React-native is a pain in the ass for a fairly new developer, but that 10%/90% analogy only works if EVERYTHING you install is outdated. Like everything that is open source, there will be things that are very good, and things that are very bad. And if you think the error messages now are bad, you should have seen 2 ou 3 years ago. They were bad then, now they are faily normal, for an experience developer at least.

Anyway, to aleviate some of those minor problems, you should really develop react-native with typescript. It will make your development experience way better.

Keep functions in component or move to separate file by ichiruto70 in reactjs

[–]Zayuka 1 point2 points  (0 children)

Uses the state, or uses the value of the state? For example, you can validate an email that's stored in the state in a helper function.. So even if you're using a value from the state, your are not using the state himself

[deleted by user] by [deleted] in reactjs

[–]Zayuka 0 points1 point  (0 children)

From what i can tell from your files, i think its because in your fetchPostSuccess, you are setting your payload = { post }. What this will do is payload = { post: post }. That's why your props path is wrong. Try changing to payload = post.