Better HN
topnewbestaskshowjobs
Log inSign up

deterministic

2,859 karma · joined Feb 27, 2013 (13y ago) · 3,460 submissions

Submissions

comment 2y ago · link · parent

SQLite is the SQLite of queues. Simply use a table per queue. And use your choice of SQL to implement the types of queues you want.

comment 2y ago · link · parent

No it is the right advice. The key is to improve yourself and make yourself more attractive. Accomplish more, work out, become more capable, make more $ etc.

I did that myself by improving my diet, doing kick boxing, get educated, interact more with woman etc. It worked.

If you don’t, you will end up with a partner who loves your fake persona and not you. Forcing you to continue living a fake life. That is not a healthy way to live.

comment 2y ago · link · parent

Standing up all day is really bad for you. Much worse than sitting.

comment 2y ago · link · parent

Don’t believe the BS. Simply make sure you stretch the inverse sitting position every day for 5 min and go for a 30 min walk. It solved all my sitting problems. Sitting down is a great way for you to relax and focus.

comment 2y ago · link · parent

Nope. Sitting down is a great way for you to rest and focus.

The real problem is that when you regularly put your body into any specific position for a long time, you really need to stretch the opposite position to make sure your muscles stay flexible instead of locking up.

I spend a lot of time sitting at work and home. So I make sure I always inverse the stiffing muscles by stretching the inverse position. Just stretching 5 min a day (and going for a 30+ minute walk) fixed the problems I previously had.

comment 2y ago · link · parent

Building a small language is super easy. You can even just use JSON as a functional but ugly stand in for the syntax. However I usually just write a quick recursive descendant parser. It is easy and quick to do once you know how to do it.

comment 2y ago · link · parent

Another approach that might work for some people is to quickly build a “block” prototype game. Basically the complete game but using boxes and quick prototype box levels to make a “completely finished” game that is ugly and unsellable but playable.

You can then iterate step by step improving the things that sucks the most, playing the game as it improves.

The huge advantage is that you will be playing the game right away and have years to refine the gameplay and come up with better ideas. And if the game is fun to play, even with ugly boxes, you know the final game will be great. It’s a great motivator.

comment 2y ago · link · parent

Because it takes years to become good at C++. Python and Java are relatively simple languages to learn.

comment 2y ago · link · parent

> Do things in the most straightforward way possible

Everybody agrees with this. Nobody actually does it. With very few exceptions (in my 30+ years of experience).

And the secret is that it is a 1000x productivity super power. If you learn this skill you will be far more productive.

For example: A developer I know recently implemented a real-time instant fail over hot backup/server system in 2 weeks. Because the architecture he had chosen for the system made it easy. Another developer (when asked) said that doing the same for the system he worked on would require a complete rewrite of the system. Because of different architectural choices.

In other words, it is most definitely true that some developers, by making better choices, can be 1000x more productive than other developers. They don’t type faster or have a higher IQ. They “simply” decide to not make things complex.

However it is not easy to make better architectural choices. You actually need to deeply study software architectures, and implement toy examples, to truly understand what “simple” means and the trade offs involved. Most software architecture articles are garbage.

comment 2y ago · link · parent

I don't know. I have been trying to hire an experienced C++ developer for 6+ months and the market seems to be dry.

And we don't play stupid question games when interviewing. Candidates are asked to review and find bugs in 2 pages of really bad C++ code. And to walk us through how they would solve a more high level production problem.

I get plenty of CVs from Python or Java developers who thinks that knowing Python or Java makes them experienced C++ developers. Eh no it doesn't.

comment 2y ago · link · parent

I hear the “marketing” argument all the time and I don’t buy it. Lisp (for example) has been promoted heavily for 60+ years by generation after generation of enthusiasts. And it hasn’t convinced the mainstream to switch.

And meanwhile C and C++ code runs the world. Without any commercial marketing behind it.

comment 2y ago · link · parent

You can use tailored DSLs in any language. Not just Lisp.

I do it all the time. It is a huge productivity boost.

An example is a biz application I recently delivered to a large international customer. More than 90% of the C++ and Typescript code was auto generated from a simple declarative spec. The only custom code was the customer specific biz logic and custom interface logic to external tools.

Yes it isn’t generated with macros Lisp style but it works equally well.

comment 2y ago · link · parent

I know this is hard to accept for people enthusiastic about a language X (Forth/Lisp/Haskell/..) that hasn’t entered the mainstream despite years of salesmanship and promoting from X people:

There is a reason why it hasn’t happened (obviously).

It might not be for reasons X people agree with or value. However those reasons are important and valuable enough for non-X enthusiasts to bounce off X.

And to make matters worse, the typical reaction from X enthusiasts is to then claim that non-X developers are not smart enough to “get it” or that somehow people using X are smarter than non-X developers. Claims that are so obviously ridiculous that it makes non-X people bounce even harder off the X community.

I personally love learning new languages. And have written compilers for a few of my own. However that’s all fun and games. Not something I would use in anger for my day job where I have to work in a team and deliver highly complex software for large corporation that relies on my code to run their business.

However having said all that, Forth is really cool and fun to play with. I love minimum languages! Lisp is another fun one. Or the lambda calculus. All great fun languages!

comment 2y ago · link · parent

There is no software crisis. I have worked on software for 30+ years and it is as easy/hard to write and maintain software today as it was 30+ years ago.

And we are creating software today that would absolutely blow the minds of software developers working 30+ years ago. Mostly because we have amazing abstractions that makes it possible to stand on the shoulders of giants.

All that is happening is that as we get better at writing software, we and our users demand more of it. So we will always be at the breading edge of not being able to deliver. But we still do. Every day.

comment 2y ago · link · parent

If a cell is a submarine, the mitochondrials is its crew.

comment 2y ago · link · parent

Doing the opposite works for me.

I always start out defining the ideal API I want to solve a problem and then solve the problem using the not-yet-implemented API. I then implement the API recursively by adding lower level API’s that makes it easy to solve the higher level API problem. And most of the time I already have a lower level API from a previous project I can easily reuse and perhaps expand.

So I don’t start with the database moving towards the biz logic. I start with the biz logic moving towards the DB (if needed). It works really well.

I think this is similar to how experienced Lisp developers work. Starting out defining a new “language” (a bunch of functions) that makes it easy to solve the problem and then recursively implementing it. However I work in C++ and Typescript not Lisp.

comment 2y ago · link · parent

Not my experience at all. My original design decisions rarely change fundamentally. And whatever small changes I decide to implement, I implement step-by-step with each step being a refactored improvement.

It probably helps that I have 30+ years of experience and always pick architectures I have used before on successful projects.

comment 2y ago · link · parent

It does exist. I experienced it interviewing for my current job and a previous job. But I do agree that it is probably rare.

comment 2y ago · link · parent

… with ready to use C code.

560.

HACL: A High-Assurance Cryptographic Library(github.com ↗)

2 points · by deterministic · 2y ago · 1 comment

561.

Milawa is a "self-verifying" theorem prover for an ACL2-like logic(cs.utexas.edu ↗)

2 points · by deterministic · 2y ago · 1 comment

comment 2y ago · link · parent

To the author: How "you" think is not how "we" think.

The tendency to assume that your preferences or tastes are globally shared is really puzzling to me. That has never been true and (most likely) never will be true.

comment 2y ago · link · parent

You are absolutely right. That's how I do it in my game project. Just ignore the ignorent downvoters.

comment 2y ago · link · parent

Simply not eating the SAD diet (Standard American Diet) of fast food, seed oils, and frozen dinners full of garbage will improve your health.

565.

How to Build a Satellite(youtube.com ↗)

6 points · by deterministic · 2y ago · discuss

comment 2y ago · link · parent

If you hate dating apps I highly recommend speed dating instead. I met the love of my life on my very first speed dating event. And previously had zero luck online dating.
1
181920
116