18 subscribers
40 photos
7 videos
2 files
54 links
In this channel, I will wrote my personal thoughts, experiments on different PLs and mathematics
Download Telegram
Fixing long-term bugs is not so easy in production😁 Just running 6776 delete queries
🗿1
maxProfit :: [Int] -> Int
maxProfit (p:ps) = fst . foldl go (0, p) $ ps
where
go :: (Int, Int) -> Int -> (Int, Int)
go (profit, minPrice) price = ( max profit (price-minPrice)
, min minPrice price)


vs

class Solution {
public:
int maxProfit(vector<int>& prices) {
auto [profit, price] = std::accumulate(
prices.begin()+1, prices.end(),
std::make_pair(0, prices[0]),
[](std::pair<int, int> acc, int price) {
return std::make_pair(
std::max(acc.first, price-acc.second),
std::min(acc.second, price)
);
}
);

return profit;
}
};


CPP is an absolute nightmare
Prime numbers and π are keys to our world secrets💀
After adding this label into my profile, none of HRs is not writing to me😂
😁3
Haskell has so so so good type-system and even crazy AI can write a project in a seconds 👻
Origin: Garbage collection was invented by American computer scientist John McCarthy around 1959.
Language: It was specifically designed for the Lisp programming language to automate the management of memory for its characteristic list-based data structures.


Functional programming languages are GOAT I think
😭😭😭
🤣1
Day to day I am understanding how good Haskell's approach to software development🙃
🔥2
LOL
I am not in LinkedIn anymore💔
😁1
λ
Photo
Early years of my career, I was interested in writing articles, doing streams. But now everyone will use LLM instead of searching and learning something. LLM is developing reduced attention span among engineers as like TikTok, Instagram does. Hope everything should be ok🫠

And I do not have any ideas what about to write
Using primitive types is shooting yourself in the foot. One missing check and you will loose your all logic🤧🤧🤧

Even with Haskell or Rust's strong type system, you will end up with dynamic language (JS or PHP) like result.

So, parse, do not validate guys