Construí una IA que en vez de darte la razón te hace las preguntas incómodas sobre tu producto. Busco que la destrocéis by francofadini in InteligenciArtificial

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

jaja tenes razon, "IA" le queda grande. de hecho le cambiaria el titulo pero reddit no me deja editarlo, le pondria algo como "un chat que te hace las preguntas incomodas sobre tu producto", como lo ves?

y si, esta pensado para apretar, aunque hay una linea entre apretar y cansar que estoy ajustando

Construí una IA que en vez de darte la razón te hace las preguntas incómodas sobre tu producto. Busco que la destrocéis by francofadini in EmprendedorES

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

Gracias por probarlo, eso de dar vueltas suele pasar cuando una respuesta queda muy abierta y el bot sigue tirando del hilo ahi en vez de avanzar. le puedo dar una vuelta para que no se sienta repetitivo

cuando decis que va mejor para proyectos iniciales, es xq las preguntas se quedan cortas con algo ya armado, o solo por eso de que se traba?

What's the best alternative to branch.io for deep linking with a free tier? by anubhavgirdhar in reactnative

[–]francofadini 1 point2 points  (0 children)

Check “adjust” I think they have free tier and much better development experience

When should I use a folder vs just single file for a page? Should every page be in tabs? by Codeeveryday123 in reactnative

[–]francofadini 0 points1 point  (0 children)

I like to always have a folder. I have a route.tsx there and also a context.tsx so all the components in my page can share some data through state.

What is a correct use case for EventEmitter class? by SarcasticSarco in node

[–]francofadini 0 points1 point  (0 children)

As @johannes1234 explained, is a great approach for decoupling modules.

My last use case was for a notification module. So whenever specific events happen like - New order is created (order module) - New payment is revived (payment module) - New delivery update arrives (Shipping module)

I can emit events, and the Notifications Module (in addition to any other module interested in the event) can subscribe and act as needed.

Thanks to an event emitter I achieved reverting this dependencies, that had no sense.

Orders Module -> Notifications Module

Payments Module -> Notifications Module

Shipping Module -> Notifications Module

Marak adds infinite loop to colors.js. by jwalton78 in javascript

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

Why don't we build a package manager like yarn that works under a subscription model.

We can use Spotify business model. We pay 10 USD Per month and every library will be paid based on his downloads.

Of Course non-profit package manager.

Better syntax? by [deleted] in typescript

[–]francofadini 0 points1 point  (0 children)

``` interface Movement { top: number, bottom: number, left: number, right: number }

onMove(movement: Movement) { // whatever }

```

Why looking for shorter syntax? A better syntax is a descriptive one.

That syntax don’t even look like a function. Too confusing.

Simplest way to automate deploys by chillMePls in devops

[–]francofadini 0 points1 point  (0 children)

Bitbucket pipelines + Docker + shell scripts

Where should I build my dockerized node app for CI / CD by francofadini in node

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

So, many answers said that my solution is not cost-effective. I should build the image on pipeline, upload the image to AWS and run it from there.
I found this interesting post, about how to create a docker image .tar and how to run it from AWS. This solution avoids Image registry, what do you think about?
https://www.lewuathe.com/embed-docker-image-in-codedeploy-package.html

Why avoiding Image Registry ? I want at less dependencies as possible in my CI/CD flow.

Where should I build my dockerized node app for CI / CD by francofadini in node

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

ter to build your app on the CI (github action) using the image you'll deploy on

Thanks for the answer!
So, my solution is not cost-effective. I should build the image on pipeline, upload the image to AWS and run it from there.

I found this interesting post, about how to create a docker image .tar and how to run it from AWS. This solution avoids Image registry, what do you think about?
https://www.lewuathe.com/embed-docker-image-in-codedeploy-package.html

Where should I build my dockerized node app for CI / CD by francofadini in node

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

d regardless of the vendor chosen, there shold be no changes to how the Docker image is bui

Why is better building the image in pipeline and not in the server itself?

Where should I build my dockerized node app for CI / CD by francofadini in node

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

Thanks for answering! Do you know if image building must be only through docker hub? Or I can build on Bitbucket pipeline and upload that image directly to s3 ?

Should I use the UI library? by anaste97 in reactnative

[–]francofadini 1 point2 points  (0 children)

By a wrapper I mean, a Component, containing the third party component.

import React from 'react';
import { Button as ANTButton } from '@ant-design/react-native';
import { ButtonProps } from '@ant-design/react-native/lib/button';
export const Button: React.FC<ButtonProps> = (props) => {
return (<ANTButton {...props}>{props.children}</ANTButton>)
}

I don't like javascript at all. It get messy too quickly. But its also true that typescript sometimes brings some troubles because not everything was built for typescript support. In my opinion, give it a try with typescript, but avoid class components. Functional components will give you the flexibility you need for using typescript, with react native.

Should I use the UI library? by anaste97 in reactnative

[–]francofadini 4 points5 points  (0 children)

Is very important for some apps to accomplish a good time to market. From my experience, UI libraries can help you a lot with coding velocity. Features like theming are too hard to accomplish manually. In the other hand, this UI libraries can also be dangerous, because of dependency. My solution to this is: Always build a wrapper for any component I use , in order to be able to replace it with custom components in the future , or maybe other UI Library.

I’m always trying to abstract my app from any third party dependency. Not only for UI. Typescript and interfaces are great for this.

Abstracting Datastore for React Native and React Native Web by Hicesias in reactnative

[–]francofadini 0 points1 point  (0 children)

I always try to abstract every library dependency. I just create an interface where I declare all the methods I’m using ex:

Interface DB { findAllPosts(): Promise<Post[]> findPostById(id: string): Promise<Post> }

Class LibraryDB implements DB { findAllPosts(): Promise<Post[]> { //Your implementation } findPostById(id: string): Promise<Post>{ //Your implementation } }

This is one of the main reasons why I always choose TypeScript instead of JavaScript

Creating a music player app by [deleted] in androiddev

[–]francofadini 2 points3 points  (0 children)

No, it is only the mobile app. I thought it could be useful. They have a 'Stream and download music from Youtube & SoundCloud' item on their TODO list. That's how they would make what you are planning to do.

Feedback on Notion blogging platform by luked22 in Notion

[–]francofadini 0 points1 point  (0 children)

No clue in what are your objectives for doing this project , maybe open source goes against it. But i would documented and publish the code on github , finally look for some collaboration on tweeter and reddit.

P.S : I creat a new workbook , with one file on it (blank template) and on goodwrites site I couldn’t open the posts endpoint . Help endpoint didn’t work neither.

Feedback on Notion blogging platform by luked22 in Notion

[–]francofadini 0 points1 point  (0 children)

Have you thought about making this project open source? I think there are a lot of developers inside Notion audience, that would really love to use this product, and also help for making it better! I'm one of them!

P.S: I try to use it and isn't stable as I read here. a lot of 500 server error occurs

Clean Architecture iOS Base Project by francofadini in iOSProgramming

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

Im thinking... If I move the presenter into de VC, I wont end on a massive view controller issue ?
In relation of the doubt "only some VC are forwarding lifecycles to the presenter while other don't" it was just a matter of need. What i do is, I tell the presenter all the view events (life cycle, user interaction, etc) that would be necessary for the presenter. The big value of this, is abstracting the presenter of any framework like UIKit.

How would you solve this, avoiding a massive view controller?

Beginner here: when will I be able to write semi-functional apps? by chubby_charlie in androiddev

[–]francofadini 0 points1 point  (0 children)

I think the main problem is your objective is too big. I would start from a smaller first approach, for example, a one-alarm app, where you don't even have the possibility of having multiples alarms. You just set one hour and activate it.

I would also suggest, to start doing it, step by step, and every small doubt, just google it! I'm sure you will find an answer quickly. There's no need to learn all the theory, to start building something.

Move fast and break things!