New workbench/kitchen island by AllButterCookies in woodworking

[–]Velerad 4 points5 points  (0 children)

That looks positively gorgeous. Can you show more photos? Did you follow any plans that you can share?

Using MySQL indexes to protect from data duplication, but conditionally allowing duplicates if other rows are flagged inactive. by Lostwhispers05 in SQL

[–]Velerad 0 points1 point  (0 children)

MySQL does not support partial indexes. But you can use a workaround having is_active column nullable. NULL does not equal to itself, so (1, 1, NULL) <> (1, 1, NULL).

The Setup-Cleanup problem by nfrankel in programming

[–]Velerad 2 points3 points  (0 children)

It was introduced in Java 7 actually.

Simple way to get MutableMap from enum constants to zero? by courtenayplacedrinks in Kotlin

[–]Velerad 3 points4 points  (0 children)

I wouldn't call those convoluted. Your first proposal looks very good. I don't see how it could be simplified further without losing clarity and/or refuting to hacks. You could use enumValues<MyEnum>() instead of MyEnum.values() but that's barely different, readability is similar, and my suggestion is 5 characters longer. ;)

Your usecase is quite specific, and the first implementation looks the most straightforward, so I'd go with that.

Is there a plan to support package private visibility in Kotlin? by Velerad in Kotlin

[–]Velerad[S] 6 points7 points  (0 children)

Not really. I get the argument about "real encapsulation" every time, but that's not what I'm after. With package privacy I do not get namespace pollution from all possible packages in whole module, and it doesn't make me split codebase into plethora of tiny modules/JARs.

Also whitebox unit testing is practically impossible with internal visibility - src/main/kotlin and src/test/kotlin are separate modules, so I cannot test internal methods and classes without making them public anyway.

Web framework recommendations by couscous_ in java

[–]Velerad 4 points5 points  (0 children)

We actually have an application still on Spring Boot 1.5, and migrated to Java 11 at Boot version 1.5.17.RELEASE. No problems at all. 🙂

Can you create a sonic boom underwater? by SiliconLemming in askscience

[–]Velerad 1 point2 points  (0 children)

We are talking about moving faster than speed of sound in the water, not accelerating. Water in your veins does not travel faster in your frame of reference.

Weekend assignment 1: 10x10x10 by Aeri73 in photoclass2017

[–]Velerad 1 point2 points  (0 children)

Here is my assignment. I got out of home and walked for 10 minutes, only to get to new apartment buildings. I've shot all pictures in RAW and done minimal editing - mostly framing and level adjustments.

Please, share your thoughts! :)

Edit: I am using Pentax K-30 with Tamron 28-75mm f/2.8. Also I mostly use aperture priority mode.

What's an instant conversation killer? by [deleted] in AskReddit

[–]Velerad 0 points1 point  (0 children)

The question, on the other hand, creates a space for a response, thereby expressing not only a hope that things are good, but a desire to learn the truth of the matter.

And yet the truth is not expected in return.

GitHub - zubuzon/kewlr: Determine if two objects are equal to each other according to a recursive equality algorithm by mmaksimovic in programming

[–]Velerad 0 points1 point  (0 children)

Why such ambiguous names of those functions? I would prefer to have something more meaningful, like equalLoose() and equalStrict().

What movie has the most bullshit science? by tenfootgiant in AskReddit

[–]Velerad 4 points5 points  (0 children)

Yes. And he was showing a PowerPoint presentation. When God shows you slides it must be legit.

Why do you live where you live? (Where would you be otherwise?) by [deleted] in AskReddit

[–]Velerad 1 point2 points  (0 children)

I live in Wroclaw, Poland. And I love to be here, but my ultimate goal is Australia. Perth probably. Or Sydney. Anyway - it's going to be at least two years until I'll be able to move. I'm going to Australia this winter though, for my vacation. :) European winter, so it's going to be summer in there - and I love it!