en
Feedback
Чашечка Java

Чашечка Java

Open in Telegram

Лучшие материалы по Java на русском и английском Разместить рекламу: @tproger_sales_bot Правила общения: https://tprg.ru/rules Другие каналы: @tproger_channels

Show more
8 550
Subscribers
-124 hours
-207 days
-2430 days
Posts Archive
Difference between Hibernate, JPA, MyBatis Hello guys, if you are wondering what is difference between Hibernate, JPA, and My
Difference between Hibernate, JPA, MyBatis Hello guys, if you are wondering what is difference between Hibernate, JPA, and MyBatis in Java world and when to use them then you have come to the right place. Earlier, I have shared Hibernate Courses, books, and Interview Questions and in this article, I will answer this popular Hibernate question from Java developer's perspective.  This article aims to give a brief overview of Hibernate, JPA, and MyBatis. Moving ahead highlights the difference between them. It also put light on which underlying technologies they use. Lastly, it provides verdicts on when to use which one among these. But, before we start with the difference between JPA, Hibernate, and MyBatis. It is important to have an understanding of these technologies first. Java Interview questions and tutorials Read: http://www.java67.com/2023/02/difference-between-hibernate-jpa-mybatis.html

How to access a value defined in the application.properties file in Spring Boot? Example Tutorial Hello guys, if you are wond
How to access a value defined in the application.properties file in Spring Boot? Example Tutorial Hello guys, if you are wondering how to access a value defined in your spring application configuration file then you are not alone, many Java developer face the same challenge. How to access a value defined in the application.properties file in Spring Boot is a common question that arises when you dealing with large software applications. In software applications, you need to have different environments for the QA, production, and local. So as a solution for this, you can use different configurations and update the files separately without affecting other environments by using property files. Java Interview questions and tutorials Read: http://www.java67.com/2022/12/how-to-access-value-defined-in.html

How to test a Spring Boot application in Java? @SpringBootTest Example Hello guys, if you are wondering how to test your Java
How to test a Spring Boot application in Java? @SpringBootTest Example Hello guys, if you are wondering how to test your Java + Spring Boot application then you are at the right place. Earlier, I have shared best Spring Boot Courses and Spring Boot + Microservice example and in this article, I will talk about how to test your Spring boot application, mainly about writing unit test and integration test for Java and Spring boot application. Unit testing and Integration testing are two skills which separates a normal developer from a professional Java developer and when it comes to testing Spring applications many Java developer doesn't really know how to do that. If you are new to Java and Spring development but keen to learn Unit testing both Java and Spring Boot application then you have come to the right place. Java Interview questions and tutorials Read: http://www.java67.com/2022/07/how-to-test-spring-boot-application.html

Difference between @Component, @Controller, @Service, and @Repository in Spring Hello guys if you are wondering what is the d
Difference between @Component, @Controller, @Service, and @Repository in Spring Hello guys if you are wondering what is the difference between @Component, @Controller, @Service, and @Reposistory annotation in Spring Framework then you have come to the right place. In the past, I have shared 15 Spring Boot Interview Questions and 30 Spring MVC questions and in this article, I am going to answer the fundamental and popular Spring questions about @Component, @Controller, @Service, and @Repository annotation, but before we go into differences, let's understand the similarity first. Java Interview questions and tutorials Read: http://www.java67.com/2022/06/difference-between-component-service-repository-in-spring.html

5 Best Python Tutorials For Beginners in 2023 Hello guys, if you want to learn Python programming language in 2023 and lookin
5 Best Python Tutorials For Beginners in 2023 Hello guys, if you want to learn Python programming language in 2023 and looking for best online resources like tutorials, courses, books, projects and websites then you have come to the right place. Earlier, I have shared best Python courses, both free and paid, as well as best Python books, projects, and even Python interview questions for job interviews and today, I Am going to share best Python tutorials for beginners in 2023. We all know that a computer can work without a system or program to tell them what to do, which means you need to learn a language to program it and how it works. There are a lot of languages to learn, but python is one of the high-level and easy to learn and start. This post will help you get the best resource to get started using the python language. Java Interview questions and tutorials Read: http://www.java67.com/2023/02/5-best-python-tutorials-for-beginners.html

Проблема N+1 и как её решить с помощью EntityGraph Всем привет! В данной статье попробуем разобраться с проблемой N+1 (или может правильнее 1+N?) и как ее решить с помощью использования EntityGraph. Проблема N+1 возникает, когда мы генерируем запрос на получение одной сущности из базы данных, но у данной сущности есть свои связанные сущности, которые мы тоже хотим получить и hibernate генерирует вначале один (1) запрос к базе данных, чтобы получить интересующую нас сущность, а потом N запросов, чтобы достать из базы данных связанные сущности. Данная проблема отражается отрицательно на производительности работы базы данных из-за большого числа обращений к ней. Создадим проект и подключим следующие зависимости: Читать: https://habr.com/ru/post/714704/?utm_campaign=714704

Мини-гайд по погашению технического долга В этой статье я хочу описать свой опыт погашения технического долга на нашем проекте в виде гайда. В гайде я выделю несколько самых распространенных случаев технического долга и предложу методы их решения. Так как это довольно обширная тема, я посоветую несколько книг для изучения, потому что в рамках данной статьи поговорить обо всем не вижу возможным. Все описанное относится к BackEnd части, но возможно, будет подходить и для других разработчиков. Буду рад, если вы поделитесь своим опытом по этой теме в комментариях. А у вас накопились долги? Читать: https://habr.com/ru/post/714568/?utm_campaign=714568

How to use Spliterator in Java 8 - Example Tutorial Hello friends, we are here today again on the journey of Java. And today,
How to use Spliterator in Java 8 - Example Tutorial Hello friends, we are here today again on the journey of Java. And today, we are gonna learn about SplitIterator class from Stream package that may not be used in your day-to-day life but can be very useful to know as Java internally does use this with both normal streams and parallel streams. As always, let’s take an example of a situation. I will present you with a situation and you guys can think about it. So, let’s say we have an array with 50k records in it. Now, these all records need to be modified, let’s say they are strings and we need to append the string with a name. Now, traversing the array sequentially would be time-consuming. Any innovative ideas my friends? Java Interview questions and tutorials Read: http://www.java67.com/2021/11/how-to-use-spliterator-in-java-8.html

10 Examples of Collectors + Stream in Java 8 - groupingBy(), toList(), toMap() As the name suggests, the Collectors class is
10 Examples of Collectors + Stream in Java 8 - groupingBy(), toList(), toMap() As the name suggests, the Collectors class is used to collect elements of a Stream into Collection. It acts as abridge between Stream and Collection, and you can use it to convert a Stream into different types of collections like List, Set, Map in Java using Collectors' toList(), toSet(), and toMap() method. Btw, Collector is not just limited to collection stream pipeline results into various collection class, it even provides functionalities to join String, group by, partition by, and several other reduction operators to return a meaningful result. It's often used along with the collect() method of Stream class which accepts Collectors. In this article, you will learn how to effectively use java.util.stream.Collectors in Java by following some hands-on examples. Java Interview questions and tutorials Read: http://www.java67.com/2018/11/10-examples-of-collectors-in-java-8.html

Привет Unicode! Или как компьютеры работают с символами Основная задача письменности с давних времен, отобразить визуально то, что человек произносит вербально. В истории встречается огромное количество примеров того, как люди, пытаясь передать через бумагу какую-то информацию, используя для этого знакомые образы. Древние египтяне использовали иероглифы, очень похожие на вещи из повседневной жизни. Читать: https://habr.com/ru/post/714540/?utm_campaign=714540

How to log SQL Statements in Spring Boot Application? Example Tutorial Hello guys if you are working on a Spring Boot applica
How to log SQL Statements in Spring Boot Application? Example Tutorial Hello guys if you are working on a Spring Boot application which loads and save data from database but you are not sure which queries are run on backend and you want to see them then you have come to the right place. Earlier, I have showed you how to set logging level in Spring Boot and In this article we are going to have a look at another very interesting topic from Spring Boot on how to log SQL statements in spring boot app. I know you might be wondering why I’m calling a very boring topic an interesting one? A proper logging is among one of the features that sets intermediate or experienced developers apart from beginners. Java Interview questions and tutorials Read: http://www.java67.com/2023/02/how-to-log-sql-statements-in-spring.html

6 React.js Performance Tips Every Web Developer Should Learn Hello guys, if you are working in a React.js application and loo
6 React.js Performance Tips Every Web Developer Should Learn Hello guys, if you are working in a React.js application and looking for best tips to improve performance of your react application then you have come to the right place. Performance is one of the biggest reasons why React.js has gained immense popularity in the last five years. React uses virtual DOM to boost performance. Though React does what it has to do to increase the performance behind the scenes, the developer has to ensure a top-quality user experience. In this article, we will discuss some of the ways which can be used to optimize the performance of a React application. Java Interview questions and tutorials Read: http://www.java67.com/2022/03/6-ways-to-optimize-react-application.html

9 Tips to become a Better Software Developer in 2023 Many of my readers, students, and programmers often asked me how to impr
9 Tips to become a Better Software Developer in 2023 Many of my readers, students, and programmers often asked me how to improve their programming skills, coding skills, or design skills. I know it's not easy to be a professional programmer. Apart from programming and coding, you have to be good at communicating ideas, designing solutions and, more importantly, convincing peers and stakeholders. Ideally, you learn all these qualities at your workplace by working with more experienced and smarter people than yourself, but that's just an ideal scenario. Many programmers don't get lucky enough to work with a fellow programmer who helps them to grasp these skills; often, it's your own hard work. Java Interview questions and tutorials Read: http://www.java67.com/2021/10/9-tips-to-become-better-software.html

7 Reasons of NOT using SELECT * in a Production SQL Query? Best Practices Hello guys, if you are doing a code review and see
7 Reasons of NOT using SELECT * in a Production SQL Query? Best Practices Hello guys, if you are doing a code review and see a SELECT * in production code, would you allow it? Well, its not a simple question as it looks like but let's find out pros and cons about using SELECT * in a production SQL query and then decide. I have read many articles on the internet where people suggest that using SELECT * in SQL queries is a bad practice and you should always avoid that, but they never care to explain why? Some of them will say you should always use an explicit list of columns in your SQL query, which is a good suggestion and one of the SQL best practices I teach to junior programmers, but many of them don't explain the reason behind it. Java Interview questions and tutorials Read: http://www.java67.com/2018/02/why-you-should-not-use-select-in-sql.html

В OTUS пройдет 2 открытых урока, посвященных направлению отказоустойчивых и масштабируемых архитектур. Этот навык под силу не каждому разработчику. Но именно его особенно ценят крупные компании. Хотите получить компетенции архитектора высоких нагрузок? 8 февраля в 20:00 — «Как сделать распределенное хранилище на Tarantool Cartridge» На уроке мы напишем распределенное и отказоустойчивое in-memory хранилище данных, используя фреймворк Tarantool Cartridge Для регистрации на занятие пройдите вступительный тест — https://otus.pw/DwLn/ 22 февраля в 20:00 — «Введение в высокие нагрузки» На уроке проанализируем, в каких единицах можно измерять нагрузку, рассмотрим преимущества и недостатки различных подходов к масштабированию, а также проблемы высоконагруженных проектов. Для регистрации на занятие пройдите вступительный тест — https://otus.pw/cIU3/ Уроки рассчитаны на веб-разработчиков, тимлидов команд веб-разработки, архитекторов, технических руководителей и специалистов, которые интересуются SRE или работают в этой области. Для участия нужно определить свой уровень подготовки с помощью теста. Бонус: после записи на урок вы получите 20 записей прошедших вебинаров курса Реклама «Отус Онлайн-Образование» LjN8KXE8o

Интеграция Primefaces в приложение на Spring Boot. Часть 5 — Вывод данных для просмотра и редактирования Описывается пример интеграции библиотеки компонентов пользовательского интерфейса Primefaces, построенной на основе фреймворка JavaServer Faces (JSF), в MVC приложение на Spring Boot. Первая часть | Вторая часть Третья часть | Четвертая часть Читать: https://habr.com/ru/post/713844/?utm_campaign=713844

Как поместить весь мир в обычный ноутбук: PostgreSQL и OpenStreetMap Когда человек раньше говорил что он контролирует весь мир, то его обычно помещали в соседнюю палату с Бонапартом Наполеоном. Надеюсь, что эти времена остались в прошлом и каждый желающий может анализировать геоданные всей земли и получать ответы на свои глобальные вопросы за минуты и секунды. Я опубликовал Openstreetmap_h3 - свой проект, который позволяет производить геоаналитику над данными из OpenStreetMap в PostGIS или в движке запросов, способном работать с Apache Arrow/Parquet. Первым делом передаю привет хейтерам и скептикам. То что я разработал - действительно уникально и решает проблему преобразования и анализа геоданных используя обычные и привычные инструменты доступные каждому аналитику и датасаенс специалисту без бигдат, GPGPU, FPGA. То что выглядит сейчас простым в использовании и в коде - это мой личный проект в который я инвестировал свои отпуска, выходные, бессонные ночи и уйму личного времени за последние 3 года. Может быть я поделюсь и предысторией проекта и граблями по которым ходил, но сначала я все же опишу конечный результат. Первый пост не претендует на монографию, начну с краткого обзора... Читать: https://habr.com/ru/post/714326/?utm_campaign=714326

МТС перевела «Щелкунчика» на пять языков программирования Участники хакатона МТС «ЩЕЛКУНЧИК. Меньше слов — больше кода!» пере
МТС перевела «Щелкунчика» на пять языков программирования Участники хакатона МТС «ЩЕЛКУНЧИК. Меньше слов — больше кода!» переводили текст сказки Гофмана на Python, Java, JavaScript, C# и Go. Читать: «МТС перевела «Щелкунчика» на пять языков программирования»

Top 5 Programming languages for Backend development Hello folks, if you are wondering what are the best programming language
Top 5 Programming languages for Backend development Hello folks, if you are wondering what are the best programming language for backend development then you have come to the right place. Earlier, I have shared the best programming languages for beginners and today, I am going to share best programming language for backend development. My choices are based upon my own experience as well as what I have seen in job markets and other companies. To end the suspense, Java is the best programming language for backend development. It is used by both big and small companies for creating solid and scalable backend which can withstand high volume. I have seen Java used heavily on Investment banks in all kind of projects and most of the server side projects are done using either Java or .NET and C#, the second most popular programming language for backend development. Java Interview questions and tutorials Read: http://www.java67.com/2023/02/top-5-programming-languages-for-backend.html