Posts for: #Python

Book on Introduction to Programming with Python is Now Available for Sale

There’s nothing like a cold and snowy night to get the blog up-to-date!
My programming book was published by Editora Novatec and is now available for sale.
I created a page about the book, with links to bookstores and contact emails:

https://python.nilo.pro.br

The book was written in such a way as to introduce new concepts gradually, with examples and exercises. When I started teaching, I taught Basic and Pascal. With Basic, there was the problem of line numbers. With Pascal, semicolons… it was too much to write before starting to program. In these cases, using a clear and simple pseudo-code, free from excessive symbols was interesting.
I avoided using pseudo-code or flowcharts, as I believe that when learning to program, it’s best to get straight to the point. With the Python language, everything becomes much simpler. Writing in pseudo-code can even be more complicated than writing in Python!
The reader/student needs to see something happening to continue studying. The important thing is to know how to read the program and understand what will happen when the program is executed. I really believe that the student should know if the program is correct before executing it. Execution is only a confirmation. A section on tracking was included in the book, to preserve this important step in learning programming.

Read more

Book on Introduction to Programming with Python is Now Available for Sale

There’s nothing like a cold and snowy night to get the blog up-to-date!
My programming book was published by Editora Novatec and is now available for sale.
I created a page about the book, with links to bookstores and contact emails:

https://python.nilo.pro.br

The book was written in such a way as to introduce new concepts gradually, with examples and exercises. When I started teaching, I taught Basic and Pascal. With Basic, there was the problem of line numbers. With Pascal, semicolons… it was too much to write before starting to program. In these cases, using a clear and simple pseudo-code, free from excessive symbols was interesting.
I avoided using pseudo-code or flowcharts, as I believe that when learning to program, it’s best to get straight to the point. With the Python language, everything becomes much simpler. Writing in pseudo-code can even be more complicated than writing in Python!
The reader/student needs to see something happening to continue studying. The important thing is to know how to read the program and understand what will happen when the program is executed. I really believe that the student should know if the program is correct before executing it. Execution is only a confirmation. A section on tracking was included in the book, to preserve this important step in learning programming.

Read more

Changing User Names with SVN

I had to change the name of the user who made commits in the SVN repository after migrating from one machine to another. In this case, the repository was created for local use with local users and then integrated for departmental use.

To swap user names:

  1. Make a dump of the repository (for backup purposes) using svnadmin

    svnadmin dump REPO_PATH > dump1

  2. Using svndumptool.py:

    svndumptool.py transform-revprop svn:author
    OLD_NAME NEW_NAME dump1 dump2

Read more

Changing User Names with SVN

I had to change the name of the user who made commits in the SVN repository after migrating from one machine to another. In this case, the repository was created for local use with local users and then integrated for departmental use.

To swap user names:

  1. Make a dump of the repository (for backup purposes) using svnadmin

    svnadmin dump REPO_PATH > dump1

  2. Using svndumptool.py:

    svndumptool.py transform-revprop svn:author
    OLD_NAME NEW_NAME dump1 dump2

Read more

One Laptop per Child

I became a professor by accident. In college, I was good at math and always taught someone… it eventually got more serious. I started teaching private math classes while still in the first grade… by the time I was 18, I was an instructor for programming courses. I think my first course was Clipper :-)

In 1994, I became a teacher of logic and programming techniques as well as programming languages I and II. Teacher of algorithms, Cobol and C. Since then, I have become seriously interested in education and impressed by how quickly people learn. I confess that teaching programming is not easy, learning either. With some practice, it gets better, but I never felt content… I continue to look for new ways to teach programming. In recent years, I taught Python. A language I like a lot and use every day.

Read more

One Laptop per Child

I became a professor by accident. In college, I was good at math and always taught someone… it eventually got more serious. I started teaching private math classes while still in the first grade… by the time I was 18, I was an instructor for programming courses. I think my first course was Clipper :-)

In 1994, I became a teacher of logic and programming techniques as well as programming languages I and II. Teacher of algorithms, Cobol and C. Since then, I have become seriously interested in education and impressed by how quickly people learn. I confess that teaching programming is not easy, learning either. With some practice, it gets better, but I never felt content… I continue to look for new ways to teach programming. In recent years, I taught Python. A language I like a lot and use every day.

Read more

Python your life

I am a forgetful guy. I really don’t remember certain things, but others I don’t forget. Once, back in the late 90s, I forgot what year it was… a college friend mentioned a language called “Python”. He said it was super practical, very good, even being a scripting language.

At the time, I was already working with Linux, and anything to help was welcome. I downloaded Python and did the traditional print the primes, using lists, of course! Then I created an application to find duplicate files on the hard drive. That was enough to free me from Perl, which until then was the best scripting thing in the world for me.

Read more

Python your life

I am a forgetful guy. I really don’t remember certain things, but others I don’t forget. Once, back in the late 90s, I forgot what year it was… a college friend mentioned a language called “Python”. He said it was super practical, very good, even being a scripting language.

At the time, I was already working with Linux, and anything to help was welcome. I downloaded Python and did the traditional print the primes, using lists, of course! Then I created an application to find duplicate files on the hard drive. That was enough to free me from Perl, which until then was the best scripting thing in the world for me.

Read more