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!

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

inside.java/sip/008

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

inside.java/sip/051

3/7
Read 7 tweets
The data-oriented programming that @BrianGoetz describes in infoq.com/articles/data-… 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
3. CQRS
4. Saga
5. BFF
6. API Gateway
7. Strangler
8. Circuit Breaker
learn more - javarevisited.blogspot.com/2021/09/micros… #java #Microservices
Other Microservice resources for Java programmers
javarevisited.blogspot.com/2018/02/top-5-…
7 Free Courses to learn Microservices
medium.com/javarevisited/…
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 - bit.ly/3nYGrYR
Basics of Software Architecture & Design Patterns in Java - bit.ly/38Ixqg5
Grokking the Object-Oriented Design - bit.ly/3pA4wFD
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. 🧵
Answer:
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!

1/7
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.

Article: inside.java/sip/003/

2/7
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.

3/7
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
javarevisited.blogspot.com/2012/06/20-des…
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. dev.java/community/jugs/.
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...

Profitez-en
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.
learndigital.withgoogle.com/ateliersnumeri…
🎼 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
skillshop.exceedlms.com/student/catalo…
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.

1/6
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.

2/6
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.

3/6
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.

1/7
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.

2/7
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.

3/7
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

share.cryptozombies.io/en/lesson/1/sh…

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
github.com/oskardudycz/Ev…
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: nipafx.dev/design-java-op… /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)

🧵🧵🧵(0/9)
(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.

#javascript beautifier.io
#php beautifytools.com/php-beautifier…
#python tutorialspoint.com/online_python_…
(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.

#javascript lelinhtinh.github.io/de4js/
#java javadeobfuscator.com
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
[thread]:
#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- medium.com/javarevisited/…
free java courses - medium.com/javarevisited/…
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!