This Overly Long Variable Name Could Have Been a Comment | Jonathan's Blog
Spider @ spidertrolled @lemmy.blahaj.zone Posts 0Comments 22Joined 2 yr. ago

If this is about a personal relationship, all you should focus on is minimizing harm. Assume that any fear on one party is valid, and help to keep them separate from a potential attacker. Don't invalidate the feelings of either party - we may not always get to learn the truth, but many times we have to mitigate with incomplete information, but also that it is not your responsibility to fix alone. Remember that your strength is for protection, not destruction. Everyone sees things differently, including you, so there might be red flags that one party sees clearly that you missed - assume their judgment is right. If you are super positive, double checked, super sure that there is no risk of harm, then you dont need to directly intervene, but you can still emotionally support both sides without invalidating the other one, and it's their loss if this is only about turning you into the rope in a tug of war for attention. Make some different friends if this is only about manipulating you.
If this, however, is about politics, then you must remember that the only true natural law is that the biggest army wins, therefore, there is no such thing as neutrality. You cannot stand for all sides, nor should you stand for nothing and you should move to protect your family, friends and community from acts of hatred. Use your strength for protection, never against the weak and powerless, lest your own alliances and friendships be short lived; History shows repeatedly that movements formed from hatred are weak, short sighted, make poor allegiences, never learn from history, and are self destructive. Distrust any source of information that makes you feel scared and angry - especially if they use stereotypes to do so - since these are wedges to separate you from your community and to keep you addicted to propaganda. Keep your sources of information as varied as a healthy diet would be. And never ever, no matter how bad things seem to get, lose your faith in humanity. In the art of trying to be well informed, you will stare into the abyss. And the 1/3 of the human population made of evil hearts will dominate this information. You wont hear any of the other 2/3. Especially that last third made of good hearts. Hold onto this hope, and you will know any voice against the whole of society is wrong.
Sad to hear about ID. They're often the only Nestle competetor in the cream section. Black coffee it is then.
Responding as a java/kotlin maintainer of one single large system with frequent requirement changes. what i call "high entropy" programs. Other developers have different priorities and may answer differently based on what kind of system they work in, and their answers are also valid, but you do need to care about what kind of systems they work on when you decide whether or not to follow their advice.
In my experience, if the builder of the original system didn't care about maintainability, then it's probably faster to rewrite it.
Of course, then you'd have to be able to tell what maintainable code looks like, which is the tricky part, but includes things like,
- Interfaces
- Dependency injection
- Avoidance of static or const functions
- Avoidance of "indirect recursion" or what I call spaghetti jank that makes class internals really hard to understand.
- Class names indicate design patterns being used. Such as "Facade". This indicates that the original builder was doing some top-down software design in an effort to write maintainable code.
- Data has one, and only one, source of truth. A lot of refactoring pain comes from trying to align multiple sources of truth, since disgreements cause mayhem to the program state.
Bad signs:
- Oops, all concrete classes.
- Inheritance. You get one Base Class, and only one, before you should give the code the death glare. Its extremely difficult for a programmer to be able to tell a true "is a" relationship from a false one. For starters you have to have rock solid class definitions to start with. If the presence of Inheritance smells like the original builder was only using it to save time building the feature, burn it with fire! Its anti-maintainable.
- Too much organizing - you have to open 20 files to find out what one algorithm does. That's a sign that the original builder didn't know the difference between organizing for organizing sake and keeping code together that changes together.
- Too little organizing - the original builder shoved eveything into one God class so they could use a bunch of global variables. You'd probably have a hard time replacing a component so big. Also, it probably won't let you replace parts of itself - this style forces you to burn down the whole thing to make a change.
- Multiple sources of truth for data: classes that keep their own copies of data as member variables are a prime example of this kind of mistake.
Most software in general has hard to detect issues after several weeks of uptime. Its something that's fundamentally hard to test and fix. Its a big reason why "did you turn it off and on again" is such universal advice.
The three-page, handwritten document found on him suggested a motive, according to investigators. The pages expressed "ill will" towards corporate America, they said.
Why does he have a random handwritten note "found" on him? What was he planning on doing with it?
Android app dev here, i cant tell you what governments are capable of, but i can describe for you some of the complicating factors preventing them from doing this.
For one, to prevent impersonation, apps are cryptographically signed by the developer using a private key they never share with anyone (like a password), and the public key is sent to Google Play and the App Store so that they can verify the identity of the uploader. This prevents app store listings from being hijacked by rivals, competetors, hackers, pirates, foreign governments, and yes, their own government. So, any goverment cant just walk up and push a rogue update to the store.
For two, deploying app updates isn't my job, it's Google's and Apple's. In my opinion if the government wanted to hijack the supply chain, going directly to Apple or Google would be the way to do it. The narrowest group of people I can push updates to are the people who opted into alpha or beta versions. To target an individual, youd have to do it through Google or Apple.
For three,, my boss barely gives me enough time and resources to meet the company's own goals, let alone letting me clean up tech debt. The idea of a government that twists my boss's arm to force me to work for the government instead of the shareholders is kinda funny and nonsensical. I live in the USA, where shareholders are king. I bet that even if we went full toltalitarian this would never happen because of rich people backlash. So i dont think the hacking coming from inside a company would happen. Then again, i perhaps dont work for a juicy enough place to see how a government could solve this problem, *or maybe they would be stupid enough to incur the political expense anyway.
And last, money money money. Programmers are not cheap. Designing and dedicating and selecting targets for an attack isnt cheap. Hacking into a company to steal their private key isnt cheap, and could also be expensive in a political sense if the wrong people get pissed off aboit it.. If paranoia is what drives your question, then ask yourself, are you a high profile politician? A billionaire? A high profile leader of a movement like Martin Luther King Jr? Someone actually worth spending several millions of dollars on to spy on? If you're a simple petty theif or protestor than i wouldn't bother worrying about this.
*If you're worred about your personal data getting taken and spied on., your bigger worry is the browser you use and what data gets stored on servers for services you use. Those are waaaaaaaay less expensive to get into.
Tl;dr
So basically, id only worry about relying on apps owned by the government. Or the services you use that take your data to sell it to advertisers, because theyll give it to the government directly as well.
For a computer, I recently learned there are mod kits for the game boy, so i installed a backlit screen on mine. I use rechargeable batteries with it.
Yeah im sure they could just use their spare 2 million dollars they had sitting around after the Camp fire to buy a home in a safer area in northern California. Easy peasy.
Cushioned, motorized reclining seats with footrests. Thick armrests so that you have a little personal space from your neighbors. And, they still got the drink holders. Quite different than the cheaper plastic seats from two decades ago.
Ah, so that's what the pro gamers are doing.
It's one of those pads you put on top to keep dirt from getting in between the keys
Self-reporting survey of subjective symptoms is the lowest possible standard to have. This is some wakefield-tier garbage. Thanks, now I'll know to avoid the LA Times.
How on earth did you grow up believing that people that look similar at all think similar? Did you grow up in a safety bubble? A padded room? Have you ever been outside once in your entire life? Did you climb out of a time machine from the 1600s? Lmfao.
edit: poster edited comment to sound sarcastic.
Apple and Google's 30% not only hits the base price, but every single transaction that happens inside apps as well. Imagine a toll bridge in front of your nearest supermarket where the people working the toll booth inspect every bag of grocery you bought and then charged you toll based on what you bought there.
Apps arent entirely like video games. If you wanted to open a non-subscription based music store or book store or whatever, you'd find it economically impossible to pay the publishers their cut, apple their cut, your server host their cut, and have anything left over for yourself without charging your customers their arms and legs. This is why all those kinds of apps are subscription based. You can cleverly batch and bundle stuff in a monthly subscription fee which gives you room to dance around google and apples high fees and have enough money to keep your lights on.
Stack Overflow isn't a tutor site. It's a wiki. Its usefulness would plummet if duplicate questions are allowed, since that would scatter all the answers.
I bet it's more to do with how little Americans own their own culture. Copyrights in the USA used to expire after 30 years, after which it became public domain. Or in other words, culture was returned to the people as a whole.
Nowdays the copyrights last beyond a lifetime, and Americans grow up in a world where they almost never experience relevant pop culture outside of being owned or controlled by someone. When you find American content, you don't think of "American culture" you think of "This is owned by Disney" or "This is owned by Paramount" and so on and so forth. You have original authors and content creators, being the gods of the world they created, and everyone else are "fan artists" or "fanfic writers," being implied to be lesser. Those fan artists will be fan artists their entire lives, and their works will never be 'canon' in the eyes of the Owners. If you like Harry Potter but not Rowling, too bad. The public cant reclaim it.
That's not how culture works though. Culture remixes, reinspires, deconstructs, rebuilds, and memes on. That's how everyone did stuff before the advent of recorded media. The good stuff is repeated and boosted. In a way, the Internet culture that emerged in the 90s sought out to rebuild what was lost after the 1890s.
Oh, I just got back from there.
For a vacation less than 90 days, you only need a passport from your home country, and proof of your return flight in less than 90 days. Drugs were covered in another comment, but dont bring veggies or meat products into Japan, even if its like a Slim Jim thing you got at the airport, they'll give you a hard time over it. The trip can be long, so its worth planning it out to give your future tired self less things to think about. Expect to be sleep deprived your first 2 days.
Travel agencies are good for booking hotels in advance, which i highly reccomend to do 1 month before. I stayed 2 weeks and that I think was a great amount of time. I booked the hotels and plane in advance, then had $2000 in savings to convert to cash yen for the actual trip. Use cash, Japan is very cash heavy. That was way more than enough spending money actually, i probably could have done it with half that amount. Fall time has great weather, and I avoided the more expensive spring season / cherry blossom bloom. That sounds nice, but tickets are more expensive that time of year.
Travelling in Japan, there's the fast way and there's the cheap way. For trains, they have the shinkansen and the regular regional trains, and for roads theres the side streets and the expressway. Beware expressway tolls. Getting out of Osaka wasnt too bad but getting back in beaned my wallet for ~$90 USD. Theres toll gates less than 5 minutes apart there. If you have 4 or more people in a car the expressway might be cheaper than the shinkansen, which you need individual tickets for each person. Using the expressway isn't required, you can take side streets the whole way.
I had local friends who knew the language and could drive. They made my trip amazing. I tried to study some japanese language but when it really came time to interact with people i could not cut it. I really needed my friends to do anything more than sightsee and shop outside of tourist traps. My appearance and dress alone indicated me as an Obvious Foreigner and so people were quick to help and give me menus to point at. Even if your speaking skills were terrible, manners make up for it. Learn the local customs and formal etiquette, and people should forgive awful broken sentences and be patient with you. If you remember only one phrase: sumimasen. It's excuse me / sorry / can i have your attention all rolled into one phrase.
Permanently Deleted
You asked
How should tags be integrated into Lemmy?
Which is a generic question that goes beyond the scope of one change, so I assume you also wanted to shore up probable future changes, all of which built on top of the first change. Forseeing problems in advance can prevent problems from propagating down the chain like this, so my contribution here is to reiterate the mistakes Ive seen other failed social networks make. That is, if spam bots have a way to output sludge faster than genuine content can be created, people will leave. I dont know lemmys specifics and its not my job to learn that, and this is not a code review. I do expect defederation to add some unknown complexity, so literally all i am asking is to just have a strategy for the final implementation and not handwave stuff as someone elses problem or take moderators for granted like reddit did.
Permanently Deleted
I'm less concerned about the client side ui layout, so much as for enabling spamvertisements. So for example if a feature is added to be able to search by tag someday, then theres a potential for people to try and abuse that by labeling irrevelant things under tags in order to get attention.
I've experimented with other platforms before, and whenever a search feature gets added in any system that supports multiple tags, you start seeing posts with literally two dozen or more trending tags, and its irrevelant spam. I think the big proprietary platforms like tumblr have tools to moderate these, but I am aware that a community-led version of fighting spam has different needs and tools
Theres likely a way to incorporate downvotes into the server search algo, so it isnt surfacing junk for example. All of that is just one idea of a complete plan for helping the community to moderate spam. I'm not proposing any complete strategy here.
All I'm trying to get across: don't forget to anticipate spam, and give the platform and users tools to defeat it.
You can write comments, but you can't make your colleagues read them. They don't necessarily have to visit the originating file to read the docs.
Short variable names tend to lead different people to make different kinds of assumptions about the purpose and use of the variable. Those differences in understanding is where a lot of subtle bugs come from, or causes people to hit a dead end.
Just be clear and explicit. Its not gaming; you dont have to care about losing a couple extra frames to type out a few extra characters. Most IDEs have sufficient autocompletes so it's literally not even a problem in many cases.