News for hackers. Stuff that matters.
Re:I Fell in Love with Erlang by imglorp on Tuesday November 11, 2025 @08:06AM (#45886845)
> “How can you sum the numbers from 1 to 10 without using a loop?”

Sum = n(n+1)/2

Re:I Fell in Love with Erlang by KingMob on Tuesday November 11, 2025 @08:37AM (#45887138)
Yeah, I assume it's missing some context that the numeric solution was off the table.
Re:I Fell in Love with Erlang by javcasas on Tuesday November 11, 2025 @08:59AM (#45887325)
When all you know is hammers, all you can think of are nails. Screws are impossible to use and understand. How are you supposed to hammer in a screw? All those ridges are in the way!
Re:I Fell in Love with Erlang by FredPret on Tuesday November 11, 2025 @02:12PM (#45891465)
Not even Erlang can beat Gauss
Re:I Fell in Love with Erlang by robochat on Tuesday November 11, 2025 @04:38PM (#45893233)
I remember being amazed when I learnt about summing arithmetric series.