I'm compiling a collection of software engineering principles. The idea is to have them in a document with longer explanations and examples. Other than that, they're meant to be cited as justifications for this or that choice we make and left as comments in code or in conversations. Some are special cases or consequences of more generic principles. Here's what I have so far:
- simplicity
- least surprise
- separation of concerns
- design for the worst-case scenario
- explain the intentions behind any piece of code
- minimize future maintenance efforts
- minimize time to fix future problems
- no code duplication
- fail early
Note that this list is limited to "technical" principles in the sense that they're valid even for a team of one. There are more principles and guidelines for the interactions between team members but here I'm limiting myself to what could be or should be written down as part of a code base.
My best life advice:... Figure out that thing that scares you to death, and dont just face it, conquer it, destroy it. Then when you finish, find the next greatest thing you fear.
Its remarkably freeing to have things that used to be fears for me being source of joy (SCUBA, heights, and at a young age, talking to women and even just people would all fit the bill).
Massive Review of Ultra-Processed Foods Confirms Just How Harmful They Are https://www.sciencealert.com/massive-review-of-ultra-processed-foods-confirms-just-how-harmful-they-are #science
How do you say “Fuck off and die!” in language that a company like HP will understand?
@freemo
I like the one in the 4th quadrant (circle with white bg).
Law Case: Creative Commons (CC) licensing... contested in court...
Law Case: Creative Commons (CC) licensing... contested in court...
"In February 2006, Adam Curry sued the Dutch tabloid Weekend for reprinting photos from his Flickr page and publishing details about his daughter.[25] The photos were released under a version of the Creative Commons license that forbids commercial use and requires acknowledgement, but the tabloid printed a few of them without contacting Curry.[26] The verdict did not award Curry any damages, but forbade the tabloid from reprinting the photos in the future, setting a fine of €1,000 for each subsequent violation. It was one of the first times the license was tested in court.[26]
In May 2009, Curry posted on his blog that another Dutch tabloid had published another Creative Commons-licensed photo from Curry's Flickr account.[27] After Curry asserted Creative Commons license requirements, the publisher settled on Curry's terms."
#Microsoft blocks EdgeDeflector, a tool that stops Windows users being forced to use Edge browser
https://reclaimthenet.org/microsoft-blocks-edgedeflector/
Trying to please everyone and being nice to everyone, I find, is the easiest way to guarantee you are surrounded by the worst sort of people imaginable. I mean sure, they will like, or at least tolerate, you. But you will have to deal with their constant drama and demands.
Now not giving a fuck and telling people they have dumbass ideas and flipping them off when they start drama, thats a sure way to guarantee you're surrounded by cool people who wont fly off the handle at every bit of nonsense.
Start living a life worth living, embrace your inner asshole.
Just when I was getting depressed about my job hunting, #redhat steps up and gets back to me about my application. I am now officially having a good day even if I don't get the job! It feels nice having someone acknowledge you.
Amazing how easy was to write an android app for sending files to #0x0 and then retrieving the link.
The answer is: you don't do it. You just use the excellent #httpshortcuts (from fdroid) with the URL (http://0x0.st), the method (POST) and the expected form data (parameter "file", the contents of the upload).
This creates a shortcut that you can select in the share menu of any app, and then you can share back the result URL to any other app.
Furthermore, you can use #javascript for customize further some parts of the process.
I want to see a programming language where keywords are meow
, nya
, suya
, nini
, *hugs*
. It would look something like that
nya val = 5 //creates value
meow fibo(val) { //creates function
if val <= 1 {
nini 1 // returns value
}
nya prev = val - 1
nya prev2 = val - 2
nini fibo(*hugs* prev) + fibo(*hugs* prev2)
}
nya result = fibo(*hugs* val) //pass by reference
umu result //prints
suya 10 //sleeps 10s
I've put this on #reddit and it goes viral with 25k likes. #mastodon thank me later, my inbox has 500 questions about #fediverse and co.
Some help would be nice.
https://redd.it/qsbg5w
loves trying linux distros and everything open source.