This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Principles for building a great engineering team culture by Adelein Ro | |
======================================================================= | |
0) The first line of code you should write for any feature is "What are we building, why are we building it, and why now?", | |
Eg start with a Tech design or a Spike | |
1) Dig deep and wide into the functional and non functional requirements of what you are building, disambiguate with product | |
or stakeholders, spell out what they have not been able to. Spill out details as part of tech design, get agreement | |
from product and stakeholders. | |
2) Engineers need to be able to find indirect or direct mentors, people they can learn best tech and | |
people practices from on a day to day basis. | |
3) Need challenging work that is transferable outside the company. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Working backwards | |
================= | |
Used Amazon among others, before creating a new feature or product create a press release for it. Iterate until it is well "Adopted" by the internal team. | |
Heading: Name the product in a way the reader (i.e., your target customers) will understand. | |
Subheading: Describe who the market for the product is and what benefit they get. One sentence only underneath the title. | |
Summary: Give a summary of the product and the benefit. Assume the reader will not read anything else so make this paragraph good. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Flow 1 - Get ready to work on a repo | |
- Clone the repo you want to work on, you can get the repo name from the "Clone or download" green button in github | |
git clone git@github.com:globality-corp/euclides.git | |
- Checkout a shared branch from the repo, in this case "develop" is the branch. You can get the branch name from "branch" dropdown menu in github | |
git checkout develop | |
- Create a private branch to work on. You will merge this branch to develop when you are done with your work and it is reviewed. | |
git checkout -b feauture/your-branch-name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Select enterie cols to edit | |
=========================== | |
Press Ctrl+Shift+A (Find Action feature) and type column. The first result is Column Selection Mode Alt+Shift+Insert | |
Search and Replace All | |
======================= | |
Command + R | |
Search | |
====== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Try that autocloses of resources | |
================================= | |
try ( | |
InputStream in = new FileInputStream(src); | |
OutputStream out = new FileOutputStream(dest)) | |
{ | |
// code | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using Git | |
=============== | |
Global Settings | |
----------- | |
Setup autocomplete tools: brew install git bash-completion | |
Then add this to ~/.bash_profile : | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SORTING | |
======= | |
Returns a sorted list => sorted(l) | |
Sort in place ==> l.sort([2,3,7]) | |
# Reverse sorting by y in an (x,y) tuple list in | |
sorted([(1,2),(2,3)], key=lambda tup: tup[0],reverse=True)) | |
sample = [('Jack', 76), ('Beneth', 78), ('Cirus', 77), ('Faiz', 79)] | |
sample.sort(key=lambda a: a[1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BINDING | |
======= | |
1) Avoiding nesting function by using scope support | |
You are passing 'this' so that the funcion has | |
access to this function's context | |
app.mavenRecipeCollection.getMavenRecipeByMeal(e.slug, e.mealChoice, | |
this.onSuccess_, this); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Center an image in a div | |
======================== | |
.person .person-avatar-medium { | |
width: 80px; | |
height: 80px; | |
overflow: hidden; | |
background-color: #f2f2f0; | |
-webkit-border-radius: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.pyc |
NewerOlder