true, and i can’t think of a legitimate case where it would have tripped me up. but if someone, a novice perhaps, wrote
def some_func(foo, bar=[1, 2, 3]):
bar.reverse() # for whatever reason
print(bar)
some_func('hello') # output [3,2,1]
some_func('hello') # output [1,2,3]
i think they would be within their rights to be surprised that calling this function twice has different results. that’s what i was surprised by; it feels like bar would be re initialised each time with a scope of the function but apparenty not
Python item 1
Mutable default arguments don’t get re-initialized with each function call.
got an audible wtf from me… Been using python for years, totally unaware.
The “internal business tool” was a well known industry wide product that I had experience in. I should have known that changing an email address in any environment caused that new email address to be notified. It was my fault yes
My first week at a major fund company I was assigned to an internal business tool used by thousands. I noticed all the company email addresses in the sandbox weren’t correct, so I ran a script to correct them. Cue a call from C-level to my boss asking why he got a “email changed notification”. Followed by another… And another… And another…
I went out to lunch
It’s simpler code to re-download the file than retrieve what cached version may or may not exist in memory
This seems incredible
There would already have to be a data layer that serves the main web page renderer. That layer would already have to handle looking in the cache or making an http request in event of a cache miss. It would seem almost trivial for a UI operation like ‘save to disk’ to simply call that layer in the same way
For a few hundred K image file I can understand why some might not bother, but I’ve seen this behaviour where a browser already has an MP4 cached (such that it can replay any part of it without subsequent http traffic) and yet it still makes a new request when saving. It’s weird to be honest…
Have often wondered this myself, would love to know the answer
I simply thought that employees in the software industry were essentially at equal parity in terms of their departments
Oh boy that would be a nightmare.
Don’t get me wrong, I can easily imagine a working environment where everyone is a professional and everyone is making well reasoned responsible decisions with their hardware. Such workplaces exist.
But in reality there are any number of reasons why individual workers shouldn’t have unlimited access to their machines or others in the pipeline. I’ve worked mostly in corporate (financial) software environments, but many of these things apply to all workplaces though many places will be far more relaxed (or disorganised)
A few off the top of my head:
Data loss - irrespective of who anyone is, they shouldn’t be able to plug removable media into a machine and download the production database without being noticed. Likewise, for everyone’s safety, no-one should be able to plug a usb stick they found into a machine connected to the network. Exceptions can be sought, and granted, as part of an audited process. Anecdote: I worked one place where we were due to continue working over the weekend and a business analyst took client data home with them on an unencrypted usb stick.
Verified software - people shouldn’t be able to download and execute whatever they feel like as this offers a huge attack surface. Many companies maintain a list of verified software and install this centrally rather than allowing people (even developers) to download it and install it themselves. Again exceptions can be granted. Anecdote: one place I worked, an member of the infrastructure team had installed bitcoin miners on company servers.
Stability - developers generally do not have access to the production environment, running deployments is the responsibility of a dedicated team, this is because the temptation to meddle when in a pressured situation is too great. Anecdote - at one bank I worked at I made a mistake in a package of changes I’d prepared. The person running deployment came and told me and - because of a particularly time sensitive issue - we went and figured out the issue at the point of production deployment and fixed it manually. This worked but was exceptionally irresponsible. At a different place I worked, early in my career, I made a similar hacky fix and took down the public website of a major UK utility provider for several days
Quality - the software development process has many checks and balances between areas of expertise designed to bring out the best even if it’s more frustrating getting there. Want to change the indexes on the DB? Got to convince the DB admin that it’s the right thing to do, can’t just do it myself. Want to close that ticket that’s way overdue? Can’t unless QA / testing approved else I’m just marking my own work. Want to make changes in the integrated dev environment because that’s far easier that developing against the out of date mocks in my own sandbox? Nope. Want to expose a new endpoint for my services to talk to unilaterally? Nope, need architectural sign off, network security signoff, and the infrastructure team. Anecdote: All of these have been areas where I, a reasonably skilled developer, would have compromised in various points in my career when my back was against the wall and I was under pressure to deliver.
Some corporate environments can be suffocating, other software places can be so lax as to be alarming. In my experience there’s a sensible balance in the middle and the best places to work have been where management is sensitive and reactive to the needs of developers to get the job done in as reasonably a safe way as possible.
A lot of people misunderstanding you I think.
So you, a regular person, is only attracted to very attractive people, maybe a small number of which you’ve seen in real life and most through media. What to do?
Welcome to the 21st century unfortunately. Your brain was trained on potential mates who were likely accessible, near by, and likely within the realm of being a good pair with you. You were not designed to be exposed to the “best” humanity has to offer on a global scale of billions. You have been spoiled so to speak, your sensitivity is all out of whack.
Solutions? First, don’t lie in a relationship, especially if you already know you’d feel like a fraud. One option is to follow your conscience of not lying and so not entering into intimate relationships at all (because the other almost certainly needs you to appreciate them in that way). Another is to fast from media a while. All of it. You’re in an unnatural situation (biologically speaking) the solution is going to seem extreme but essentially reducing your horizon back to potential relationships of ‘ordinary’ people and nothing beyond. Therapy helps too. Might not work, but you could be surprised.
Are ‘average’ people attracted to their ‘average’ partner. Yes. Attraction works in very different ways in many people. They know celebrities are more ‘attractive’ but the reality and closeness of the person they’re with is what’s more important to them and makes that attraction more ‘real’. Did cavemen find cavewomen attractive? Yes. It was all they’d ever seen. Your brain is on the same hardware version.
It sucks really but, to take an analogy, you’re stuck with your regular food at home with Michelin star chefs serving up masterpieces on TV 24hrs a day. You feel dissatisfied with what your kitchen has to offer. But you can’t afford a fancy restaurant.
Well. Comparison is the thief of joy. Turn the TV off (so to speak). Experiment with some new ingredients to see if you can surprise yourself with what’s on hand.
You should probably also fast from porn for a while (if that’s your thing).
Sometime later, a bedroom, the Abyss sits on the edge of the bed, staring at the floor
THE ABYSS: It’s not you… it’s me… I just… I just don’t know about all this. It’s making me very confused…
Fuck the abyss
Nihilism: wait, no, what?
It’s not that complicated. Solomon was horny, someone a long time ago decided his hornyness should be canon, and now biblical literalists have to deal with it and don’t know how.
hans landa: that’s a bingo
also, not even necessarily horny, just far far less prudish, all the sensory stuff associated with sex was just far more normal
Your hair is like a flock of goats descending from the hills of Gilead.
Guess that was considered beautiful, millennia ago.
This is probably the imagery… (except dark mountain goats)
Your teeth are like a flock of sheep just shorn, coming up from the washing. Each has its twin; not one of them is alone.
Cares for personal hygiene, i guess?
More likely good health and youth to be honest, elsewhere he says her breath smells of apples (in a good way lol)…
Have you ever been stuck orbiting the earth with a ground crew watching your vitals?
I know I just thought it was funny
Just a small thing… I must have played Civ II for hundreds and hundreds of hours as a kid. Then one day a large civilization in civil disorder had its capital taken and one half of the empire seceded as a brand new civilization. I yelped… one of those joyful wtaf moments…
As the WORD of God he’s the source of Proverbs and Song of Solomon so…
Her: Dark am I, yet lovely, because I am darkened by the sun - Song of Solomon 1
so… tanned
works with eager hands… her arms are strong for her tasks - Proverbs 31
… toned forearms …
Her: Like an apple[c] tree among the trees of the forest is my beloved among the young men. I delight to sit in his shade, and his fruit is sweet to my taste - Song of Solomon 2
… not opposed to oblique references to pre-marital fellatio …
Her: strengthen me with raisins
… … … nutrition aware(?) …
Her: I am … a lily of the valley … My beloved … browses among the lilies
… not opposed to oblique references to pre-marital cunnilingus … (see also 4:16)
Him: Oh, how beautiful! Your eyes behind your veil are doves. Your hair is like a flock of goats descending from the hills of Gilead. 2 Your teeth are like a flock of sheep just shorn, coming up from the washing. Each has its twin; not one of them is alone. 3 Your lips are like a scarlet ribbon; your mouth is lovely - Song of Solomon 4
… mysterious eyes … flowing hair … no missing teeth (lol) … red lips …
Him: Your breasts are like two fawns
… young(?), pert, nimble breasts …
Him: You are a garden fountain, a well of flowing water
… looks at camera …
Her: Blow on my garden, that its fragrance may spread everywhere
… … my bro was definitely into some sensory stuff …
Her: My beloved thrust his hand through the latch-opening; my heart began to pound for him. I arose to open for my beloved, and my hands dripped with myrrh, my fingers with flowing myrrh, on the handles of the bolt. - Song of Solomon 5
(authors of erotic lit take note, this is your lord and god speaking)
Him: I went down to the grove of nut trees to look at the new growth in the valley, to see if the vines had budded or the pomegranates were in bloom. - Song of Solomon 6
… so … pubescent? hey, could be worse …
Him: Your graceful legs are like jewels - Song of Solomon 7
… legs guy! …
Him: Your breasts are like two fawns
… breasts again! …
Him: your breasts like clusters of fruit
… breasts mention number 3 …
Him: May your breasts be like clusters of grapes on the vine
… #4 …
breasts … like towers - Song of Solomon 8
… #5 …
I think you can draw your own conclusions.
Thank you for coming to my TED talk
He washed all the disciples feet ;)
Maybe it was like a Tarentino thing. You work with this guy for years and feet keep coming up so one day you ask him and he’s like “yeah ok, I’ve got a foot thing but it’s a personal thing” and you leave it at that but then you remember at the start of your career doing foot photos with him and you’re too embarrassed to ask but you always wonder…
Not money, power. There’ll always be affordable consumables: clothes, food etc. It’s just the quality will go down to accommodate how squeezed the consumer is. But the limited resources: a stay at that resort, a home with space and good schools, the seats at the sports game etc those the prices will continue to race away. Which is just a different view of power (choice/control) shifting into the hands of an increasingly small proportion of people. Those places will still be full - but the chance of getting to them for the average person will grow dimmer with every passing year.
How can someone not value the ingenuity and creativity behind a work of art?
Their point of view is that if people do actually value this then there will always be a market for it.
If they don’t, there won’t.
I suppose a long time ago the radio and gramophone looked like they’d been the end of live performing musicians but they still exist, everything’s just continually changing…
Not true, I bitch about them more than ever