|
From what I remember of it, it's a pretty hard science (read: slow and no 'splosions) book. Also, the plot revolves around the main character trying to solve a computer puzzle (it's been a while). So a lot of internal dialog. I suppose they could add a bit of action or other conflict, but it would definitely be a different story.
True on LotR. The earlier attempts were no where near Jackson's (who also added a lot more action - and fewer songs - than in the books)
TTFN - Kent
|
|
|
|
|
Does Routine give rise to Habits, or do Habits give rise to Routine?
How does either one affect the work that you do?
Is there a difference between the two?
|
|
|
|
|
A habit is that I wash a glass before filling it. It's a habit to delete every part of crap on a new PC. I check my posts for spelling errors as both a habit and a routine
A routine is writing exception catchers. It's a routine to use an explicit type, not var. It's a routine to use the interface and not the type directly.
Yes, there's a difference. A habit is something you do without thinking, meaning everything your mom told you to do before you leave the house; are your hairs presentable? Do you have a clean handkerchief? No spots on your jeans?
A routine is something you're used to doing that you can do it, without thinking. Think a bricklayer; would you even dare ask him if it is routine or habit. Go ask you're miss if she is routine, or habit?
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: Go ask you're miss if she is routine, or habit?
She's a routine habit.
PartsBin an Electronics Part Organizer - A updated version available!
JaxCoder.com
|
|
|
|
|
It's not a habit, it's cool, I feel alive.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
|
Nun ya business
PartsBin an Electronics Part Organizer - A updated version available!
JaxCoder.com
|
|
|
|
|
Good programming practices are called as programming habits.
The only programming routines I've heard of are FORTRAN routines (subroutines) and those in VB
|
|
|
|
|
Putting on my socks and shoes is a routine. Putting the left sock on before the right sock, the left shoe before the right shoe, is a habit.
|
|
|
|
|
My routines often involve my habits good and bad.
For instance, my routine of taking a break after every phone call, code victory, code stump, or just anxiety involves getting up and walking. Unfortunately, it's usually walking to the workshop/smoking den where I indulge my habit.
Edward Aymami wrote: How does either one affect the work that you do?
Given that this routine uses timers, I can estimate that distractions cost an additional 15 minutes each of productivity, or around 2 hours per day on average!
"Go forth into the source" - Neal Morse
"Hope is contagious"
|
|
|
|
|
Habits are optional and perhaps enjoyable; routines are chores.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
I'm in the habit of never doing the same twice: when I hear the word "routine," I call an exorcist.
Β«The mind is not a vessel to be filled but a fire to be kindledΒ» Plutarch
|
|
|
|
|
Both. The best way for me is when habits - which are usually based on some reasoning behind - become routine as it lower the probability of mistakes (think of driving safety, trigger discipline, electric safety, fire hazards).
Routine becomes habit just because our brain will naturally follow the order of operations and muscle memory is a pretty big thing.
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
I'd put it
Habit: action most always done after something else, regardless if needs doing or not
going out of house, keys wallet and phone, even if knowingly wont need wallet, just habit to take
routine: something you do regardless of anything before or after.
wallet in back left pocket, phone in front left, keys front right, regardless if have the others, they will be in these assigned places.
|
|
|
|
|
I look at it differently (typical of a Navy Nuc with ADHD - we ainβt quite right in the head π).
I find a rhythm that works, that gets me at my most productive in a way that helps me get the most satisfaction out of my work. That becomes the routine I strive for each day. It is a macro approach to what I do.
In the specific implementations of what I do, I find patterns that not only help me do my work better now, but over the long term. That is my micro approach to what I do, which are my habits.
For me, the two are rarely related directly. But they do provide me with better productivity, better quality, a better way to improve my SDLC, and get more enjoyment from my work.
When the unplanned for things of daily life occur, I adapt my routine (and occasionally my habits) and overcome whatever obstacles they provide.
|
|
|
|
|
Wordle 463 3/6
π©π©π¨β¬β¬
π©π©π©π©β¬
π©π©π©π©π©
|
|
|
|
|
Wordle 463 2/6
π©β¬π¨π©π©
π©π©π©π©π©
|
|
|
|
|
Wordle 463 5/6
β¬β¬π¨π¨β¬
β¬β¬π¨π¨β¬
π¨β¬π¨β¬β¬
π©β¬π¨π©β¬
π©π©π©π©π©
|
|
|
|
|
Wordle 463 3/6
π©β¬β¬β¬β¬
π©β¬β¬β¬π©
π©π©π©π©π©
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
β¬β¬π¨β¬β¬
π©β¬β¬β¬π©
π©π©π©π©π©
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming βWow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 463 3/6
β¬β¬π¨β¬β¬
π©β¬π¨π©β¬
π©π©π©π©π©
|
|
|
|
|
Wordle 463 3/6
β¬β¬β¬β¬π©
β¬π¨β¬π©π©
π©π©π©π©π©
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
I already don't like writing caches.
I especially don't like writing "generalized" containers without templates.
And yet here I am, needing a glyph cache to bring my font rendering from 6fps closer to 23fps (my target baseline)
And debating about whether it's worth it to generalize it in order to save flash space if someone else needs a similar facility in LVGL.
The hashtable part is relatively easy. The least recently accessed expiration mechanism is less so.
I just don't like writing caches. It combines everything I don't like about writing containers with even more complexity that's easy to get wrong. And it all has to perform or it defeats its own purpose. Meh.
To err is human. Fortune favors the monsters.
|
|
|
|
|
Then I can recommend this movie: CachΓ©.
modified 11-Nov-22 12:24pm.
|
|
|
|
|
A couple of simple least recently accessed mechanisms that I can think of are
- A global integer that increments on every access and is written against the item accessed. When space is needed, free the item(s) with the lowest access values. Low overhead for accesses but could be expensive when freeing space, especially if there are a fair number of items or space often needs to be freed. Also needs to handle the access counter wrapping around.
- A two-way queue. When an item is accessed, exqueue it and put it at the front of the queue. When space is needed, free the item(s) at the end of the queue. More expensive for accesses but faster at freeing space.
I've got a sense that I don't understand your constraints, because you've probably ruled these approaches out for some reason.
|
|
|
|