DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library
Core Badge
Avatar

Dursun Koç

DZone Core CORE

Principle Software Engineer at Turkcell

İstanbul, TR

Joined Mar 2011

https://www.linkedin.com/in/kocdursun/

Stats

Reputation: 1057
Pageviews: 436.4K
Articles: 11
Comments: 8
  • Articles
  • Comments

Articles

article thumbnail
Hurley: A High-Performance HTTP Client and Load Testing Tool Engineered in Rust
Technical architecture, capabilities, and use cases of hurley, a project developed in Rust that functions as a general-purpose HTTP client and a performance testing tool.
February 20, 2026
· 1,696 Views
article thumbnail
The Chaos of Mismatched Ord and PartialOrd Implementations in Rust's BTreeSet
Using a practical example, explore a crucial issue in Rust's BTreeSet: the impact of implementing Ord and PartialOrd traits differently for the same type.
August 30, 2024
· 3,558 Views · 2 Likes
article thumbnail
Exploring Reactive Programming in Kotlin Coroutines With Spring Boot: A Comparison With WebFlux
In this article, we’ll delve into reactive programming using Kotlin Coroutines with Spring Boot, comparing it with WebFlux.
April 22, 2024
· 2,576 Views · 2 Likes
article thumbnail
The Pitfalls of Using General AI in Software Development: A Case for a Human-Centric Approach
Beneath the alluring surface lies a significant challenge: the difficulty of modifying General AI-based systems once they are deployed.
October 1, 2023
· 36,664 Views · 4 Likes
article thumbnail
A Guide To Taming Blocking Operations With Project Reactor
In this article, we will explore how to effectively handle situations where blocking operations are necessary within the context of Spring WebFlux.
August 24, 2023
· 3,207 Views · 3 Likes
article thumbnail
Logging Incoming Requests in Spring WebFlux
Enter the realm of logging input requests in Spring WebFlux, a critical foundation for both diagnosing issues and ensuring application security.
August 21, 2023
· 6,169 Views · 2 Likes
article thumbnail
Real-Time Streaming ETL Using Apache Kafka, Kafka Connect, Debezium, and ksqlDB
Clarify why we need to transfer data from one point to another, look at traditional approaches, and describe how to build a real-time streaming ETL process.
September 21, 2022
· 6,590 Views · 2 Likes
article thumbnail
Consuming Kafka Messages From Apache Flink
This article takes a look at how to consume Kafka messages from Apache Flink.
November 12, 2019
· 65,997 Views · 7 Likes
article thumbnail
Why You Should Avoid Using Exceptions as the Control Flow in Java
Ever used exceptions as the control flow in Java? Well, you probably shouldn't. Here's why.
Updated October 25, 2019
· 70,658 Views · 22 Likes
article thumbnail
Creating a Spring Boot Configuration Server Using a Database
Not many people talk about how to create a Spring Boot configuration server with a database as opposed to a file system or git repository. But here's how to do it.
Updated April 12, 2019
· 57,004 Views · 23 Likes
article thumbnail
Multicore Programming in Node.js
An explanation of how to use Node.js to take advantage of multicore CPUs with the Cluster API.
November 9, 2015
· 47,396 Views · 21 Likes

Comments

Why You Should Avoid Using Exceptions as the Control Flow in Java

Nov 05, 2019 · Dursun Koç

you are right, as we already discussed with @Cayo Souza, and @Ivan Karamazov, Optional would be a better solution. Besides I do not think that the solution without Optional is a terrible one.

Why You Should Avoid Using Exceptions as the Control Flow in Java

Nov 04, 2019 · Dursun Koç

Thanks for your comment :).

Firstly, I am not a person who hates exceptions. I think when there is an exceptional case we should use exception, but we should not use exception for control flow, otherwise, the exception becomes like the goto keyword.

When it comes to readability, every function should have one kind of return type, but if we use exception (regardless checked or not), our function will have more than one return type, either an exception or a data type. Besides I agree with your comment about using checked exceptions over unchecked ones.

Why You Should Avoid Using Exceptions as the Control Flow in Java

Nov 04, 2019 · Dursun Koç

I see you, you mean the `findUserNoEx` method is problematic. how about this one, or do you have something else in your mind?

private static String findUserNoEx(String name) {
return name == null ? "" : name;
}

Why You Should Avoid Using Exceptions as the Control Flow in Java

Oct 29, 2019 · Dursun Koç

As stated in the article, if it is an exceptional case then use exception, if it is not, then check your design.

Why You Should Avoid Using Exceptions as the Control Flow in Java

Oct 29, 2019 · Dursun Koç

returning null would cause another null check on the client. Think "" as a default value. Afterall I think "Optional" would be a better solution.

Creating a Spring Boot Configuration Server Using a Database

Apr 12, 2019 · Dursun Koç

sorry for late response:

here you can find a sample project

https://github.com/dursunkoc/samplespringbootdbconfigserver


Multicore Programming in Node.js

Nov 13, 2015 · Dursun Koç

Thanks for your advices, I have just edited sample codes for indentation.

I think i missed to mention that my OS is windows and RR is not the default scheduling policy.

This article is a gentle introduction, so I did not mention about the setupMaster. Maybe in a detailed article we can discuss setupMaster as well.

Multicore Programming in Node.js

Nov 10, 2015 · Dursun Koç

on the clientside you don't need to care about the failover, besides on the serverside if any of the child process dies, then the cluster module will forward requests to the existing ones; also it will emit the 'exit' event, so you can catch up this event re-start the died process again, watch the following code.

cluster.on('exit', function(worker, code, signal) { console.log('worker %d died (%s). restarting...', worker.process.pid, signal || code); cluster.fork(); });

User has been successfully modified

Failed to modify user

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook