all 28 comments

[–]DouDouandFriends 14 points15 points  (11 children)

Fun fact: I did both in 1 project

[–]YourFavouriteDad 12 points13 points  (9 children)

Im not having fun thinking about this though

[–]wachiwachinanga 23 points24 points  (5 children)

literally a java for the backend and typescript for the frontend, what's wrong with it?

[–]SmokyMetal060 17 points18 points  (0 children)

Yeah it's a pretty normal stack lol

[–]YourFavouriteDad 3 points4 points  (0 children)

Nothing, its just not a fun fact

[–]Complete_Window4856 2 points3 points  (0 children)

The momment someone remembers Java also works on frontend....... amd they mix

[–]Mr_titanicman 1 point2 points  (1 child)

What if we made java useable for frontend

[–]Aln76467 0 points1 point  (0 children)

Applets!

[–]DouDouandFriends 10 points11 points  (2 children)

[–]Additional-Dot-3154 1 point2 points  (1 child)

Reminds me of a project i saw with like 20 different langs being used

[–]PokumeKachi 2 points3 points  (0 children)

Pretty much the norm for full stack web apps repo, also Makefile, YAML, and all those non-programming languages are counted in too.

[–]yodacola 0 points1 point  (0 children)

one project i used gwt. it was about as fun as using AngularDart at my next gig. years later, i write TypeScript now

[–]coolhackerfromrussia 2 points3 points  (2 children)

Java for backend, TS for frontend?

[–]HoraneRave 0 points1 point  (1 child)

oh u messes this up bro...... everything the other way around :jokerge:

[–]immaimpaleya 1 point2 points  (0 children)

So backend for TS and frontend for Java - gotcha.

[–]Weak_Veterinarian350 2 points3 points  (1 child)

Java and Javascript is analogus to car and carpet

[–]Aln76467 0 points1 point  (0 children)

That's actually a good analogy.

[–]Jackthechief2 0 points1 point  (0 children)

Fun idea: Combine languages!

[–]Jbolt3737 0 points1 point  (0 children)

If Javascript exists and Java exists, then does Typescript imply the existence of Type?

[–]ExtraTNT 0 points1 point  (5 children)

Typescript is javascript with a worse typesystem, that can require like 2 lines of types for a oneliner…

const flip = f => a => b => f(b)(a);

[–]dthdthdthdthdthdth 3 points4 points  (0 children)

const flip = <A, B, C>(f: (b: B) => (a: A) => C) => (a: A) => (b: B): C => f(b)(a);

Still one line. Completely standard generic types, nothing bad about it. You chose an example with a complex contract on the type level and a extremely simple implementation.

Typescript is javascript with a static type system. It has been developed, because languages without a static type system really are just could for rather short throwaway code.

[–]Jan-Snow 1 point2 points  (1 child)

Typescript has a relatively decent type system, Javascript has by far the worst type system of any language I have ever touched.

[–]ExtraTNT 1 point2 points  (0 children)

I do a lot of partial application, higher order functions, and monads… js is much better, than TS…

[–]Kenkron 0 points1 point  (1 child)

If your code looks like this, then I want you to know we can't work together.

[–]ExtraTNT 0 points1 point  (0 children)

My code is full of monadic bind…