Details
-
SkillsJava 8, Java EE7
-
LocationGermany
-
Github
Joined devRant on 8/28/2016
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
@Arfmann almost all else statements are not necessary. If they are, refactor into small methods and use return.
-
I need to implement this using lambdas.
new BooleanComparator()
.compare(() -> b1, () -> b2)
.wantedCondition(Boolean.True)
.handle((TrueResult, falseResult) -> doSth()); -
@pokerface no they don't! 😥
-
@stackedactors1 why not? I do that often. also think of root.
-
@RAZERZ
He selected finger.id -
Don't you start counting at 0?
-
@SecFreak yes they are.
But not nested and spanning 80 lines each -
Maybe other people get an exception. Make sure your friend list implementation is not immutable and there are interfaces.
-
Yeah, a lot of bad java code out there. I know lots of places where servers are restarted because of this.
Not that my company had such an issue. *Laugh*... -
In Corporate environments, whole businesses are driven by Excel.
Also, many non tech staff members demand a csv export, because Excel can do that.
Even worse, in Germany the csv format differs (separator is ; and no quotes).
So it's no wonder they wrote this. It captures the attention of management. -
@TRex probably.
Sometimes it's just hard to understand the legacy code. And by the time you have rewritten posts to überstanden things, you can just continue on that code -
@mousta3milism nothing of my company is public so far. But... Final class, private constructor, and a getInstance-method. A lot of side effects because clssses need to call an initialized () method.
Such things. Hard to mock, and I don't bother with powermock. Especially when you want to call a real method from the mock.
It's sometimes easier to just extract abstract factories and rewrite and restructure large parts, after you understood how and why they do something.
But often enough, you wonder why they did this in the first place.
Long story short... I'm now quite skilled at refactoring (i think) and I'm not afraid to rewrite large parts of code. We have lots of tests to do for each release anyway, which helps a lot. -
@ganjaman @jibberdev919
The only thing I do is to say to my trainee: "oh man, look at this code! It's so dumb because of [mutable list, wrongly implemented hashCode(), ... ] etc etc..."
It's already a relief to talk to someone about bad code. And yes, my trainee is already better than that other colleague. That other colleague is an external supplier btw... -
@Hallelouia But I ate brain before mad cow desease was a thing.
It's called Bregenwurst in German and was quite common in small towns. But since then it's just a normal sausage. -
@baeovvulf veal and pork originates from French. Maybe we should lend the new word from French as well?
-
@wholl0p yes it's from DHDL, but it was no deal. They already have investors and some big burger chain is going to sell them soon, too.
-
@Scade
You can buy them at REWE.
Check the website of bug foundation of they have them.
Also available in Belgium and the Netherlands. -
@heyheni let's see forward to that.
30 years ago no one in Germany ate sushi (rice with raw fish).
And French ppl eat frogs.
And we eat sea crabs and stuff, the meat is very similar.
I'm curious what will happen. -
Yeah let me guess. He's just before retirement and also doesn't like issue tracking.
Sounds like my own colleague.
Show him branches. -
If you mean JVM languages vs .NET languages it really depends.
Java is still powering business, and support for application servers and the JVMs is excellent.
Kotlin is a cool new language which will spread eventually, bit unlike scala is kept somewhat simple and is fast.
.NET on the other hand is not used much on Linux, although C# has a nice syntax.
As a good java Dev or JVM engineer, you can earn a lot of money. -
@dschenk yeah, that's ugly, too. I'd cache that somewhere. Maybe even created by another process?
-
@dschenk our test environment does not have such large files and I cannot access it to create one. I set the log now to trace for jersey and httpclient, but it doesn't say which mode it uses. It's a bit frustrating.
-
@dfox will eventually see this, i hope
-
@Charmesal Android one has no other stock gallery besides Google photos. Not showing, checked that folder.
-
@davenall yeah checked that. No hidden files. No devrant folder.
Btw, other apps do work -
@DLMousey yeah, long-press an image and select save.
Then I see the progress spinning and after some time it says "saved successfully to Gallery".
Hm. To Gallery? Not to phone? 🤣 -
@davenall thanks.
Is there any log?
But why would I get a success message?
And the worst: why me! 😁😂
Btw, I'm using a bq Aquaris X2, which is on Android one 8.1.0.
Before I used a Samsung galaxy S5 with LineageOS 15.1 (8.1).
I also uninstalled and reinstalled the app, cleared all app data, deleted the folders.... -
@DLMousey searched everywhere using fx, quickpic, etc.
No luck. Also checked folders from above. -
@davenall checked all those including android data and media on both internal and external storage
-
@davenall does not exist. What now?
Created it manually. No change.
Btw after saving the app says "saved successfully".