The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
Java developers know this. They have to, because it works differently enough that you have to care. Also it means that something like an image is often presented as a 1D array (for example bitmap.getPixels dumps the pixels in an int that you supply) and you have to do the index conversion yourself.
Yup, and I dare say there are array and record class libraries that you can download and import, with built-in iterators for the java.util.Arrays functions, to save a bit of work if you have to do a bunch of them of different sizes and types.
If not, it'd be a nice hobby project for someone.
I wanna be a eunuchs developer! Pass me a bread knife!
Maybe because they knew of other languages than C/C++
On the serious side: Newly educated Masters of today know "nothing" about langugages that are not of "the C class". If you show them something like APL, they look upon it like something from a fantasy world, cannot fathom how you can solve a problem in such a language.
Or a little closer to the C class: If you show them that in Pascal, you need not enclose conditions in parentheses, you can test "if x > 5" like we would write it in ordinary prose text; they as surprised how you can know that it is a condition when it is not parenthesized. "The standard model" uses parentheses.
"The standard model" prescibes that array indexes run from zero, and are integers. You show them a Pascal array summerMonths: array[may..august], and they worry about element zero of the array, where is that in all of this.
"The standard model" says that characters and enums "really" are integers, noting else. So a language that doesn't let you divide 'B' by 2 to get an exclamation mark, or multiply february with 3 to get april, breaks with the standard model.
Show them CHILL where you need not pre-announce that there is an exception handler. But "the standard model" requires a "try" and enclosing the block in braces! How can you know the scope of the exception handler? The 'block' to which it is attached? But isn't that what the braces do, delimit the block, so how can you avoid the braces?
After working for a while with CHILL, I never understood this "try" fixation - it is just a wart caused by exception handling being a cludge added to C long after its "design".
In CHILL, any block (and contrary to C: A simple statement is a block) can have an exception handler; just add it before the terminating semicolon, whether the block is a simple assignment, a loop, a function body, or even an entire module. To satisfy "C language class" oriented guys, you could say that an ON clause at the end of the block "implies a try at the start of the block" - but there is never any need for an explicit "try" (so it doesn't exist in the language).
Furthermore, to reduce the red tape of exception handling, "ON" is like a C "switch": The exception codes are like labels, followed by a block for handling that exception (but as a simple statement is also a block, there is no red tape for simple, one-statement handing), with an ELSE option.
So to me, C style exception handling is kludgy and inflexible.
When you come home from work, or when your significant other comes home, how good are you, are they, at leaving all the work trials and tribulations at the doorstep and simply "being present" with your SO? I realize that "being present" means occasionally hearing about work, but how consuming is it? Do you agree on, say, 15 minutes of venting time? Or does work issues consume the entire evening, or not at all?
I might check my work email or otherwise login to my work computer from home outside of working hours once a month. Most of that has to do with deployments; I'm doing educational software and we can't deploy until kids are done on the system for the day. That's generally between 4:30 and 5 my time (stupid timezones to my west ); but occasionally is later and logging in around 7 or 10 for 5 minutes to kick off a deploy and make sure it goes as planned is less annoying than staying late on days I got in around 8 instead of 8:20.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
It's an unequal balance but I'm usually okay with it. My beloved is an elementary school teacher so I need to listen to her frustrations with people and policies (Sometimes makes me want to take a bat and "explain" things to those who are causing her stress) and her own imposter syndrome worries.
She doesn't understand nor cares about what I do so technical challenges are met with an "I don't care" but if there are interpersonal problems she does listen.
I've come to accept it after over 30 years of marriage.
Nowadays I'm pretty good with that - we do talk about things at work occasionally, but the pressure of the work does not came home with me (or her)...
It took some years to learn that however, but I was lucky and finished 'school' before wedding...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
I'm either working, or I'm not, so If I'm not meant to be working, it just stops.
Nice! I tend to be that way -- pretty much no matter how work goes, it doesn't require venting when I get home. Though if something cool happens I do like to share the positive things. I guess I just want home to be a positive experience, the negative crap can be left outside in the cold.
Email client and Teams are running 24/7 (well, ok, I make a point of shutting down the Teams client on weekends), but the email client is only running on a VM that can't bother me if I'm not logged into it. My work mailbox is not monitored from anywhere else so I don't get popups from anywhere but on that one machine. I make sure to disconnect from all my work-related VMs every evening so I don't get any work-related distraction from any source. No visual cue, no sound, nothing - that goes a long way to keep everything separate.
Nobody of my family either understands what I do for a living nor care to hear about it. So I don't bring it up.
My wife is in charge of 9 restaurants with the furthest one being around 200 miles from home. It's a highly stressful (but well paid) job which requires her to be away from home an average of 3.5 days/week so we spend quite a bit of time on the phone. Of that time, at last half is spent with her venting about work or traveling. I rarely complain about work mostly due to the fact that she wouldn't understand.
I've come to understand that commiseration comes with the territory, though her entire family is really over the top with it...and lucky for me, cell phones mean that they (mostly her narcistic brother) can all have me on speed dial for when something goes wrong or in most cases, because they're bored.
I probably average about 2 hours a day on the cell phone with the wife and/or brother-in-law, mostly in a listening mode. The worst are the afternoon calls. They derail me to the point that it's often hard to get back into finishing what I was working on prior to the interruption. I've quite often started the afternoon with the intention of working late only to spend an hour and a half on the phone in a therapy session.