LAI ALLEN
0 followers · 271 views
on the atlas — 4
- ProfetAI AutoML Platform1 savers
- class - Why do Python classes inherit object? - Stack Overflow1 savers
- Pointers & errors - Learn Go with tests1 savers
- mysql - Golang using lowercase for first letter in Struct property - Stack Overflow1 savers
highlights — 5
In Python 2: always inherit from object explicitly. Get the perks. In Python 3: inherit from object if you are writing code that tries to be Python agnostic, that is, it needs to work both in Python 2 and in Python 3. Otherwise don't, it really makes no difference since Python inserts it for you behind the scenes.
class - Why do Python classes inherit object? - Stack OverflowIn Go, when you call a function or a method the arguments are copied.
Pointers & errors - Learn Go with testsIn Go if a symbol (variables, types, functions et al) starts with a lowercase symbol then it is private outside the package it's defined in.
Pointers & errors - Learn Go with testsRemember to only do enough to make the tests run. We need to make sure our test fails correctly with a clear error message.
Pointers & errors - Learn Go with testsIn Go, an identifier that starts with a capital letter is exported from the package, and can be accessed by anyone outside the package that declares it it. If an identifier starts with a lower case letter, it can only be accessed from within the package.
mysql - Golang using lowercase for first letter in Struct property - Stack Overflow