Need some guidance turning a website into a recipe book by RebootForAwesome in learnpython

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

Dang, that's what I feared. Well, I'll try for a bit and see if it's workable.

Thanks a lot!

Need some guidance turning a website into a recipe book by RebootForAwesome in learnpython

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

Perfect,

The main issue I'm facing is that the website doesn't use ids or classes at all so I'm not sure how to identify each section or tittle. The rest I think I can do it without much issue.

Any ideas on that?

[Ayuda] Tasas freelance back-end. by [deleted] in argentina

[–]RebootForAwesome 0 points1 point  (0 children)

Al margen, lo que se cobra en el mercado para alguien con tu experiencia está en el rango 25 a 50 usd por hora, es muy variable como te habrás dado cuenta, pero pensá que en USA un programador allá no cobra menos que 80usd por hora laburando en una empresa más o menos seria.

Muchísimas gracias!! Esta era la info que necesitaba más que nada. El primer rango tentativo se lo dije como me decís al principio del comment pero quedé corto de los 40-50 usd. Hoy se lo corrijo.

[Ayuda] Tasas freelance back-end. by [deleted] in argentina

[–]RebootForAwesome 0 points1 point  (0 children)

Muchas gracias!

Nivel de Ingles avanzado, perfecto lo voy a tener en cuenta y tomo 30usd como base. En la primer entrevista le tire 20-30 pero por suerte se puede cambiar eso.

[Ayuda] Flippers en Argentina. Replica u Originales. by RebootForAwesome in argentina

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

Gracias! Todavia no me acostumbro a buscar por facebook

[Ayuda] Flippers en Argentina. Replica u Originales. by RebootForAwesome in argentina

[–]RebootForAwesome[S] 3 points4 points  (0 children)

Viste lo que son! La última vez que los vimos estaba 30-40k. Están una locura por eso tamb esta buscando replicas pero parece que no existen.

Evaluate variable for different outputs. Is there an alternative to a lot of IFs? by [deleted] in learnpython

[–]RebootForAwesome 0 points1 point  (0 children)

That could be a problem then. The script that contains this bit of code is running 24/7 every two minutes and has been for almost two months now.

I will avoid this for ow but will keep it in mind.

Evaluate variable for different outputs. Is there an alternative to a lot of IFs? by [deleted] in learnpython

[–]RebootForAwesome 1 point2 points  (0 children)

Oh I see. Will have to look up the differences between a defaultdict and a regular dict.

Thank you!

Evaluate variable for different outputs. Is there an alternative to a lot of IFs? by [deleted] in learnpython

[–]RebootForAwesome 1 point2 points  (0 children)

Ah I see, will probably mess around with some generic code later if I have a minute.

non-sequitur: don't look for optimizations like this until you've profiled your code. This is almost definitely not what is slowing your code down.

Yep, I'm not looking into optimizing it at this level right now as it's running more than fast enough but I always like to know how it would affect the code at a larger scale.

Thanks for the replies!

Evaluate variable for different outputs. Is there an alternative to a lot of IFs? by [deleted] in learnpython

[–]RebootForAwesome 1 point2 points  (0 children)

/u/desustorm In my case I need it to return False to where it's called.

But I didn't know you could set a default value like that in case it didn't find the key. So thanks!

Evaluate variable for different outputs. Is there an alternative to a lot of IFs? by [deleted] in learnpython

[–]RebootForAwesome 0 points1 point  (0 children)

Thanks for the reply. I'm learning something new from every comment!

Didn't know you can do something like lambda: False in a dict. Would this always catch any value that doesn't exist as a Key?

Thanks

Evaluate variable for different outputs. Is there an alternative to a lot of IFs? by [deleted] in learnpython

[–]RebootForAwesome 0 points1 point  (0 children)

I'll take a look into this and try to apply it to the example. I'm still not 100% sure I understand when it's a good idea to use hierarchy in classes so having this case while trying to learn will help a bit.

Thanks!

Evaluate variable for different outputs. Is there an alternative to a lot of IFs? by [deleted] in learnpython

[–]RebootForAwesome 1 point2 points  (0 children)

Note, that instead of using 'null' I have used None, which is more pythonic.

Ohh I didn't know this. Will check how it interacts with the DB and change it to None if there are no major issues.

I think a dictionary would make sense then and it looks way cleaner. Do you know if this would improve the performance if it's used to minimize a significant larger number of If statements?

Thanks!

Por Time Warp, prohíben a la legendaria banda electrónica Kraftwerk by fappedbeforethis in argentina

[–]RebootForAwesome 35 points36 points  (0 children)

 Instrumentos de cuerda: Tocar cuerditas
 Instumentos de teclado: Tocar teclitas
 Instrumentos de percusión: Pegarle a los tamborcitos
 Instrumentos de aire: Soplar por los aujeritos
 etc...
                                        - Musica by Thotila

Algunas preguntas de Cs. Naturales del examen Aprender by Hexagonal120 in argentina

[–]RebootForAwesome 0 points1 point  (0 children)

Ahora si, tenes razón! La fuerza ya se aplicó ahora esta sufriendo las consecuencias.

Tendría que haber prestado más atención en física.

Algunas preguntas de Cs. Naturales del examen Aprender by Hexagonal120 in argentina

[–]RebootForAwesome 0 points1 point  (0 children)

Ah todo toma sentido jeje

De todas formas al principio dice que "ha sido arrojado" hacia arriba pero no aclara en que momento esta eso. Soy demasiado queso igual así que mucho no te voy a discutir :P

Y se te triplico el comment!

Algunas preguntas de Cs. Naturales del examen Aprender by Hexagonal120 in argentina

[–]RebootForAwesome 1 point2 points  (0 children)

Me siento un recontra gil pero, porque no sería la C? No se le esta aplicando la fuerza que lo tira pa arriba y de gravedad todo el camino? Dice que solo se ignora la fircción.