Discover and read the best of Twitter Threads about #java

Most recents (24)

Hey #Java Developers, ☕️

Here's your Friday #SipOfJava thread! 🧶🐈

Improving performance or reducing memory footprint is important to reducing the cost of running Java applications, especially when using public cloud platforms. Here are some ways to accomplish this!

Often the best choice would be to upgrade to the latest JDK version, which provides significant runtime benefits.

Here is a bit deeper look at some of the runtime improvements to the JDK in recent releases.

Read 7 tweets
The data-oriented programming that @BrianGoetz describes in… provides strong validation for the #Scala approach to data modelling, which combines FP+OO, that we've been using for a long time!
I hope that #Scala 3 will continue to push the envelope and explore new ways, which can then serve as an inspiration for languages such as #Java.

I think we'll have our say when it comes to taming side-effects (IOs combined with #Loom), handling context and metaprogramming.
Of course, for me Scala has an edge - the whole ecosystem is built on immutability-first, while in Java it's a much alter add-on.

But that's the price you pay for popularity, change becomes much harder. It's impressive that Java is able to introduce such changes so late.
Read 3 tweets
You decided to learn Java, and even picked up a course to learn but it seems to be more time consuming

So AppsHive has come up with the list of the best Java Coding Apps for easy learning

#appshiverecommends #javascript30 #Java #mobileapps #Coding #Codingprojects

A thread📜
1) @Sololearn

What we liked:🤩

👉Very easy to use and let us have many many options to choose what we want to learn
👉It offers courses in many languages
👉Can compete with peer learners
👉You can try and write code right from your mobile phone
2) @codegym_cc

What we liked:🤩

👉Provide a handy article on programming
👉 Bite-size lectures with real examples
👉Provides instant task verification
👉Can ask questions for solving any problem
Read 7 tweets
10 Microservices Design Patterns and Principles to Learn
1. Database per Microservice
2. Event Sourcing
4. Saga
5. BFF
6. API Gateway
7. Strangler
8. Circuit Breaker
learn more -… #java #Microservices
Other Microservice resources for Java programmers…
7 Free Courses to learn Microservices…
Read 7 tweets
Design Patterns to write better code
And if you want to learn here are best design pattern courses to start with
Design Patterns in Java -
Basics of Software Architecture & Design Patterns in Java -
Grokking the Object-Oriented Design -
Read 9 tweets
The JVM does not load all classes in the classpath.
It only loads the ones it needs. What triggers the JVM to load a particular #Java class?

Then answer might surprise you.
Consider the code below. What does it print?

Let's show the output and explain why. 🧵
Class A, C and D are loaded.
Class B, E and F aren't.

Class F is never used, so it obviously isn't loaded.

Notice that MyBean contains fields of type B (static) and type E (non-static), but the B and E classes aren't loaded, because no instances are created.
A Java class is loaded in OpenJDK just in time: when an instance is created (with "new" or reflection) or a static member (field or method) is accessed.

If a class can't be loaded (for example if the compilation and runtime classpaths differ), a NoClassDefFoundError is thrown.
Read 4 tweets
Hey #Java developers, ☕️

Here is your Friday #SipOfJava thread! 🧶🐈

Needing to automate a task? Consider writing it in Java! Recent changes, and some long-existing APIs, have made Java a practical choice for writing small utility apps. Let's take a look!

Added in JDK 11, the java launcher can now directly launch single-file source-code applications. Making it easier to develop and launch small utility apps.


Local-variable type inference (var) was added in JDK 10. var can make it easier when working with complex types (i.e. when generics are involved) and easier to define variables in applications.

Read 7 tweets
Design Patterns for writing better code
And here are all the design pattern articles by @javinpaul

20 Design Patterns and Software Design Interview Questions for Programmers…
Read 20 tweets
Summary of #Java 8,9,10,11,12,13,14,15,16,17,18 features.
All features in single tweet. #bookmark #save #pin
Thread 👇 #retweet #follow
Java 8 Features:
- Lambda expression
- Stream API
- Functional interface
- Default and static methods
- Optional class
- Nashorn – JavaScript runtime engine
- Annotation on Java Types
- Unsigned Integer Arithmetic
- Repeating annotations
- New Date and Time API
#Java 9 Features:
- Java platform module system
- Interface Private Methods
- HTTP 2 Client
- JShell
- Platform and JVM Logging
- Process API Updates
- Collection API Updates
- Improvements in Stream API
- Multi-release JAR Files
- @Deprecated Tag Changes
- Stack Walking
Read 12 tweets
Every programming language provides ways to express our ideas and then translates them into reality. This thread will explore ten #Java programming features used frequently by developers in their day-to-day programming jobs.
Collections are used to store, sort, search, and iterate objects. It provides a few basic interfaces, such as List, Set, Map, and their implementations. The traditional way of creating Collections may look verbose. Therefore, #Java 9 introduced a few very concise factory methods.
#Java 10 introduced type inference for local variables, which is super convenient for developers.
Read 13 tweets
#Java has been and continues to be the most popular language over the last two decades. After many discussions with Java developers, I have concluded the following seven key reasons why Java developers still love Java after all these years.
1. Community: 
In every major city, you will find a Java user group that helps developers achieve the required skills, voluntarily and for free, who help distribute resources and solutions, increase networking, and expand #Java knowledge globally.
2. Language and Platform
An expressive and easy-to-read language helps new developers quickly get used to the existing codebase. #Java is an open-source programming platform with great documentation support. It's a platform that houses and enables a wide range of other languages.
Read 11 tweets
🎓 #Google propose plusieurs cours officiels, 𝒈𝒓𝒂𝒕𝒖𝒊𝒕𝒔 et 𝗰𝗲𝗿𝘁𝗶𝗳𝗶𝗲́𝘀. 🔥

💻 Tous sont liés au monde numérique, digital et technologique.

#Marketing, #Sécurité, #Apps...

Formation sur le marketing digital

Ce cours offert, 𝙖𝙫𝙚𝙘 𝙘𝙚𝙧𝙩𝙞𝙛𝙞𝙘𝙖𝙩𝙞𝙤𝙣 de l'@iab (Interactive Advertising Bureau), permet de maîtriser les principes de base du #marketing numérique.…
🎼 Gestion et croissance sur #Youtube

Cours avec 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗬𝗼𝘂𝘁𝘂𝗯𝗲 pour les partenaires permettant de gérer de la musique, des entreprises, des médias et des partenaires d'identification du contenu sur YouTube…
Read 13 tweets
Hey #Java developers, ☕️

It's your Friday #SipOfJava thread! 🧵

Records 💿 are one of the most exciting changes that have come to Java since Lambdas and Streams in Java 8. Let's review some of the key benefits and library integrations for Records.

Sometimes during data transform a data type is only needed with context of a single method. Local Records allow a data type to be defined as a single line within a method.

Serialization is one of the scariest areas in Java, with a lot of easy to overlook traps that could leave your application vulnerable. Records address a lot of common serialization vulnerabilities.

Read 7 tweets
In #Java, two entirely different URLs may be considered equal. Sometimes. Why? DNS. It's always DNS. Well, Java works this way: "Two hosts are considered equivalent if both host names can be resolved into the same IP addresses". Let's dig (no pun intended!) a little bit deeper 🧵
Using dig we notice that these domains (Polish president and some dating site) point to the same servers. Scandal? No. CDN. These are #Cloudflare IPs:
Trying to access this IP directly fails. But just add Host header to HTTP request and everything works just fine:
Read 4 tweets
Good or bad #Java code?
The code in the original tweet was Java 9 onwards. Here is how it looked in Java 5
Java 7
Read 5 tweets
Hey #Java Developers, ☕️

It's your #SipOfJava Friday thread! 🧵

String is one of the most often utilized JDK classes by Java developers. Let's take a look at how String has been improved in recent Java releases, as well as some over looked features from older releases.

Text Blocks were added in Java 15, and introduce the concept of a 2-dimensional String. Text Blocks greatly improve the experience of working with markup languages like; XML, JSON, HTML, as Strings.

The String classes has seen a lot of work done to it since JDK 8, with many new helper methods being added. Check out this Sip of Java were I cover some of the key new additions.

Read 7 tweets
Conseguir el primer trabajo en la industria #tech es difícil.

Empresas como @Mercadolibre y @Globant tienes programas para programadores sin experiencia.

❤️ RT para ayudar a más programadores

👇🏼 ¿Quieres saber más? Sigue hilo...
Mercado Libre tiene bootcamps para contratar programadores en:

- #Java
- #Go
- #Mobile
- #Frontend

Para entrar al programa no necesitas experiencia previa, solo saber programar.
Al finalizar el bootcamp te ubican en un equipo de Mercado Libre dependiendo de tus skills y la demanda del momento.
Read 9 tweets
Just completed level 1 on #cryptozombies…

Some learnings from a java developer perspective 👇

#Solidity #Ethereum #Web3 #Blockchain #Java #javascript
The naming convention is the same as java.
We have few extra datatypes like
🔲 uint (Unsigned integer)
🔲 struct (Similar to a class in java) - Doesn't have a constructor
uint - Unsigned Integer - int data type that only stores non-negative integers i.e 0 and positive integers.

For e.g, if an int can store 256 numbers, the range of int will be from -128 to 127. But the range of uint will be 0 to 255.
Read 11 tweets
After getting the first version of #Java samples of #EventSourcing, I asked the community for feedback for my PR…
I wanted to get harsh but fair feedback to make it idiomatic and, in general, better. I got what I ask for, let me share what I learned 👇😅 1/
Java Optional should be used only as a result, to reduce the confusion around the `void` type. It should not be used as a method input parameter or field. This makes sense, as Java generics are more compile-time templates and are zipped. See more in:… /2
I already used sealed interfaces to have a nice pattern matching while rebuilding the state from events. Yet it appeared that they allow full "union types" experience! After that, I went further and created 👇It enables concise and precise modelling /3
Read 15 tweets
How to read code written by other people

Examples of tools

(also good for code you wrote yourself more than a week ago)

(1/9) Code beautifiers

Sometimes, simply putting the right indents, line breaks, and highlighting variables can go a long way toward making your code more readable.

(2/9) Deobfuscators

Sometimes developers purposely make code unreadable with special tools - obfuscators (especially often in websites)

In such cases it is possible to use deobfuscators.

Read 14 tweets
This is the first war in a modern world where we have more than just one physical frontier. As Ukrainian IT community we started another one - virtual. I’ll explain you how it works here in #Ukraine and abroad
#Ukraine has more than 160K IT specialists: hardware engineers, cloud engineers, software engineers, devops, architects, QA, etc.
We do have IT security folks known as Ukrainian Cyber Alliance (@UCA_ruhate_). They were the first ones who attacked #Russia’s IT infrastructure.
Read 11 tweets
[#Thread] Aujourd'hui, petit point rapide car j'ai failli me faire #scam et ça aurait pu me coûter cher.

Pour être franc, si j'avais pas de notion dans le #web, l'affaire était dans le sac.

Je vais donc vous expliquer pas à pas comment j'en suis arrivé à cette conclusion. 🧵⬇️
Donc, tout a commencé par un message classique en DM pour une demande de #promotion de projet.

Jusqu'ici, rien d'extraordinaire, la personne présente son truc rapidement et après 1 relance, j'arrive à récupérer le site internet .

Je me suis empressé d'aller voir et là…
Grosse surprise, le site en question est hyper #qualitatif. Les couleurs sympa, les effets cool...

Bref, tout semble indiquer une belle plateforme et fonctionnel.

Je demande donc d'avantage d'explication à la personne notamment pour avoir le fameux graal : le #Whitepaper
Read 18 tweets
Best Resources to learn Java for FREE
1. courses
2. websites
3. books
4. blogs
5. tutorials
A thread 🧵
#Java #Programming #Free #100DaysOfcode
free java courses-…
free java courses -…
Read 13 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!

This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!