Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > The real world > Idle chatter

Reply
 
Thread Tools Display Modes
Old March 18, 2013, 07:58   #1
Mikko Lehtinen
Veteran
 
Join Date: Sep 2010
Posts: 1,246
Mikko Lehtinen is on a distinguished road
Dive Into Python 3

Turns out reading Dive Into Python 3 is an excellent way to learn.

I'm not a programmer by trade, but it's a hobby that I enjoy. I recently took up the challenge to write a program that takes an adult education organization's course information in XML, reorganizes the information under different titles and into paragraphs, tidies up the text and fixes common errors. I've edited/designed the 100-page dead-tree course program for years. The program will hopefully save us at least a hundred hours of manual work each year, maybe much more.

Dive Into Python 3 teaches me almost everything I need to know to write this thing. The book's concrete examples are really helpful. It's not that hard to separate data about common spelling errors (regular expressions) and how to correct them to a text file. Then maybe a function that generates tens of error correction functions based on that information... Wow.

Python 3's improved unicode handling makes everything easier.
Mikko Lehtinen is offline   Reply With Quote
Old March 18, 2013, 23:26   #2
Mikko Lehtinen
Veteran
 
Join Date: Sep 2010
Posts: 1,246
Mikko Lehtinen is on a distinguished road
Yay! It only took a (long) day to code the whole thing. What an awesome book.
Mikko Lehtinen is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A proposal... (python) Sirridan Development 81 October 24, 2010 06:49
Am I safe to dive? mattdp Vanilla 16 June 20, 2010 12:08
Looking to Dive. Zappa Vanilla 17 August 12, 2009 11:46
Almost ready to dive... fmackenz Vanilla 2 October 25, 2008 09:07
how to dive? Colbey Vanilla 15 September 15, 2008 22:06


All times are GMT +1. The time now is 15:16.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.