Discover and read the best of Twitter Threads about #Java

Most recents (24)

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
#Arweave 的话题度真的是好低啊,连推上搜话题都跳不出多少来,还是简单梳理一下最近看到的#Arweave 的技术总结吧。
1. #Arweave#Filecoin 基本一致的地方就是都由数百个链上节点去存储一个文件,主要不同在于 #Arweave 是预付制的,你要为自己的一次存储提前支付永久服务的费用。
2. #Arweave 有非常特殊的激励机制,保存有更稀缺文件的矿工会比其他矿工拥有更大的算力优势(因为其他的矿工需要消耗更多的算力解决PoW难题),所以用户会跟积极保存更为稀缺的数据。
3. #Arweave 具有极强的扩展性,可以将共识范式下的程序联动交互,使其业务数据都保存在一个区块链内,由 #Arweave 的检测器结算。譬如 #everpay 可以直接读取 #AMM 的存储数据。
Read 7 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
#Java & #JavaScript enthusiasts, gather around! We’ve selected the best quality #meetups for you that our community loved last month. 🥳

blog.meetupfeed.io/java-javascrip…

#programming #frontend #microsoft #design
1st: How Should #Java #Developers Build #FrontEnd for Web, Mobile, and Desktop Today by @karsilz

meetupfeed.io/talk/how-shoul…
2nd: Solving The Expression Problem Using Modern #Java by @RichardWarburto & @raoulUK

meetupfeed.io/talk/solving-t…
Read 9 tweets
0⃣ Clean Code Series: Variables📒🧑‍💻

It's a guide to producing readable, reusable, and refactorable software in #php #ruby #javascript #python #java, etc. - Software engineering principles, from Robert C. Martin's book "Clean Code"

(code: github.com/jupeter/clean-…)

Thread (9)🧵👇 Image
1⃣ Clean Code Series: Variables📒 🧑‍💻

☑️ Use meaningful and pronounceable variable names Image
2⃣ Clean Code Series: Variables📒 🧑‍💻

☑️ Use the same vocabulary for the same type of variable Image
Read 12 tweets
A Mw6.6 #earthquake just occurred below the W tip of #Java, #Indonesia. Here, the Indo-Australian Plate is sinking below the Sunda Plate. To the north, this #subductionzone produced the devastating Mw9.1 2004 Indian Ocean earthquake and tsunami. 🧵1/5

#tectoplot Image
Fortunately, a Mw6.6 is much, much smaller than a Mw9.1 - 5000x less energy! 2/5

earthquake.usgs.gov/education/calc…
The earthquake depth (~35-45 km) is similar to the plate boundary fault, but the focal mechanism shows slip on a steeply dipping thrust fault. This likely represents a hanging wall splay fault, or fracture of the downgoing plate. 3/5

earthquake.usgs.gov/earthquakes/ev… Image
Read 5 tweets
Various view technologies can be integrated in Spring MVC for the 'View' part of application. #spring #Java #development
For that, we can create 'template' files that are populated with data at run time by the templating engine.
🧵on MVC Templating engines👇 @threadreaderapp
Spring supports below engines. Follow links for details on that template engine.
ThymeLeaf - thymeleaf.org/documentation.…
Freemarker - freemarker.apache.org
Velocity - velocity.apache.org/engine/1.7/use…
Groovy - groovy-lang.org/templating.htm…
#spring #Java #development
Besides, Spring also provides its own JSTL tags for use in JSPs.
(JSTL are custom tags aimed to ease JSP development)

Spring also lists some other templates that it can support.
#spring #Java #development
Read 6 tweets
Você quer aprender #Java do começo? Então acompanha aqui o que você precisa saber?

!!Java não é Spring!!

1. Tenha uma IDE. Instale no seu computador uma IDE que você saiba usar. Se não sabe tente conhecer. Eu recomendo o @intellijidea. Aprenda a criar um projeto e executar ele.
2. Conheça a linguagem. Java é uma linguagem com sintax similar ao C. Você pode procurar um livro (não sei algum bom) ou pode ler na internet. Vou dar como referência a W3Schools. Tenta usar as estruturas básicas com System.out.println(). Se divirta.

w3schools.com/java/java_synt…
3. Java é uma linguagem orientada a objetos (OO). Se você sair por aí "codando" você vai achar dificil. Tente entender o que é OO e como usar. Entenda o que é uma classe, um objeto e uma interface.

alura.com.br/artigos/poo-pr…
Read 19 tweets
TIL #Log4j depends on some Java SE modules that IMO shouldn't.

- java.desktop
- java.management

IMO, all logging frameworks (core functionalities) should depend only on java.base and java.logging.

Anything else should be a separate extension/artifact.

#Java #OpenJDK
While 'java.naming' is also a dependency, #Log4j works fine without it.

It won't operate at all if java.desktop and java.management are missing.

Removing 'java.naming' module from a jlinked runtime is the ultimate protection against JNDI attacks in Java.
Of course, all this is understandable given these are logging frameworks that predate Java 9.

But as we think forward and evaluate new major versions and libraries, we should be mindful of using only what we need.
Read 4 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!