you are viewing a single comment's thread
view the rest of the comments
[–] 39 points 7 months ago (10 children)

At work, the team isn't very good at python. They're mostly SQL people. Which is fine. I'm happy to mentor and guide.

The product lady said to me "can you write a guide on confluence about how to do python good?"

I'm like, people write whole published books about that you gotta pay money for. I'm not going to bang out a couple paragraphs and code blocks and suddenly people are heavy weights.

I wrote something anyway because I don't want to further irritate the product lady.

  • source
  • hideshow 10 child comments
  • [–] 27 points 7 months ago (4 children)

    I was a TA in a class that expected knowledge of C. A lot of students who had only ever used Python asked if I could ring them up to speed. One student even asked if he could write it in Python and then I could "just translate it over"

  • source
  • parent
  • hideshow 4 child comments
  • [–] 10 points 7 months ago

    It's rather trivial to translate Python to C:

    $ cat << EOF > ./shitpost.c && gcc -O2 -o ./shitpost ./shitpost.c && ./shitpost
    #include <stdlib.h>
    
    int main(int argc, char** argv) {
        system("python3 -c \\"print(\\\\\\"Hello, World!\\\\\\")\\"");
        return 0;
    }
    EOF
    Hello, World!
    

    My C is a bit rusty though, sorry.

  • source
  • parent
  • load more comments (3 replies)
  • load more comments (8 replies)