• 63 Posts
  • 2.39K Comments
Joined 2 years ago
cake
Cake day: July 8th, 2023

help-circle

  • Crack tip number 1: The desktop environment you use is independent of the distribution. You don’t have to switch to an entirely different distro if you don’t like Gnome or KDE or LXDE or whatever. On 90% of distros installing another desktop environment is one command away.

    Crack tip number 2: If you want to know what a command does run man command or google that. Use the arrow keys to scroll up and down /searchterm to search for a word and q to exit.

    Crack tip number 3: Ask for help on Lemmy.



  • Had a programmer like this when I was still an apprentice. He was so full of himself. Was originally a Java programmer but had to program in PHP because that was what ran on the server. I never found out why he couldn’t just put Java on the server. We had full control.

    All his variables were first names. Like $klaus and $grobi. Because he was afraid of clashing with reserved keywords. The thing is, in PHP all variables begin with $ exactly to prevent this issue. So he brought that habit over from Java which was far superior and not such a “Mickey Mouse language”.

    I mean, he wasn’t totally wrong, especially back then PHP was awful. But he surrounded every function with <?php and ?> (PHP was designed to be combined with HTML output outside of these tags) and had plenty of whitespace between them and couldn’t fathom why all his html files had huge swaths of whitespace at the start.

    His way of preventing SQL injection was to look for SQL keywords in user input and then throwing an error in the log files.








  • Meh, I don’t see this as a problem. People already crosspost into multiple relevant communities. If anything doing so with one post is a feature that’s missing from Lemmy/Piefed. Or is it missing? I’ll try posting into multiple communities after this comment.

    It seems to me that your problem is more aesthetic in nature. Maybe ask your favourite UI to make a feature to hide mentions and hashtags that are alone on their line.