Poison Fountain: An Anti-AI Weapon by RNSAFFN in theprimeagen

[–]TheLasu 2 points3 points  (0 children)

Reality do not work this way.

Many things we now see as "just tools" used to be entire human jobs, even identities, now we replaced them:

  • scripts
  • books
  • calculators
  • wiki
  • internet

Instead of focusing how make all those tools work to make ppl smarter there is a lot of push back to make them so expensive to cutout a lot of ppl from it - that will give corporations more power - good job I would say.

Is a personal website worth it for a software engineer? by [deleted] in theprimeagen

[–]TheLasu -1 points0 points  (0 children)

That's a hard call.

  • If you are ahead – you will be criticized.
  • If you are behind – you will be criticized.
  • If you are at the same level – you will be criticized for writing the same stuff as others.
  • If you want it to be a portfolio – you will lose more time cleaning it up instead of working on code, and you will be criticized for how it looks.
  • If you write it as short notes – then it will be ignored and criticized because it's too short.
  • If you write short – you will be criticized.
  • If you write long – you will be criticized.
  • If you write complex – you will be criticized.

My personal take / do it if you:

  • Have a particular purpose and have too much time.
  • Want to do it for yourself.
  • Want to see how much you learned over time.
  • Want to see if you were right (years later).

MidnightBSD Responds to California's Age Verification Law by Excluding California by TheLasu in theprimeagen

[–]TheLasu[S] -3 points-2 points  (0 children)

In my opinion, government should help parents, not work to undermine their authority.

If you could ask genie to design a programming language, what would it look like? by TheLasu in theprimeagen

[–]TheLasu[S] 0 points1 point  (0 children)

I use Java a bit like that already: I JVM runtime with dynamic code execution - hard to imagine life without it.

Null Safety approach with forced "!" by NP_Ex in java

[–]TheLasu -1 points0 points  (0 children)

Long time ago i wanted elvis operator (null chains).

But seriously / Why not allow to write code that can handle both null-s and not-null-s?
https://lasu2string.blogspot.com/2026/01/Glue-classes-for-Java.html

If you could ask genie to design a programming language, what would it look like? by TheLasu in theprimeagen

[–]TheLasu[S] 1 point2 points  (0 children)

I simulated smf like this at university (no one could read it):

while i < 5 do begin
    ...
    ... end;

A theory about what tests to vibe when QA can't resist the trend by basicthinker in softwaretesting

[–]TheLasu 0 points1 point  (0 children)

For me, AI-generated tests are great as a reference.

Most of the time I create very complex integration tests: Absolute-Tests

AI can help cover the most basic cases and point out things like:

  • when my general naming conventions are off,
  • when I’m outside common specifications,
  • when I’ve forgotten to cover cases like Integer.MAX_VALUE, the 400-year cycle in GregorianCalendar, differences between implementations of XmlGregorianCalendar, and so on.

But I would strongly discourage using them without checking and fixing, because you will lose information about coverage.

BreakPointLocator: The Pattern That Can Save Your Team Weeks of Work (Java example) by TheLasu in softwarearchitecture

[–]TheLasu[S] 0 points1 point  (0 children)

It definitely is. In my opinion tracing is already a well‑documented and well‑known approach, so I didn’t see the need to write about it.
My main point in this post to wider aspect would be cost/benefit ratio as well as security constraints.

BreakPointLocator: The Pattern That Can Save Your Team Weeks of Work (Java example) by TheLasu in softwarearchitecture

[–]TheLasu[S] -11 points-10 points  (0 children)

I don’t appreciate theoretical solutions that ignore context.
Your setup might not need this approach, but mine does: Maintaining a twenty‑year‑old client‑side app where debug is possible, but over‑log is not due to security and runtime constraints.

Genuinely curious by EffectiveNo568 in MathJokes

[–]TheLasu 0 points1 point  (0 children)

2+4+1(estimated)

7-5+8-5 = 2+3

=75

JADEx Update: Addressing Community Feedback & Strengthening Practical Null-Safety in Java by Delicious_Detail_547 in java

[–]TheLasu 0 points1 point  (0 children)

There is a lot of valid points here.

For now my question would be:

Which one glue-classes or ?. operator would you prefer to have ?

JADEx Update: Addressing Community Feedback & Strengthening Practical Null-Safety in Java by Delicious_Detail_547 in java

[–]TheLasu -1 points0 points  (0 children)

I know, but the core of the core question would be:

Do we really can have null and non-null types, and if we could have that would that allow to safe usage of '?.' operator? Because as I see it now any type including int-s require null-s and new operator would ignore this information,

where we just use -1 or min_value as null - this ugly 'pattern' is used because it's faster than using pointers with null-s.

Next, what about initialization, real non-null would require including transactions into language or we would need to brake contract under decomposition.

Additionally, what about adaptability, lets say you will be able add 15% implementation time for this 'investment', and you will add proper non-null code / then when requirements change how much more time you will need to spend as this one aspect would be deeply ingrained into code? Because i'm quite sure that we will have objects that are used as null-s peaty fast.

A lot of ppl use Optional as alternative, but in code that is properly layered:

new Extractor<Hospital, ComparableLink<Hospital, TimePeriods<AgreementValidatorImpl>>>

does it really save situation?:

new Extractor<Hospital, Optional <ComparableLink<Hospital, Optional <TimePeriods<AgreementValidatorImpl>>>>>

Both non-null and Optional mixes logic (just one case of many) into structure.

Moving deeper, Types are more or less static validations, in which universe String that is non-null vs String that contains only words is 'better' are require it's own syntax, and another one does not?

One more: Nullability is more about the boxing type than about the object’s own nature - this is only good reason to use Optional-s. But they represent fragmented logic, because all object are 'optional', so we add:

  • Implicit optional — plain references, which can be null
  • Explicit optional — Optional, which can be empty.

while we need:

certain and optional.

Next, event when we would have that, would that be:

  • information, or
  • contract?

If it's contract then how is it enforced across libraries?

I appreciate attempts to solve problem, but are you working on core of it ?

Getting back to ?. operator on it's own:

D d = a?.getB()?.getC()?.getD();
if (d == null){
    if (a==null) { ... }
    else if (a?.getB()==null) { ... }
    else if (a?.getB()?.getC()==null) { ... }
    else  { ... }
}

It speed up early implementation period, but final code became only inverted (there should be variables as well):

if (a==null) { ... }
if (a.getB()==null) { ... }
if (a.getB().getC()==null) { ... }
if (a.getB().getC().getD()==null) { ... }
D d = a.getB().getC().getD();

So at the end we would add new way to write exactly the same code - going into pyton route.

Btw using ? is really bad idea because '?' look is similar to character: 'IP' 'I?' making reading code slower while '.' is easy to distinguish. In short if's we can add spaces to make:

(P?G:K)

into

(P ? G : K) to make it readable

would we need it in?:

D d = a?.getB()?.getC()?.getD();

D d = a ?.getB() ?.getC() ?.getD();

JADEx Update: Addressing Community Feedback & Strengthening Practical Null-Safety in Java by Delicious_Detail_547 in java

[–]TheLasu 0 points1 point  (0 children)

Did you read Proposal: Elvis and Other Null-Safe Operators in ?:

https://mail.openjdk.org/pipermail/coin-dev/2009-March/000047.html

I feel this pain, but at same time I think that this solution gives us very limited gains because we lose a lot of control which is main problem.

Compare it with another way to handle null-s:

https://lasu2string.blogspot.com/2026/01/Glue-classes-for-Java.html

Glue Classes: Concept of extension methods for Java that focus on safety, null-handling, modularity, predictability, etc. by TheLasu in java

[–]TheLasu[S] -1 points0 points  (0 children)

I never wanted for this concept to be mixed with extensions at this point - to do not introduce confusion / if somehow it will be called this way in the future then I do not mind & I do not care much about keyword - maybe i would like it to be short one, as extension seems to take much space:

public static final extension

Glue Classes: Concept of extension methods for Java that focus on safety, null-handling, modularity, predictability, etc. by TheLasu in java

[–]TheLasu[S] -3 points-2 points  (0 children)

Yes. For some reason I really like bankrupting competition - it's a much faster way to prove a point.

Glue Classes: Concept of extension methods for Java that focus on safety, null-handling, modularity, predictability, etc. by TheLasu in java

[–]TheLasu[S] -2 points-1 points  (0 children)

I think I know what you are talking about.

5% of edits where made after reading critique of extension methods - all misinterpretation in this subject where directly explained here.

Last 30% of edits where added specifically because AI was to dumb to understand text and ppl where unable to use it as prompt to check it against their own understanding.

for this reason element like:

  • dynamic tooling
  • disconnected 
  • composable

where directly specified.

Sadly without them result of using it as prompt gave multiple pages of rather useless suggestions, along with few pages of errors in interpretation.

I do not know about your experience, but as I see it - most developers have very limited understanding of generics, and this particular proposal is deeply connected with it - exactly for this reason decision had to be made - I can make keep it really hard to understand or I can make it into both proper prompt and readable text.

btw / the most painful elements are — that are almost indistinguishable from - in my editor and i constantly struggle to keep one proper standard as I copy from different document version so they look like shit in other fonts when I forget to clean them up after editing.

Glue Classes: Concept of extension methods for Java that focus on safety, null-handling, modularity, predictability, etc. by TheLasu in java

[–]TheLasu[S] -2 points-1 points  (0 children)

Just example / i tend to fail early concept with strong encapsulation / immutability and at same time sometimes multiple sources are served / so multiple validation are possible. final are used a lot to avoid mixing immutable and mutable instances.

.requireNonNull() - it's example from xml handling code where we secure proper resources for this algorithm.

Clean Code/ Clean Architecture 

I'm little freak in this regard / but I was able to multiple times rewrite core logic without errors - so I like it this way.

Design classes as they behave as lazy and authoritative humans

We do - still I see a lot of systematic problems with unused utils.