Advice   92041

« earlier    

Repeat yourself, do more than one thing, and... — programming is terrible
Repeat yourself, do more than one thing, and rewrite everything
If you ask a programmer for advice—a terrible idea—they might tell you something like the following: Don’t repeat yourself. Programs should do one thing and one thing well. Never rewrite your code from scratch, ever!.

Following “Don’t Repeat Yourself” might lead you to a function with four boolean flags, and a matrix of behaviours to carefully navigate when changing the code. Splitting things up into simple units can lead to awkward composition and struggling to coordinate cross cutting changes. Avoiding rewrites means they’re often left so late that they have no chance of succeeding.

The advice isn’t inherently bad—although there is good intent, following it to the letter can create more problems than it promises to solve.

Sometimes the best way to follow an adage is to do the exact opposite: embrace feature switches and constantly rewrite your code, pull things together to make coordination between them easier to manage, and repeat yourself to avoid implementing everything in one function..

This advice is much harder to follow, unfortunately.
advice  prog  blog 
7 hours ago by kmt
Favorite Sayings
from John Ousterhout.

"The greatest performance improvement of all is when a system goes from not-working to working
Use your intuition to ask questions, not to answer them
The most important component of evolution is death
Facts precede concepts
If you don't know what the problem was, you haven't fixed it
If it hasn't been used, it doesn't work
The only thing worse than a problem that happens all the time is a problem that doesn't happen all the time
The three most powerful words for building credibility are "I don't know"
Coherent systems are inherently unstable"

programming  design  architecture  advice 
9 hours ago by pronoiac
Make Something Great: Become an Open Source Contributor · An A List Apart Article
You may think that open source is not for you. After all, it has always been a developer-dominant ecosystem. But code is by no means the only thing a piece of software is made of. Open source is first and foremost about community. Whether you’re a designer, developer, writer, doctor, or lawyer, there are many paths to the open source world.
Learn what you need to know to set out on your journey, from first steps to becoming a core contributor. It might change your career.
opensource  programming  career  advice  blog  article  august  2018  source:newsletter 
13 hours ago by rbf
The barbell investment strategy
Better than the Investopedia article. Read Taleb's work Incerto. Neither offer exact advice on what to invest in.

"Building a barbell portfolio, you slap on weights of extremely safe investments on one end and extremely risky ones on the other end. The safe investments carry with them virtually no risk of ruin. They are robust. Even in the face of Black Swans. The aggressive risk-seeking side of the portfolio opens it up to unlimited or sheer unlimited upside. Through this barbell approach, it is possible to build a portfolio that thrives under a variety of circumstances, including extreme ones."

"Middle of the road type investments offering medium risk and return should be religiously avoided according to Taleb. These types of investments typically rely on extrapolating current returns a number of years into the future. Generally, the investment case relies on predicting a certain growth rate or return. When something unexpected happens like an accounting scandal or a disaster, you take a huge loss on these types of investments.

Extremely risky assets are usually known to be extremely risky so they are priced by the market with the expectation of loss of principal as a real possibility. The problem with the middle of the road investments is they are sometimes priced as if loss of principal isn't really a possibility. When it does happen due to an unforeseen Black Swan type of event, results are disastrous. When the Black Swan doesn't strike, you aren't really compensated for the risk you were exposed to in the meantime."

"A common misunderstanding of Taleb's work is he's advocating 90% short-term treasuries on one side and OTM options on the other side and bet on freak outcomes. He literally says: acquire optionality without paying for it"

"Overstock is a prime example of a barbelled business": retail business that invests in crypto
investing  finance  advice 
16 hours ago by dandv
Favorite Sayings
A collection of adages and advice for building and solving problems with computer systems.
advice  programming 
17 hours ago by vortura

« earlier    

related tags

2018  academic  actions  addiction  adulthood  advertising  advice  agent  air-conditioner  airline  architecture  article  august  back  ben_casnocha  best-practices  bestpractises  bitcoin  blog  book  bracket  brian  business  calendar  career  change  checklists  clothes  co-founder  comedy  components  cooking  cool  craft  creativity  credentials  css  culture  curiosity  customer  cx  data-management  data-science  data  data8  datascience  decisions  design  dev  development  digital  disruption  dogs  ebook  education  engineering  entrepreneurship  essay  etiquette  exhibits  experience  features  finance  flakiness  flaky  food  framework  friendship  future  games  gaming  git  google  google_calendar  gratitude  guide  guidelines  habits  hardware  has  he  hiring  how_we_live  how_we_work  howto  iist  insights  inspiration  install  interview  investing  jean-yang  job  jobs  johncage  knows  learning  lessons_learned  life  linux  lists  login  lun  machine-learning  maintainable  management  masculinity  mathematics  maths  mel  mens  microsoft  mit  moderating  money  multipath  networking  nist  noise  opensource  options  ousterhout  pain  paper  papers  password  pedagogy  pizza  planning  podcast  poetry  powerpoint  presentation  press  process  procrastination  productivity  prog  progamming  programming  projectionmapping  projector  psychology  public-intellectuals  public-speaking  publicity  publishing  quotes  react  read-later  read  reddit  reddits  reid_hoffman  report  research  retirement  rhel  ruffian  security  self-deception  self-delusions  self-help  selfdiscipline  share  shopping  shortcuts  software  solis  source:newsletter  star  startup  success  systems  ta  talking  teachers  teaching  teams  thankful  the  thesis  thought_experiments  thoughts  time  tips-and-tricks  tips  tools  transformation  travel  trends  trolls.  tutorial  ux  video  visualisation  vox  vs  vue  wealth  web  webdev  weird  wisdom  woodworking  work  writing  wwn 

Copy this bookmark: