pattr-talk-101



pattr-talk-101

0 0


pattr-talk-101

Pattr 101 - Diving into the development and features of Pattr

On Github justinpotts / pattr-talk-101

Truly private instant messaging.

Follow along

http://bit.ly/pattr-talk-101

Who are we?

Co-founders Alex Meza (CEO) and Justin Potts (CTO)

Our mission

Pattr believes in fostering an open web, with maximum security and privacy for its users. We do this by providing a secure experience on the web for users to communicate quickly, privately, and securely.

What's our tech stack?

Features

Custom chat rooms

Custom nicknames

Whispering

Dedicated help and about modules

Demo

Coming soon

Encryption

Password protection

Special characters

Mentions

Inline image and GIF support

It's code time!

Hashmaps

session['uid'] = generate_id()
session['nick'] = generate_nick()
session['room'] = roomcode

Lists

connected_users = {}
connected_users[session['room']] = {session['uid']: session['nick']}

Exceptions

try:
	connected_users[session['room']][session['uid']] = session['nick']
except KeyError:
	connected_users[session['room']] = {session['uid']: session['nick']}

Searching

for item in connected_users[session['room']]:
	if connected_users[session['room']][item] == data[1]:
		target_uid = item

View source

Automated Tests

Wait, what?

Automated Tests

Continous Integration with Travis

Checks for site usability

Review PRs quicker and easier

To recap...

THE END

- Visit Pattr - View Pattr source code or contribute

Truly private instant messaging.