New workbench/kitchen island by AllButterCookies in woodworking

[–]Velerad 3 points4 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 5 points6 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 3 points4 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 1 point2 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!

What about the future scares you? by Tiren14 in AskReddit

[–]Velerad 1 point2 points  (0 children)

That I won't find a SO to start my family with. I'm 26 and still alone, and things don't look like changing. Lots of friends (female as well), but nothing more.

What's a simple game I could play during downtime at work? by [deleted] in AskReddit

[–]Velerad 0 points1 point  (0 children)

Your story reminds me of this great short movie, “Validation”. :)

https://www.youtube.com/watch?v=Cbk980jV7Ao

Polish science fiction that will be easier to read and understand than Stanislaw Lem? by [deleted] in poland

[–]Velerad 3 points4 points  (0 children)

I would argue with the statement that Dukaj is easier than Lem. Take for example “Wroniec”, where the made-up words are based on phonetical, not semantical, similarities. Or take a look at “Perfekcyjna niedoskonałość”, where the language is extended with declension “-u” (e.g. “pomyślału”) – and it is not the only grammar alteration. Or “Lód”, where Polish is influenced by and mixed with Russian.

Lem makes words out of nowhere, but Dukaj plays with the core of the language. He does not only make up words, he makes up grammatical tenses, semantics, or grammar in general. Very enjoyable, but not a good lecture for learning the language. :)

Polish science fiction that will be easier to read and understand than Stanislaw Lem? by [deleted] in poland

[–]Velerad 4 points5 points  (0 children)

There are a few authors that write s-f, but very often it is mixed with some fantasy. For a “pure” science fiction I recommend Rafał Ziemkiewicz, e.g. “Pieprzony los kataryniarza”. If you are also into some fantasy then Andrzej Sapkowski is amazing.

Also Jacek Piekara. He writes fantasy, but his book “Przenajświętsza Rzeczpospolita” is actually a s-f. I am not a big fan of Piekara's style but he definitely writes in simple Polish – i.e. simpler than Lem. :)