Re: [Tutor] How to present python experience (self-taught) to potential employer

2013-08-23 Thread Alan Gauld

On 23/08/13 03:45, Jing Ai wrote:


time off from my PH internship.  There's a job posting that looks really
idea for me in the near future (a PH Research position) that requires
Python experience and I wonder if any of you have any suggestions how
I can demonstrate my python skills if I'm learning it on my own as
opposed to taking courses?


I only took a course for 3 of the 20-30 programming languages I 
know/use. A course should not be necessary. Working code should

be.


Some people had previously suggested GitHub, but it seems to only show
my abilities to read python code and detect bugs, but not abilities to
write python code.


Any Python based open source project should offer opportunities to 
document/test/debug/fix and *enhance* the software. Get involved with 
your favourite project and make a difference. You can also get involved 
with the Python community here on tutor and the main Python list. Your 
comments and responses can demonstrate your level of understanding.


Since its a research position you are interested in they are probably 
more interested in your coding ability than in your general software 
engineering skills, but its worth developing good engineering skills 
too. (TDD, Version control, Documentation, etc)


--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] How to present python experience (self-taught) to potential employer

2013-08-23 Thread Japhy Bartlett
One project is fine, unless your competition has finished two.  Start at
least with one script in each language that you want on your resume that
does some sort of analysis on a set of data.

With all due respect to Amit, if you are going for academic work don't
bother with tests or documentation, proceed directly towards a demo that
makes charts.


On Thu, Aug 22, 2013 at 11:56 PM, Amit Saha amitsaha...@gmail.com wrote:

 On Fri, Aug 23, 2013 at 1:52 PM, Jing Ai jai...@g.rwu.edu wrote:
  @Amit
  Thank you for your suggestions!  I'll look into the data there and see if
  there's something relevant that I can use to do a project.  Yes I
 believe it
  would involve some data analysis (and I may need to learn R as well or
 use
  RPy).  Do you think one project is sufficient to demonstrate my skills if
  it's in-depth? Or does it take several projects?

 Hmm I am not sure. But, depends on how much time you have. If you can
 do one big project that demonstrates a number of your skills - use
 of Python and one or more of the scientific libraries, that perhaps
 speaks fair bit about what you know. Also, consider  using version
 control for your projects and of course, unit testing. I also suggest
 looking into Sphinx for documentation of your project. They also
 demonstrate that you know some of the things that you need to beyond
 just writing programs.

 Best of luck.
 -Amit.

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] How to present python experience (self-taught) to potential employer

2013-08-23 Thread Japhy Bartlett
Jing -

You demonstrate skill at writing python by writing python.  If you don't
have data, write something to scrape data.

If you seriously can't think of any problems or interesting side projects
to solve in either of your fields, bluntly, you're almost certainly
worthless as a researcher.

Go build anything!




On Thu, Aug 22, 2013 at 10:45 PM, Jing Ai jai...@g.rwu.edu wrote:

 Hi everyone,
 This is Jing and I am a recent college graduate with Biology and Public
 Health background.  I'm currently learning python on my own when i have
 time off from my PH internship.  There's a job posting that looks really
 idea for me in the near future (a PH Research position) that requires
 Python experience and I wonder if any of you have any suggestions how I
 can demonstrate my python skills if I'm learning it on my own as opposed to
 taking courses?

 Some people had previously suggested GitHub, but it seems to only show my
 abilities to read python code and detect bugs, but not abilities to write
 python code.  Some others suggested doing a project of my own, but I don't
 currently have any data or problem to solve in my field.

 Thanks so much!

 Jing


 ___
 Tutor maillist  -  Tutor@python.org
 To unsubscribe or change subscription options:
 http://mail.python.org/mailman/listinfo/tutor


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Runestone Python Course

2013-08-23 Thread Francesco Loffredo

Omar Abou Mrad wrote:




On Wed, Aug 21, 2013 at 7:52 AM, Jim Mooney cybervigila...@gmail.com 
mailto:cybervigila...@gmail.com wrote:

http://interactivepython.org

snip


Would be nice if it worked though, logged in through my google account, now i 
get this error which I can do nothing about:


  Sorry, Something went wrong

The error is: |invalid request|


|It was the same for me|. It gives this error message as soon as I try to run one of 
their ActiveCode examples.
But I discovered that if you delete the single leading blank in front of each 
line, then it works.
Maybe their parser doesn't like unindented lines starting with a space...

It's a nuisance, though.

Francesco
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] How much in a try block?

2013-08-23 Thread Chris Down
On 2013-08-23 01:30, Alan Gauld wrote:
 Unless you really only want g(x) executed if there is no MyError exception
 but want h(x) executed regardless.

I've had that situation a few times before when using the logic try this, or
fall back to this if it doesn't work.

 I'm curious, how often do others use the try/else combination?

Rarely. I think I've only used it twice in recent memory.


pgpurjbJpvZp9.pgp
Description: PGP signature
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] How much in a try block?

2013-08-23 Thread leam hall
Well, maybe I'm looking at the wrong construct. The script needs to open up
one file that will be on the machine. It will open up other files given as
command line arguments and open files to write to. It should fail
gracefully if it cannot open the files to be read or written. The community
that will use the script has varying levels of scripting but not hordes of
Python. I'd prefer to fail with an explanation so they could fix the issue
and not just blame the script.

Leam



On Fri, Aug 23, 2013 at 6:55 AM, Chris Down ch...@chrisdown.name wrote:

 On 2013-08-23 01:30, Alan Gauld wrote:
  Unless you really only want g(x) executed if there is no MyError
 exception
  but want h(x) executed regardless.

 I've had that situation a few times before when using the logic try this,
 or
 fall back to this if it doesn't work.

  I'm curious, how often do others use the try/else combination?

 Rarely. I think I've only used it twice in recent memory.

 ___
 Tutor maillist  -  Tutor@python.org
 To unsubscribe or change subscription options:
 http://mail.python.org/mailman/listinfo/tutor




-- 
Mind on a Mission http://leamhall.blogspot.com/
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] How much in a try block?

2013-08-23 Thread Peter Otten
Alan Gauld wrote:

 On 22/08/13 21:27, Chris Down wrote:
 
 You can also use the else clause if there is stuff you want to run if
 the try block doesn't raise the caught exception, which avoids putting it
 in try if you don't intend to exit from the exception.
 
 I admit that I've never really found a use for else in a try block.
 I don;t see much advantage in
 
 try: f(x)
 except MyError:
  pass
 else:
  g(x)
 h(x)
 
 over
 
 try: f(x)
 except MyError:
  pass
 g(x)
 h(x)
 
 Unless you really only want g(x) executed if there
 is no MyError exception but want h(x) executed regardless.
 
 I   guess where h() is not using x it might be helpful but in most(all?)
 of my code I've usually bailed when x has gone
 wrong or I've fixed things such that hg() and h() are required.
 
 I'm curious, how often do others use the try/else combination?

I use it for clarity even when it is not necessary. I think

try:
text = file.read()
except AttributeError:
with open(file) as f:
text =  f.read()

looks odd (an AttributeError when reading a file?) compared to

try:
read = file.read
except AttributeError:
with open(file) as f:
text = f.read()
else:
text = read()

Ah -- we're not sure whether it's a file or a filename.

Looking through my bunch of casual scripts I find that 22% of try...except 
have an else clause compared to only 11.4% in /usr/lib/python2.7.

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Runestone Python Course

2013-08-23 Thread Jim Mooney
But I discovered that if you delete the single leading blank in front of
each line, then it works.
Maybe their parser doesn't like unindented lines starting with a space...
=
That's odd. I haven't had any  of those problems. I wonder if it's your
browser. I'm using FF. Are you doing the first course or the more advanced
one? I'm only looking at the first one. If you write them I 've found them
to be very cooperative, which is the norm for open source stuff if you're
polite. imagine trying to get through the Microsoft phalanx to the
programmer, if you could even find them, and then they'd say they had no
authority to make a change until it was reviewed by the Committee of 400, a
year from now ;')

Jim


On 23 August 2013 01:18, Francesco Loffredo f...@libero.it wrote:

 Omar Abou Mrad wrote:




 On Wed, Aug 21, 2013 at 7:52 AM, Jim Mooney cybervigila...@gmail.commailto:
 cybervigilante@gmail.**com cybervigila...@gmail.com wrote:

 http://interactivepython.org

 snip


 Would be nice if it worked though, logged in through my google account,
 now i get this error which I can do nothing about:


   Sorry, Something went wrong

 The error is: |invalid request|

  |It was the same for me|. It gives this error message as soon as I try
 to run one of their ActiveCode examples.
 But I discovered that if you delete the single leading blank in front of
 each line, then it works.
 Maybe their parser doesn't like unindented lines starting with a space...

 It's a nuisance, though.

 Francesco
 __**_
 Tutor maillist  -  Tutor@python.org
 To unsubscribe or change subscription options:
 http://mail.python.org/**mailman/listinfo/tutorhttp://mail.python.org/mailman/listinfo/tutor




-- 
Jim

More and more, science is showing that animals, even simple ones, have
awareness and feelings. There is no hard divide, as the rape-the-earth
crowd would have us believe..
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor