[ / / / / / / / / / / / / / ] [ dir / 112858 / agatha2 / animu / arepa / irc / lewd / vg / vichan ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): 3bf2a102a92b3fa⋯.png (115.83 KB, 1200x2195, 240:439, fuck_you.png) (h) (u)

[–]

 No.981904>>981905 >>981951 >>982122 >>982374 >>982964 [Watch Thread][Show All Posts]

this is fucking retarded

 No.981905>>981908

>>981904 (OP)

Why are you using objectively shit languages? I think it's you who's retarded.


 No.981908>>981910 >>981917 >>981938

>>981905

I need to nigger rig an android app written in java and navigating the existing code is a tremendous pain in the ass

who the fuck thought that breaking control flow up into a million fragments scattered through class constructors in a billion files is a good idea? is this the infamous pajeet code?


 No.981910>>981911

>>981908

So why did you come here? What advice do you seek?


 No.981911>>981916 >>981935

>>981910

I was hoping somebody much smarter than me would be inflamed by this gross exaggeration and provide me with an emphatic rant about the reasoning behind this seemingly retarded design decision so I would find the strength of will to continue. Surprised to find agreement.


 No.981916>>981935

>>981911

If you want to bait people with truth, go back to reddit.

As if anyone who isn't some school teacher or an indian "programmer" could like Java.


 No.981917

>>981908

>is this the infamous pajeet code?

yes. Java is Pajeet's #1 favorite language.


 No.981935

>>981916

>>981911

Java's obsession with classes made a lot of sense when the language was introduced, as back then the standard was shitty C and C-like code that worked mysteriously and with no safety guarantees.

Classes were an attempt to encourage good practices, such as code reuse, standardization, and separation of code with different purposes.

Of course, bad coders manage to write bad code no matter the language, so we end up with constructors of factories of constructors of stuff.


 No.981938>>981943

>>981908

Pajeet's exclusively write code in huge heavy IDEs that auto-fill entire files and give them popups every time they hover over any word in the file. The result is something that is not meant for humans to read, because by and large the majority of it wasn't created by a human. It was either created as an auto generated, generic snippet, or copypasted off stackoverflow by a Pajeet.


 No.981943>>982124

>>981938

Even with the ridiculously specialized and integrated AndroidStudio IDE navigating Java code is a pain. Even the fucking official APIs. To find which bit of code does what you have to run into endless rabbit holes of declarations that just call some other increasingly obscure class through many seperate files (sometimes compiled ones). The documentation reads like circular definitions most of the time so I'm stuck digging through the library code looking for the relevant bits myself.

I'm not an actual software engineer so I have an additional layer of difficulty but I can't imagine this is enjoyable to anybody.


 No.981951>>983461

>>981904 (OP)

yes, yes it is retarded

even android is fleeing from java at all speed.

for fun, do a relative search on YouTube for

>java tutorial

vs

>java tutorial hindi

there are so many many more of the latter.


 No.982020

Because that's OOP and it's POO.


 No.982022

prediction: reddit-tier circle jerk thread

result: sage is a downvote


 No.982115

I'm no advocate for Java, but a class is hardly different from elf files as an interface.


 No.982122

>>981904 (OP)

Back and forth, the struggle consumes us all

Trying to keep a level head

In the most unsettling times

Today, I become the pajeet

Today, I become the PAJEEEEETTTTTTTTTTTT


 No.982124>>982126

>>981943

I'm doing the same thing right now. Want to know what it is I'm trying to create? A single fucking "POST" request. That's it. Why is it that I need to write 40+ LOC to send

[code]

lat=blablabla&lng=blablabla

[\code]

to a server?


 No.982126

>>982124

>fuck up

>try to fix it

>tor users cannot delete posts

Fuck


 No.982374

>>981904 (OP)

OP is in a class of dumb cucks.


 No.982386>>982407 >>983461

>Why is everything a class

int isn't a class


 No.982407>>982408

>>982386

>Integer Class

yes and no


 No.982408

>>982407

That is completely different. Integer is a boxed version of int. Integer objects can be null, but ints must have a number. You may be confused because Java autoboxes / unboxes this for you. This can lead to some head scratching bugs where you get a NPE when returning from a function due to it trying to unbox a null Integer.


 No.982415>>982447 >>982449 >>982453 >>982460

File (hide): dc7e376d076df64⋯.png (4.19 KB, 218x232, 109:116, images.png) (h) (u)

Why is everything null terminated?

This is fucking retarded.


 No.982447

>>982415

By and large, things aren''t though, only when you're working with things you don't know the length of, and can reasonably use a sentinel.


 No.982449

>>982415

>text strings = everything


 No.982453>>982955 >>982967

>>982415

They're only null terminated by convention, when you really think about it. Sure, string literals get parsed with an extra zero on the end, but no one's stopping you from writing your own functions and structs with fixed length. Strings are an abstract concept for computers, so it would be dumb to set it in stone. C lets you make the rules.


 No.982460

>>982415

It doesn't have to be null terminated, you can also use the pascal strings


 No.982955

>>982453

>Strings are an abstract concept for computers

Maybe for your computer. LISP machines had a string data type.


 No.982964>>983028

>>981904 (OP)

i was told that doing so makes error-handling easier

(in the compiler) everything has methods, so there is a default method that gets called if you try to call a method that doesn't exist

>android

android doesn't suck because of java, android just sucks because of the vendor software lock-ins and shitty vendor hardware drivers


 No.982967

>>982453

>Strings are an abstract concept for computers so it would be dumb to set it in stone

>abstract concept for a computer

Functions and procedures are an abstract concept for a computer so it would be dumb to set the rules for thing like parameter passing and returning values in stone.

Sure it might be messy and open up completely new ways to fuck things up, but you are free to implement it in a sane way. C lets you make the rules.


 No.983028

>>982964

>android just sucks because of the vendor software lock-ins and shitty vendor hardware drivers

You forgot something: Java

C-Apps have to use the NDK which is garbage or run inside Java which makes the only source of non-laggy stuff a hard relationship. Java needs lots of memory, CPU-power and energy, all of which are pretty limited on a phone or portable device.


 No.983461

>>981951

>even android is fleeing from java at all speed.

well it's been 10 years

>>982386

and they consider this an issue and try to patch it up in 40 different parts of the language/JRE




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 3
30 replies | 1 images | Page ???
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / 112858 / agatha2 / animu / arepa / irc / lewd / vg / vichan ][ watchlist ]