Wouter Coekaerts

225 posts

Wouter Coekaerts

Wouter Coekaerts

@WouterCoekaerts

Programming puzzles and security enthousiast. ex-@Square . @[email protected]

Belgium Katılım Ekim 2010
196 Takip Edilen514 Takipçiler
Wouter Coekaerts
Wouter Coekaerts@WouterCoekaerts·
I'm excited to announce FlowTracker, a Java agent that tracks data flowing through Java programs. It helps you understand where any program got its output from, what it means, and why it wrote it. Watch the video, explore the live demo and read more at github.com/coekie/flowtra…
English
0
5
5
870
Wouter Coekaerts retweetledi
Simone Margaritelli
Simone Margaritelli@evilsocket·
The hacker spirit breaks any spell.
Simone Margaritelli tweet media
English
3
39
143
14K
Wouter Coekaerts
Wouter Coekaerts@WouterCoekaerts·
@tagir_valeev That makes sense. I guess the further away (e.g. same expression or not) from the code that was asked to be refactored the more surprising / less desirable it is. I don't know where I'd draw the line.
English
0
0
0
35
Tagir Valeev
Tagir Valeev@tagir_valeev·
@WouterCoekaerts Well, we do like this sometimes. E.g., try to extract variable here. You'll get magically your ternary rewritten to if-else. Because otherwise, the result of extraction will likely be erroneous.
Tagir Valeev tweet mediaTagir Valeev tweet media
English
1
0
1
109
Tagir Valeev
Tagir Valeev@tagir_valeev·
Assume that you want to extract method from the 'if' branch, leaving else-branch as is: public int test(boolean b) { if (b) { System.out.println("You're in the wrong branch"); throw new IllegalArgumentException(); } else { return 42; } }
English
6
0
17
11.7K
Wouter Coekaerts
Wouter Coekaerts@WouterCoekaerts·
@tagir_valeev Tough choice. I like option 4 the least, because that is changing code outside what I told it to refactor. Imo the ide shouldn't do that without asking. It might be smart, but it's... disobedient.
English
1
0
1
118
Tagir Valeev
Tagir Valeev@tagir_valeev·
So, what would you expect from your favorite IDE?
English
14
0
0
4.2K
Wouter Coekaerts
Wouter Coekaerts@WouterCoekaerts·
I just added solutions to the non-empty empty String challenge. A simple one, but also two original solutions, including one that does not even use any concurrency!
English
0
2
6
2.2K
Wouter Coekaerts
Wouter Coekaerts@WouterCoekaerts·
@Raumzeitfalle Ah, it went through now. "We will review your report and have assigned it an internal review ID : 9075516"
English
2
1
3
276
@·
What are the 2 security problems in this Java code. If you need a hint check this blogpost: buff.ly/3Hi6WEh
 tweet media
English
11
3
39
14.2K
@·
TIL Ukraine is running its war on discord
 tweet media tweet media
English
112
1.4K
12.5K
2.2M
Tagir Valeev
Tagir Valeev@tagir_valeev·
A #Java puzzle: is it possible to execute the `test()` method and actually have the "Recursion!!!" string printed without modifying the Recursion class (imagine it's a part of compiled library)?
Tagir Valeev tweet media
English
13
7
94
0
@·
It’s been UN MEDLEYED!
 tweet media
English
1
0
1
0
Wouter Coekaerts
Wouter Coekaerts@WouterCoekaerts·
@nickjshearer copilot.github.com now shows me sentiment.ts as the first example, which is not better. It adds a "urlencoded" header, but it's not actually url encoded. What if `text` contains a `&`? You might even call that a security vulnerability.
Wouter Coekaerts tweet media
English
1
13
87
0