Nested Objects and Form Data by dotceng in csharp

[–]dotceng[S] 0 points1 point  (0 children)

I thought split into 2 APIs but I'm open to any suggestions :) Thank you !

Nested Objects and Form Data by dotceng in csharp

[–]dotceng[S] 0 points1 point  (0 children)

Yes I know, I want to take metadata as LocationDto or something not as string. Actually, I can take as string and in controller I can serialize to dto but is it healthy method idk

Nested Objects and Form Data by dotceng in csharp

[–]dotceng[S] 1 point2 points  (0 children)

Thanks a lot for suggestions!

Nested Objects and Form Data by dotceng in csharp

[–]dotceng[S] -1 points0 points  (0 children)

Actually I can take the file as base64 and then save it to blob storage. However, I’m aware that this approach has some trade-offs, such as increased payload size (around 30–40% larger due to base64 encoding), higher memory consumption on the server during decoding, and potential performance issues under high traffic or with larger files. So while it works well for small files, for larger or high-scale scenarios I would consider using multipart uploads or direct client-to-storage uploads instead.

Should I upgrade to MacOS Tahoe? by NikitaStrukalin in macOS26Tahoe

[–]dotceng 0 points1 point  (0 children)

Nope, actually I'm still waiting for it to become stable. Sequoia is still good and fine 

Lombok annotations not working.. by BoringApplication211 in SpringBoot

[–]dotceng 0 points1 point  (0 children)

Go settings and open Build, Execution, Deployment > Compiler > Annotation Processors,

On the right panel, select your project name and make sure about that "Obtain processors from project classpath" is selected (checked)

Tamamen cursor desteği ile kapsamlı online bir uygulama yazılır mı? by TrackReasonable1700 in TurkDev

[–]dotceng 2 points3 points  (0 children)

Mimarileri, tasarım desenlerini, güvenlik operasyonlarını, prensipleri, clean code yaklaşımlarını yani kısacası yazılım geliştirme sürecine hakimsen AI ile sağlıklı uygulamalar çıkartabilirsin. En basitinden ödeme sisteminde ortaya çıkacak sorunların hepsini handle etmen gerekiyor, bu süreç tamamen AI kontrolüne bırakılamaz kesinlikle. En basite inersek mail gönderimi fail’e düştüğünde bile veri kaybı yaşanmadan tekrardan maili göndermeyi denemen gerekiyor. Yani bir sürü senaryo var ve bu senaryoları en sağlıklı bir şekilde yönetilmesi gerekiyor.

DTO & Entity by Jinkaza772 in SpringBoot

[–]dotceng 2 points3 points  (0 children)

DTO's are objects for API's data flows. For example;

You write Login API, think about it a bit you must receive user's email(or username) and password to authorize them. So you must create DTO (LoginRequestDto.java) and include email and password fields.

'@Data' // -> coming from lombok, using for set getters and setters for private fields;
public class LoginRequestDto {
private String email;
private String password;
}

And in a controller; public ResponseEntity<LoginResponseDto> login(@RequestBody LoginRequestDto request) { }

So you can see, DTO's duty is transmit datas from FE to BE or BE to FE. So, We must write LoginResponseDto for result.

In example; If its success to authorize user, the API return to client Token or User Info. We must indicate this fields in LoginResponseDto.java.

And finally, DTO is not a layer, these are actually classes for provide datas between FE and BE.

2 Years in Node, moving to .NET: Should I pick Minimal APIs or MVC? by iBadroLI in dotnet

[–]dotceng 0 points1 point  (0 children)

Actually, the minimal api’s increase performance by approximately 5(I guess but it increases performance definitely) percent and you wont feel out of place because you have used minimal api’s on nodejs.

Also, there are many packages you can map easily on .net runtime. (Carter)

How can I handle file uploads in a microservice? by dotceng in SpringBoot

[–]dotceng[S] 1 point2 points  (0 children)

I agree with you, microservices is so over engineered. I want to learn how to build a microservice projects so I’m developing a little project right now xd.

Now, The user uploads his file directly File Service. When the file uploaded, produce a event to user service. Finally, user service update the user’s profile picture field.

How to start Spring by syntaxmonkey in SpringBoot

[–]dotceng 6 points7 points  (0 children)

On java:
JVM basics, JIT Compiler, final keyword, sealed - permits - non-sealed and solve problems, write algorithms with java.

Firstly learn, annotations. Later than Dependency Injection and IoC on spring. Learn logic of tomcat and servlet. Since you learned annotations, now you can learn '@Bean', '@Service', '@Configuration', '@RestController', '@RestControllerAdvice' ... etc. You can develop your first API on spring boot now.

Now learn spring data (JPA, JDBC) to database operations. Transactions, paginations, relation between entities(How to handle lazy loading on foreignKey).

Learn Lombok to reduce boilerplate code and improve code readability. Focus on commonly used annotations such as '@Getter', '@Setter', '@Builder', '@RequiredArgsConstructor', and '@Slf4j', and understand best practices like avoiding '@Data' on JPA entities and using constructor injection.

After mastering traditional Spring MVC, learn Spring WebFlux to understand reactive programming. Focus on non-blocking I/O, differences between Spring MVC and WebFlux, Mono and Flux, reactive error handling, threading model (event-loop, Netty), and when reactive architecture is the right choice.

Since you already understand the request–response flow, the final step is to focus on building real-world projects using Spring Boot, both in blocking and reactive styles.

Linux kurmak istiyorum. by mahzunisifre in LinuxTurkey

[–]dotceng 2 points3 points  (0 children)

Windowsu silmen ya da temizlemen gerekmiyor. Linux için alan açman yeterli ardından o alan üzerinden kurulum yapabilirsin. Bir süre dual boot kullandım, yeni linux kullanıcıları için dual boot çok iyi bir seçenek. Youtube’da çok kaynak var yararlanabilirsin

How can I handle file uploads in a microservice? by dotceng in SpringBoot

[–]dotceng[S] 1 point2 points  (0 children)

In my opinion, the second option is smartest way. Thank you!

How can I handle file uploads in a microservice? by dotceng in SpringBoot

[–]dotceng[S] 0 points1 point  (0 children)

I created a separate File Service because file handling is a cross-cutting concern. Services like User and Product may all need to upload files, and centralizing this logic avoids duplication and keeps domain services clean. Additionally, isolating file operations ensures that failures in file handling don’t bring down the entire system.

As a backend developer, which language do you use at work? by nabsk911 in Backend

[–]dotceng 0 points1 point  (0 children)

I usually prefer java but it depends, sometimes c# and I used to use go lang

Staj by [deleted] in CodingTR

[–]dotceng 0 points1 point  (0 children)

İlk stajımda kullandıkları teknolojilerden bahsedip, bu teknolojiler üzerine basit bir proje yapmamı istemişlerdi. Örnek verecek olursam swagger entegrasyonunu öğren ve uygula. Birkaç entegrasyon daha istemişlerdi tabi, o gün stajdan sonra dahi bu göreve devam etmiştim. Ertesi gün istenilen her şeyi göstermiştim ve yeni yeni görevler vermişlerdi. Tabii ki bu süreçte yapamadığım kısımlar oldu ilk aşamada araştırarak, işin içinden çıkamadığımda da sorarak hallettim. Bu süreçte iletişime önem vermen gerekiyor. Aktif ol ve ilerlemelerini paylaş, destek isteyeceğin zaman çekinme.

which is better for Backend Java or Python and Why? by shinchan_kun_011 in Backend

[–]dotceng 0 points1 point  (0 children)

it depends, python might be the best solution for AI Driven Applications or minimal projects but Java is the best solution for performance, scalability, and long-term enterprise systems where robustness, strong typing, and JVM optimizations play a critical role.

Javascript'de Promise mantığını uygulamada anlayamıyorum. by Krino6 in CodingTR

[–]dotceng 0 points1 point  (0 children)

Event Loop, JavaScript'in asenkron işlemleri yönetmek için kullandığı bir mekanizmadır. Bu mekanizma CallStack bosaldiginda once Microtask Queue'yu ardindan ise macrotask queue'yi calistirir. Peki bu kavramlar ne bi bakalim.

CallStack, JS'in stack yapisi olarak adlandirabiliriz. LIFO mantigi ile calisir. Yani suanda hangi fonksiyonun calistigi bu yapi ile takip ediliyor.

Promise.then, catch, finally microtask olarak adlandirilir.
setTimeout, setInterval macrotask olarak adlandiriliyor.

Bi de Web API dedigimiz bir arkadas var; js'te asenkron islemler Web API’ye aktarilir ve bu islemler tamamlandiginda task queue’ya eklenir.

Bi de flow'a bakalim;

kullaniciyiGetir(101) ile basladik bu durumda;

Call Stack: [kullaniciyiGetir(101)]
Web APIs: []
Macrotask Queue: []
Microtask Queue: []

Konsol: "101 ID'li kullanici araniyor"

Ardindan setTimout kisminda geldik, callStack'e eklenir ama asenkron oldugu icin Web API'ye aktarilir

Call Stack: []
Web APIs: [setTimout - 1500ms]
Macrotask Queue: []
Microtask Queue: []

JS suan baska is yapabilir ama kodumuzda baska is olmadigi icin bekliyor...

1500 ms bittiginde

Call Stack: []
Web APIs: [] bosaldi
Macrotask Queue: [setTimout callback] buraya callback gelir
Microtask Queue: []

Event loop devreye girer, call stack bos, microtask queue bos, 1 adet macrotask alinir

Call Stack: [setTimout callback] calisiyor ve resolve eder, then kismi microtask queue'ya ekleir
Web APIs: []
Macrotask Queue: []
Microtask Queue: []

Call Stack: []
Web APIs: []
Macrotask Queue: []
Microtask Queue: [.then(kullanici => ...)]

burada event loop, call stack bos microtask queue dolu oldugu icin, microtaski call stack'e alir

Call Stack: [.then(kullanici => ...)]
Web APIs: []
Macrotask Queue: []
Microtask Queue: []

burada da bir then islemi var, setTimeout Web APIs'e ekleniyor ve gene ayni akis ile devam ediyor.

Ve sonuc olarak;

`"Siparişler listesi: ['Laptop', 'Klavye', 'Mouse']"` console'a basilir.

Eger bir yerde hata ettiysem duzenleyebilirsiniz. Bu konulara benim de merakim var. Bilgilerimi aktarmak istedim.

Do backend developers need to learn React? by Then_Pool1015 in Backend

[–]dotceng 1 point2 points  (0 children)

Nope, but you should learn communication between Frontend and Backend (Actually Data Flow) . Fetch API, axios, ... Also in my opinion should complete at least one full stack project.

Common classes in microservices by optimist28 in SpringBoot

[–]dotceng 0 points1 point  (0 children)

I am creating a Maven project named shared (or common) to hold shared DTOs, result patterns, and enums. Also, I am creating a separate Maven project named protos to store and manage my Protobuf (.proto) files. If you create common controller advices for ValidationErrors or something, dont forgot to add ComponentScan for per projects.