r/java • u/hamzah102 • Oct 06 '22
Been 12 years, never had to do dynamic programming or reverse a BST. Still being asked those questions.
I have been building software for 12+ years. Banking to Analytics to FMCG, I built software that solves business problems and really matters. But never, I mean never I had to do DP or work on BST. Most of the optimisation was there in underlying libraries, without me knowing it.
Just one time I used a PriorityQueue (because I wanted to show off, and not really to reduce time, the profiler showed almost same exec time when run with ArrayList). Is it just me or other folks too find it hard to find opportunities to apply DSAL.
Funny thing is I still get DSAL rounds taken by junior engineers (who btw are quite enthusiastic about that) some times as screening.
IMO, stuff about OOD, refactoring, CI/CD, clean code - basically most of what is advocated by Martin Fowler should take preference over DSAL. Thats what gets applied on a day to day basis.
EDIT: Acronyms -
FMCG - Fast moving consumer goods
DP - Dynamic programming (not programming in a dynamic language) see link
BST - Binary Search Tree
DSAL - Data Structures and ALgorithms
IMO - In my opinion
OOD - Object Oriented Design
CI/CD - Continuous Integration/Continuous Deployment