Re: [python-uk] Coding "Bootcamps"

2016-05-18 Thread Mark Lawrence via python-uk

On 18/05/2016 10:59, John via python-uk wrote:

Hi all,

A philosopher friend of mine wants to transition into working as a
software developer (paying work in philosophy being a bit rare). He
lives in London, and is considering signing up for one of the Coding
"Bootcamps" that various organisations run. I wondered if any of you
have any recommendations you could make, and indeed whether any of these
bootcamps teach Python?

Thanks,

John



Along with the other answers this 
http://www.obeythetestinggoat.com/coaches-needed-for-python-bootcamp-pycon-us-in-portland-next-week.html 
might be of interest.


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] Announcing the Yorkshire Inquisition

2016-12-07 Thread Mark Lawrence via python-uk

On 07/12/2016 13:20, Andy Robinson wrote:

I believe I am one of the original founding list admins, after 20-odd
years.  Sadly, the other, John Pinner, has passed away.

I therefore decree, as self-appointed "Benevolent Dictator for List",
that the Python CoC established by Steve Holden IS the official Code
of Conduct, and must be respected.

To enforce good conduct in a suitably Pythonic manner, I  hereby
propose the foundation of the Yorkshire Inquisition, headed by Steve.
Such an institution will have truly terrifying powers of enforcement.
Suggestions welcome on this thread

Be pure.  Be vigilant.  Behave!

- Andy



No chance.  I don't accept anything from flaming Northerners, what with 
their dark, satanic mills everywhere and not a blade of green grass to 
be seen anywhere.  Us Southerners, especially the autistic ones like wot 
I am, reserve the right to throw our toys out of the pram occasionally. 
And more importantly, our beer is vastly superior to yours, so up yours :)


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] 2 Principle Engineer roles in London up to £95k

2016-12-08 Thread Mark Lawrence via python-uk

On 08/12/2016 14:00, Andy Robinson wrote:

On 8 December 2016 at 09:29, James Broadhead  wrote:


Personally, I'd be in favour of #2 - it allows the community to promote
positions internally, but avoids recruiter-mails which seem to trigger so
much ire.


It seems to me that the real issue was a tiny number of list members
being rude to or about Sophie Hendley.

But if we are to consider changing our policy on this, then we need to
find out what the 720 subscribers think.   I would not want to cut
that many people off from a relevant and interesting future job offer
if less than 1% of them are grumbling about recruiters.   How many
people would need to express an opinion to warrant changing things?

- Andy



Please leave things alone.  I regard this entire thread as a storm in a 
thimble.


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] Online python training for non-programmers

2017-05-05 Thread Mark Lawrence via python-uk

On 05/05/2017 10:32, Leona So via python-uk wrote:


Learn Python the hard way
https://learnpythonthehardway.org/

Regards,
 
Leona




I cannot recommend LPTHW, especially after the author's disgraceful rant 
"The Case Against Python 3 (For Now)" 
https://learnpythonthehardway.org/book/nopython3.html.  "A Rebuttal For 
Python 3" is perhaps the best response.


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] Online python training for non-programmers

2017-05-05 Thread Mark Lawrence via python-uk

On 05/05/2017 10:39, Bibiana Cristofol Amat wrote:

Hi,

I would recommend to start with 'Learn Python the hard way 
'


Cheers,
Bibiana



Another reason *NOT* to use LPTHW http://sopython.com/wiki/LPTHW_Complaints

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] A stack with better performance than using a list

2017-06-13 Thread Mark Lawrence via python-uk

On 07/06/2017 18:50, Jonathan Hartley wrote:
I recently submitted a solution to a coding challenge, in an employment 
context. One of the questions was to model a simple stack. I wrote a 
solution which appended and popped from the end of a list. This worked, 
but failed with timeouts on their last few automated tests with large 
(hidden) data sets.


 From memory, I think I had something pretty standard:

class Stack:

def __init__(self):
 self.storage = []

def push(arg):
 self.storage.append(arg)

def pop():
return self.storage.pop() if self.storage else None

def add_to_first_n(n, amount):
for n in range(n):
 self.storage[n] += amount

def dispatch(self, line)
 tokens = line.split()
 method = getattr(self, tokens[0])
 args = tokens[1:]
 method(*args)

def main(lines):
 stack = Stack()
for line in lines:
 stack.dispatch(line)


(will that formatting survive? Apologies if not)

Subsequent experiments have confirmed that appending to and popping from 
the end of lists are O(1), amortized.


So why is my solution too slow?

This question was against the clock, 4th question of 4 in an hour. So I 
wasn't expecting to produce Cython or C optimised code in that timeframe 
(Besides, my submitted .py file runs on their servers, so the 
environment is limited.)


So what am I missing, from a performance perspective? Are there other 
data structures in stdlib which are also O(1) but with a better constant?


Ah. In writing this out, I have begun to suspect that my slicing of 
'tokens' to produce 'args' in the dispatch is needlessly wasting time. 
Not much, but some.


Thoughts welcome,

 Jonathan

--
Jonathan hartleytart...@tartley.com http://tartley.com
Made out of meat.   +1 507-513-1101twitter/skype: tartley



Any objections to me putting this thread up on the main Python mailing 
list and reddit as it seems rather interesting?


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] A stack with better performance than using a list

2017-06-13 Thread Mark Lawrence via python-uk

On 13/06/2017 16:29, Jonathan Hartley wrote:


On 06/13/2017 09:04 AM, Mark Lawrence via python-uk wrote:

On 07/06/2017 18:50, Jonathan Hartley wrote:
I recently submitted a solution to a coding challenge, in an 
employment context. One of the questions was to model a simple stack. 
I wrote a solution which appended and popped from the end of a list. 
This worked, but failed with timeouts on their last few automated 
tests with large (hidden) data sets.


 From memory, I think I had something pretty standard:

class Stack:

def __init__(self):
 self.storage = []

def push(arg):
 self.storage.append(arg)

def pop():
return self.storage.pop() if self.storage else None

def add_to_first_n(n, amount):
for n in range(n):
 self.storage[n] += amount

def dispatch(self, line)
 tokens = line.split()
 method = getattr(self, tokens[0])
 args = tokens[1:]
 method(*args)

def main(lines):
 stack = Stack()
for line in lines:
 stack.dispatch(line)


(will that formatting survive? Apologies if not)

Subsequent experiments have confirmed that appending to and popping 
from the end of lists are O(1), amortized.


So why is my solution too slow?

This question was against the clock, 4th question of 4 in an hour. So 
I wasn't expecting to produce Cython or C optimised code in that 
timeframe (Besides, my submitted .py file runs on their servers, so 
the environment is limited.)


So what am I missing, from a performance perspective? Are there other 
data structures in stdlib which are also O(1) but with a better 
constant?


Ah. In writing this out, I have begun to suspect that my slicing of 
'tokens' to produce 'args' in the dispatch is needlessly wasting 
time. Not much, but some.


Thoughts welcome,

 Jonathan

--
Jonathan hartleytart...@tartley.com http://tartley.com
Made out of meat.   +1 507-513-1101twitter/skype: tartley



Any objections to me putting this thread up on the main Python mailing 
list and reddit as it seems rather interesting?




I'd rather not if I get any say in that, because I agreed in the T&C of 
the coding challenge that I wouldn't discuss the problem or solutions 
with others, and I don't want to annoy them right now. How about in a 
month? :-)



Fine by me, on my calendar for 13th July :-)

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] London Dojo next Thursday

2017-10-01 Thread Mark Lawrence via python-uk

On 01/10/2017 23:24, Tom Viner wrote:

Darn, I hadn't seen the possible tube strike.

Let's keep an eye on the situation. I'll update this list and email 
direct to ticket holders if we have to postpone.




Any excuse, what's wrong with the bicycle :)

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

---
This email has been checked for viruses by AVG.
http://www.avg.com


___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk