Remote
Tagir Valeev
@tagir_valeev@mastodon.online
803 Followers
56 Following
26 Posts
Joined October 31, 2022
Boosted by @hj@shigusegubu.club
Today we had a fire alarm in the office. A colleague wrote to a Slack channel 'Fire alarm in the office building', to start a thread if somebody knows any details. We have AI assistant Glean integrated into the Slack, and it answered privately to her: "today's siren is just a scheduled test and you do not need to leave your workplace". It was not a test or a drill, it was a real fire alarm. Someday, AI will kill us.
Open post
Replying to
@mhd reminds me of https://youtu.be/1EBfxjSFAxQ
The IT Crowd - Series 1 - Episode 2: Fire!
39
2
5
0
Open post
Thanks to https://bugs.openjdk.org/browse/JDK-8369517, I can now close several long-standing issues in #IntelliJIDEA bug tracker as 'third-party issue'. People reported that IntelliJ erroneously highlights compilable code as red. But it was not our mistake. The code in question should not be compilable, according to the specification! This is fixed in Java 26, so your code may become broken there.
5
0
1
0
Open post
Single log formats time in four different ways. Computers were a mistake.
2
2
3
0
Open post
Replying to
@metacosm@mastodon.social nobody asked the AI input at all. It just was configured in the particular channel to answer automatically if it thinks it can help faster than fellow humans (sometimes people actually ask something which was asked before, so AI could be helpful). The configuration will be adjusted after this incident.
8
2
0
0
Open post
Replying to
@betalars @daniel_bohrer @Matt_999 the 'siren test' AI referring to is exactly that. It's not a drill. The planned siren test may take several hours of occasional alarms, and it doesn't mean that you should leave the building every time you hear it. We had one a few months ago. Probably AI found that announcement in the chat history and assumed that it is related to today's alarm.
8
2
0
0
Open post
Replying to
Now, you'll get an inspection warning with a quick-fix proposing to use the deconstruction pattern!
void print(List list) {
for (Point(int x, int y) : list) {
System.out.println(x + ":" + y);
}
}
5
3
1
0
Open post
Open post
Open post
Open post
Replying to
@TheDonRaab @stuartmarks I was going to advice you to do this, but you have found it by yourself 🙂 On our side, it's a heuristic, an assumption that all the anonymous classes are named using ever increasing sufficient. So we just look for a second anonymous class.
1
1
0
0
Open post
Replying to
@majick well, in our case there were definitely cases of 'scheduled alarm maintenance'. In that time, random alarms occurred many times during two or three hours. Evacuating after every single of them would mean nobody is doing the actual work during the good part of the day.
2
4
0
0
Open post
Replying to
@the_moep @taschenorakel I've seen a backend Java project importing javafx library. The sole reason was that it contains a Pair type, and somebody depended on it when JavaFX was a part of the platform. https://docs.oracle.com/javase/8/javafx/api/javafx/util/Pair.html
2
3
0
0
Open post
Replying to
@taschenorakel it's Kotlin, but your question is very valid. Declaring a custom data class is a one-liner, but people still use the Pair class from the standard library, because it's already there. Generic Pair class is a mistake. It promotes lazy programming. Luckily Java doesn't have it.
2
6
0
0
Open post
Replying to
LLMs can replace a human translator in many cases, but this level of quality is still impossible for LLMs out-of-the-box 😄
1
1
0
0
Open post
Replying to
1
0
0
0
Open post
Replying to
Fun fact: #IntelliJIDEA still supports this feature! Use language level 20 (Preview) (which is not officially supported anymore). Write code like:
import java.util.List;
class Test {
record Point(int x, int y) {
}
void print(List list) {
for (Point point : list) {
int x = point.x();
int y = point.y();
System.out.println(x + ":" + y);
}
}
}
0
4
0
0
Open post
Open post
Replying to
@odrotbohm you may not have every possible algorithm available directly as a record member. Sometimes, you need something new right here.
0
1
0
0
Open post
Replying to
@katzenberger @rail the incident was reported to the vendor, and they are looking at it. Of course, such things should be taken seriously.
0
0
0
0
