@code_and_tea: #programming #javaedition #code_and_tea

code_and_tea
code_and_tea
Open In TikTok:
Region: UG
Wednesday 02 September 2026 06:39:53 GMT
44100
1222
49
147

Music

Download

Comments

gurgodargen
Gurgodargen :
hot take but == true is completely valid. It's easier to verify visually than "Condition" vs "!Condition" and can actually prevent bugs.
2026-09-02 18:09:48
56
dvilardi26
Danilo Vilardi :
I use == True everywhere, sue me. 10x quicker to understand
2026-09-03 01:08:29
17
user4436767553681
unknown :
I see people suggesting the second is more readable. But does the “if” followed by condition not automatically suggest that the condition evaluates to a Boolean?
2026-09-03 07:54:27
1
gray55615
gray :
but you can make the last one more and more abstract, generic and reusable behind more and more abstraction and delegation layers, with dependency injection, byte code rewriting, plugin/extension system and everything until you get a mechanism that can do everything and is completely unusable! God, I am sure Java gave me a lasting brain damage...
2026-09-02 07:01:50
8
imortalax
Immortall :
bruh I even don’t know that Java could do like that 😭😭😭
2026-09-03 09:42:05
0
bawks_6
boxymaloxy :
this how C++ be acting sometimes bro 😭😭😭
2026-09-02 15:53:22
48
gorillaviolence_
adam :
Last one is just enterprise java
2026-09-03 00:29:58
7
sebastian23kws
El maldito :
the last one is straight out of the clean code book with the argument parser bs
2026-09-02 16:37:40
6
geistfortheprice
geistfortheprice :
You have it backwards. The truest form of Java is the last
2026-09-03 05:15:49
3
mangoseason420
mangoseason420 :
EqualityFactory::setEqualityBuilder(EqualityConcreteImpl::create())
2026-09-03 02:51:23
3
local.hacker
Vietējais Urķis :
Last one is AI generated?
2026-09-03 05:34:21
1
seamossfet
Alex :
Observable ComparisonObserver = Observable.create({ @override public onNext(Boolean condition) { return condition == this.value})}); Subscriber ComparisonSubscriber = BehaviorSubject.of(ComparisomObserver).subscribe();
2026-09-02 23:05:11
6
losowy234
losowy :
W
2026-09-03 09:38:23
0
alim5178
fci :
Well condition and !condition is all you ever gonna need, since it's always if(true) or if(false) in the end condition == true is like doing if(true == true), seems a little redundant to me 😂
2026-09-03 01:18:35
0
005kljsm
Kljsm0675 :
welcome to the real world neo
2026-09-02 12:38:41
6
m1nisterx
Some Guy on the Internet :
try { if(condition.equals(True)) }carch(NullPointerException e){ String.out.println(e.printstacktrace()) }
2026-09-02 22:24:24
0
realhectorsantos2.0
RealHectorSantos 🇵🇷🇺🇸🇨🇺 :
All of that is crap. Students - in logic, conditions is either 0 or 1 or between which makes it fuzzy and at that point you need help like I using Pareto's principle
2026-09-02 19:26:36
0
miguel27838
Miguel :
error you have a ) extra
2026-09-02 23:14:49
0
comma.off
Comma (,) :
if ( ComparatorFactory .getInstance() .createComparator(Boolean.class) .compare( BooleanFactory .getInstance() .parse( StringFactory .getInstance() .parse( ObjectFactory .getInstance() .create(condition) ) ) ) .equals( BooleanFactory .getInstance() .parse( StringFactory .getInstance() .parse("true") ) ) ) { }
2026-09-03 08:45:42
1
To see more videos from user @code_and_tea, please go to the Tikwm homepage.

Other Videos


About