How this one habit made me a (better) programmer (as a non programmer)

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 13

  • @UCKszbcV
    @UCKszbcV Рік тому

    All the best Bruno, you are a source of inspiration.

  • @barbaragendron2836
    @barbaragendron2836 Рік тому +2

    Thanks for sharing this point. As I experienced it I was impressed about how its helps. Either you directly use what you've learnt in a different context, or at least you gain confidence for your learning journey. I'm now a bit more convinced that this is the way to go. Very inspiring!

  •  Рік тому +1

    I was one of those that copy/paste a lot of lines of code. What a beautiful moment when I found about purrr::map() family functions. Thanks for sharing!

  • @alex146
    @alex146 Рік тому +1

    I'm watching your videos and I'd say you're doing a great job!

  • @ArthurSchoppenweghauer
    @ArthurSchoppenweghauer Рік тому

    By always looking for the most general solution, you can actually make it worse. This can happen because the right level of generality is not always obvious. Committing to a particular programmming ideology (FP, OOP) early on will
    1. require the computer to do additional work not needed to solve your problem (i.e. introducing type checking when your code doesn't need it or calling constructors)
    2. make more it difficult add more functionality later, because you'll probably need to break up your "neat" little abstractions (usually functions or perhaps even classes if your one of those message passing OOP types).
    And if your code is *really* performance critical R should not be your language of choice. Generally I think the best way is to start with a more procedural style and then abstract whenever it becomes clear, that you would need to repeat yourself. Also, checkout Brian Will's videos.

  • @augustocleal
    @augustocleal Рік тому +1

    Nice tip. I would say that this mentality it's a programatic approach to problems.

  • @djangoworldwide7925
    @djangoworldwide7925 Рік тому

    Bruno I miss your contact! Most advanced R topics

  • @EsinaViwn9
    @EsinaViwn9 Рік тому +1

    good channel

  • @josiahparry
    @josiahparry Рік тому +2

    ain't this the truth!

  • @EsinaViwn9
    @EsinaViwn9 Рік тому

    I have a question for you; maybe you are the most relevant person to start this conversation with: why do courses/tutorials on R loops focus on base for loop while for the long-run progress one ought to use foreach anytime s\he can? I am prising foreach because of efficiency concerns + parallelization possibilities

    • @brodriguesco
      @brodriguesco  Рік тому

      Really depends what you want to teach. If you’re simply focusing on teaching the concept of repeating a computation, then simply using the base for/while loop is enough. But I agree that teachers/trainers should, at the end of such a chapter focusing on loops, at least mention the possibility to run loops in parallel.

  • @pseudospectral2
    @pseudospectral2 Рік тому

    I was here!