Better HN
topnewbestaskshowjobs
Log inSign up

deterministic

2,860 karma · joined Feb 27, 2013 (13y ago) · 3,465 submissions

Submissions

comment 4y ago · link · parent

Years ago at university I wrote a small 2D circuit board drawing system in Fortran running on some old IBM mainframe computer. Only the first 6 characters of function names mattered so I ended up using the first 2 characters as the module/namespace and carefully encoded the next 4 characters as needed. I had never programmed in Fortran before but it was easy to learn. Fun times.

The company I work for is still using old Fortran code to simulate how long it takes for trains with a certain load to get from A to B given a sequence of gradients. I bet small bits of Fortran still lives inside many systems written in C/C++.

comment 4y ago · link · parent

Lambda Calculus is a much better representation of computation than Category Theory. I can teach somebody functional programming using Lambda Calculus fairly quickly. It would take a lot longer using Category Theory. I have studied quite a bit of Category Theory but I would still struggle to explain beta-reduction using Category Theory. Another better system to use IMHO is Martin Luff style Type Theory. Much simpler. Much more useful in practice.

comment 4y ago · link · parent

There is a lot of software out there written in C. All of which needs maintenance. At work new C code gets checked in every day for software that runs major companies around the world.

Having said that, I would never recommend C as the language of choice for new projects.

comment 4y ago · link · parent

For people who hate going to the gym but want to get stronger/healthier I recommend the book “Body by Science”. I have more than doubled my body strength following it. And only spending 15 min a week in the gym (!)

comment 4y ago · link · parent

I highly recommend writing your own Lisp from scratch. It is a fun project! I have done it more than once and in different languages.

comment 4y ago · link · parent

Yep that must be a new record :)

comment 4y ago · link · parent

Agda is a really interesting language. A great way to learn the power of Dependent Types.

comment 4y ago · link · parent

Every additional hour you work without getting paid is effectively reducing your hour rate. So the harder you work the less you get paid per hour. Sorry but that’s not very smart. If the company doesn’t want to pay you for the extra hours then those extra hours clearly aren’t necessary. And if the company “can’t afford” to pay then negotiate something else instead. WFH, extra paid vacation days etc.

comment 4y ago · link · parent

Take it as an opportunity to learn new skills and work on your own projects.

comment 4y ago · link · parent

Not so fast! Search Banjo Kazooie on YouTube and you will find recent videos with millions of views ;)

Which frankly amazes me. The game was released in 1998!

comment 4y ago · link · parent

Yep. But it’s more the LISP community that is fascinating to me than the LISP language :)

comment 4y ago · link · parent

> There are no other homoiconic languages with amazing REPL support.

True but nobody outside of the Lisp community cares. Not trolling just stating a fact.

comment 4y ago · link · parent

COBOL is still used in production so COBOL also isn’t dead?

comment 4y ago · link · parent

https://www.microsoft.com/en-us/research/blog/project-everes...

comment 4y ago · link · parent

An example of proven correct networking code:

https://www.microsoft.com/en-us/research/blog/project-everes...

This is the future.

comment 4y ago · link · parent

Show us the commercially successful wonderfull code you wrote using functional programming and you will be 1000x more convincing than anything you claim in an article or religious face-to-face debate.

For example, there are hundreds of glowing articles written about Lisp, making all kinds of amazing claims about the superiority of the language and the superior intelligent of people using it. However very little commercially successful software is written in Lisp. Making those claims laughable and not convincing at all.

Less talking more walking!

comment 4y ago · link · parent

The advantage of Codegen is that it works for any language. Whether the language has macros or whatever. Another advantage is that you can generate code for multiple languages (say Typescript and C#) from the same spec, making sure the client/server code stays 100% in sync.

Codegen is my favourite super productivity tool. I routinely write production code where only the core biz logic is hand coded. The rest is fully automated. Most Excellent!

comment 4y ago · link · parent

Codegen is a super power. It has consistently made me 5 to 10 times more productive compared with experienced developers I have worked with.

I have more than once implemented production code where 80% of the code is generated. With only the biz logic hand coded. Including a complex 50+ screen Typescript application developed from scratch in just 3 months.

However, as with any other tool, you have to use Codegen intelligently to get the benefits. I have more than once seen Codegen being used really badly. Making the people using it think that Codegen is always a bad idea. Codegen is a complex tool and there are many ways to use it incorrectly.

comment 4y ago · link · parent

Not at all. Smart companies knows that offering WFH will attract more and better developers. It is a massive competitive advantage. I will personally never work for a company that doesn’t offer WFH. I am not the only one.

comment 4y ago · link · parent

Of course productivity plunges when people return to offices.

The #1 reason are incompetent middle managers who doesn’t know how to manage people without constantly interrupting them with endless BS meetings and unnecessary status reporting. There are companies where 80% of developer time is spent in meetings.

Another reason is that people are now exposed to arrogant and toxic co-workers who will drain your soul by their mere presence. A toxic manager/co-worker can easily destroy your motivation.

comment 4y ago · link · parent

I am happier, more productive, less stressed, using better equipment, and working in an office that doesn’t suck. What’s not to love?

The only losers IMHO are incompetent middle managers who doesn’t know how to manage based on results instead of endless BS meetings and time-spent-looking-busy. However I have zero sympathy for those. Their salary money is better spent hiring more developers.

comment 4y ago · link · parent

The Lambda Calculus. So simple. So powerful. Still studied today.

comment 4y ago · link · parent

“Productivity” is as useless as “GDP” when it comes to measure anything important.

comment 4y ago · link · parent

Yes of course! What works for one group of developers might not work for another group of developers. The projects and experience levels in this industry are too varied to make one-size-fits-all work.

So any practice/idiom that doesn’t carefully spell out the context in which it works should be ignored or at least treated with caution.

And any developer who makes claims about X being “always best practice” or “always best solution” are basically self-identifying as inexperienced/arrogant/not-smart/treat with caution.

comment 4y ago · link · parent

Every so called “DevOps” person I have worked with turned out to be an arrogant and failed programmer who made an absolute mess out of everything they touched. While spending months doing it. And when they eventually left/got fired we would rip out their work and put a much simpler/easier to maintain solution in place instead.

comment 4y ago · link · parent

I highly recommend learning Idris if you want to understand the power of Dependent Types. The book “Type Driven Development” is an excellent guide.

comment 4y ago · link · parent

Fair enough. And let me add that sometimes refactoring for me means completely rewriting a sub-module or sub-system. It is safe to do as long as I have good solid tests to compare before/after.

comment 4y ago · link · parent

Rich Dad Poor Dad. It completely changed how I view the world of personal finance and has already changed my future for the better.
1
383940
116