• 0 Posts
  • 17 Comments
Joined 1 year ago
cake
Cake day: June 25th, 2023

help-circle

  • Even between Linux on x86 and Linux on x86. Thing was running fine for months, I make a small change, test, deploy to staging (same machine as prod, so that helped), and suddenly some library deep in the bowels of the app says that it can’t start a thread. Runs on my machine though. Turns out to be some incompatibility that had to be fixed by excluding seccomp. Version updates can be a bitch.




  • tgv@programming.devtoProgramming@programming.devConsider SQLite
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    1 year ago

    Are you Larry Ellison? Because then your remarks would suddenly make sense.

    It’s really simple: if you can’t avoid spreading your database over many machines, sqlite is not the tool to use. Pick another one. Even if you can run it on a single server, but need authorized network access from multiple backends, it’s not for you (although there are some services built around sqlite that might help). Pick something else. But don’t hate a perfectly fine, well defined tool for existing.


  • It doesn’t even apply to the members of the project. It’s St. Benedict’s rule, and only chapter 4 of it, relating to the life in a monastery, but “No one is required to follow The Rule, to know The Rule, or even to think that The Rule is a good idea.” It has a whole bunch of good advice for living in a community, interspersed with religion. But if you work together on a project, “be not lazy” is not a bad suggestion. Nor is “Be a help in times of trouble”. Many of those concepts have been proposed in other religions or social contracts all over the world. And it cannot be taken too seriously: “Speak no useless words or words that move to laughter”

    As for programmers: Respect your seniors. Love your juniors.


  • Emacs is completely programmable. Everything is written in LISP, and everything can be overruled. You can make the ‘a’ key insert the character ‘a’, but 1 in a 100 times insert ‘b’. Emacs is the originator of incremental regex search, it had auto-complete long before even Visual Studio, and it has more than one way to use snippets. It doesn’t simply have levels of indent and regions, but an extensive org-mode that can do the weirdest things wit them. You can select a piece of text, pipe it through a shell command, and have it replace the original. It has a symbolic expression solver! But that comes at a price: emacs is complex. But if you want to have an idea of how flexible an editor can be, take a look. It’s still going strong, despite its age.





  • For awesome shortcuts, you need to look at emacs. But there are plenty useful shortcuts. Cmd-\ jumps to the matching bracket, cmd-click jumps to the definition of a symbol, cmd-F opens the find dialog with the currently selected text in the search field, there’s one to show the call hierarchy (but I never can remember the shortcut), etc. You can assign your own short cuts; I think I set or changed the collapse/expand region commands. If you go to Code > Settings > Keyboard shortcuts, you see them all.

    All commands are also available under cmd-shift-p, and it has a decent search function.


  • Over here, it’s customary that some HR rep tells you most of that. There usually is a handbook with all the rules, so they know it by heart.

    A question I find important is financial stability and outlook. How is the company doing? How’s the market? What’s the prognosis for staying afloat? Are they sure it will survive 1 year? 2 years? 5 years? These questions have different answers for different stages: a startup’s outlook can be determined by the need for VC capital, an established small-to-medium sized company depends on the state of the economy, so buffers are important.