Programming

Functional Programming vs Object‑Oriented Programming

Functional Programming vs Object‑Oriented Programming

The debate of Functional Programming vs Object‑Oriented Programming has shaped software development thinking for decades. Should you model your system using classes, mutable state, and encapsulated data? Or is designing pure functions, immutable values, and composition a more scalable and maintainable approach?

Read more
Decorator Design Pattern in Java Example — step-by-step Programming tutorial on Progressive Robot

Decorator Design Pattern in Java Example

Decorator design pattern is used to modify the functionality of an object at runtime. At the same time other instances of the same class will not be affected by this, so individual object gets the modified behavior. Decorator design pattern is one of the structural design pattern (such as [Adapter Pattern](/community/tutorials/adapter-design-pattern-java "Adapter Design Pattern in […]

Read more
Булева логика в Go — step-by-step Programming tutorial on Progressive Robot

Булева логика в Go

Логический тип данных (bool) может иметь одно из двух значений, true (истина) или false (ложь). Булевы операторы используются в программировании для сравнения и для контроля потока процессов программы. Булевы операторы используются для представления значений истины, связанных с…

Read more
Java String to Uppercase — step-by-step Programming tutorial on Progressive Robot

Java String to Uppercase

URL: https://www.progressiverobot.com/java-string-to-uppercase/ Java String to uppercase conversion can be done using toUpperCase() method. Java String to UpperCase Java String toUpperCase() method has two variants – toUpperCase() and toUpperCase(Locale locale). Conversion of the characters to upper case is done by using the rules of default locale. Calling toUpperCase() function is same as calling toUpperCase(Locale.getDefault()). Java String […]

Read more
Información sobre tipos de datos en Go — step-by-step Programming tutorial on Progressive Robot

Información sobre tipos de datos en Go

En los tipos de datos se especifica el tipo de valores que se almacenarán en determinadas variables cuando escriba un programa. En ellos también se determinan las operaciones que se pueden realizar en los datos. En este artículo, repasaremos los tipos de datos importantes…

Read more
Java Write to File - 4 Ways to Write File in Java — step-by-step Programming tutorial on Progressive Robot

Java Write to File – 4 Ways to Write File in Java

URL: https://www.progressiverobot.com/java-write-to-file/ Java provides several ways to write to file. We can use [FileWriter](/community/tutorials/java-filewriter-example), [BufferedWriter](/community/tutorials/java-bufferedwriter), java 7 [Files](/community/tutorials/java-files-nio-files-class) and [FileOutputStream](/community/tutorials/java-fileoutputstream) to write a file in Java. Java Write to File ![java write to file, write file in java](images/java-write-to-file-section-1.png) Let's have a brief look at four options we have for java write to file operation. FileWriter: […]

Read more
How To Use Contexts in Go — step-by-step Programming tutorial on Progressive Robot

How To Use Contexts in Go

When developing a large application, it can be helpful for a function to know more about the environment it’s being executed in aside from the information needed for a function to work on its own. To help with this, Go includes a context package in its standard library. Learn to create a Go program that uses a context within a function. You’ll also store additional data in the context and retrieve it from another function. Finally, you’ll explore methods for ending a context.

Read more
java.lang.NoClassDefFoundError — step-by-step Programming tutorial on Progressive Robot

java.lang.NoClassDefFoundError

URL: https://www.progressiverobot.com/java-lang-noclassdeffounderror/ java.lang.NoClassDefFoundError is runtime error thrown when a required class is not found in the classpath and hence JVM is unable to load it into memory. java.lang.NoClassDefFoundError NoClassDefFoundError is a runtime error, so it's beyond our application scope to anticipate and recover from this. java.lang.NoClassDefFoundError is a runtime error, it never comes in compile […]

Read more
Java Heap Space vs Stack - Memory Allocation in Java — step-by-step Programming tutorial on Progressive Robot

Java Heap Space vs Stack – Memory Allocation in Java

URL: https://www.progressiverobot.com/java-heap-space-vs-stack-memory/ Sometime back we wrote a couple of posts about [Java Garbage Collection](/community/tutorials/java-jvm-memory-model-memory-management-in-java) and [Java is Pass by Value](/community/tutorials/java-is-pass-by-value-and-not-pass-by-reference "Java is Pass by Value and Not Pass by Reference"). After that we got a lot of emails to explain about Java Heap Space, Java Stack Memory, Memory Allocation in Java and what are the […]

Read more
CHAT