fubo

@fubo@lemmy.world

No relation to the sports channel.

This profile is from a federated server and may be incomplete. View on remote instance

fubo ,

Ubuntu on Desktop I can understand.

Not anymore. A whole extra, unneeded, proprietary, locked-in package system. Ads in the default install.

There's Mint, Pop!, and plenty of other options that actually respect the user.

fubo ,

Remember SOAP? Remember XML-RPC? Remember CORBA?

Those were not very good.

'Don't parse markup languages with Regex' is an annoying trollpost and it should die... right?

Look 0 of my work involves HTML, well maybe 1-2 percent does; however, about 60% of my work involves regular expressions, grammar, lexical scanning and syntactic parsing, so it still irks me, and will irk me beyond my grave, when people say shit like 'Don't parse HTML/Markdown/etc with regex! Use a parser generator!'...

fubo ,

I'm confused. To me, "building a tree" and "parsing" are the same thing. If you end up with a tree representation of the structure of your document, the thing you did to get there is parsing.

fubo ,

Rust does memory-safety in the most manual way possible, by requiring the programmer prove to the compiler that the code is memory-safe. This allows memory-safety with no runtime overhead, but makes the language comparatively difficult to learn and use.

Garbage-collected compiled languages — including Java, Go, Kotlin, Haskell, or Common Lisp — can provide memory-safety while putting the extra work on the runtime rather than on the programmer. This can impose a small performance penalty but typically makes for a language that's much easier on the programmer.

And, of course, in many cases the raw performance of a native-code compiled language is not necessary, and a bytecode interpreter like Python is just fine.

fubo ,

Some other ways:

Cultivate bitterness.

Find the pessimists in your organization, and disappoint them.

Make mean cynicism a part of your workplace culture. Do this by example: Promote mean cynics and put them in charge of things. But do it also by conversion: Behave in a way that makes mean cynics' view of the world correct.

Reward bad personal habits to create internal conflicts between work and health.

If someone skips sleep to finish a project, give them a bonus. This gives them an internal conflict between approval and health, and teaches them that they can sacrifice their health to receive a reward.

Encourage a hard-drinking culture in teams that have stressful roles that demand team cohesion, like SRE or Ops teams with on-call requirements. This gives them an internal conflict between their support network and health.

If someone is sick, injured, bereaved, or otherwise suffering: Make it clear how much their condition is inconvenient to their coworkers, and how much their projects are impacted by their absence. Assure them that all will be well once they can conclude their personal problems and commit to the team. Do not, however, offer them any specific help; if they express specific needs for accommodation, disregard them as idle and unrealistic wishes.

fubo ,

The best code editor is the one that works well with your other tools, including both your compiler and your keyboard.

Corollary: If you use an unusual compiler or an unusual keyboard, this may change what the best editor for you is.

fubo ,

Any time you're turning a string of input into something else, what you are doing is parsing.

Even if the word "parser" never appears in your code, the act of interpreting a string as structured data is parsing, and the code that does parsing is a parser.

Programmers write parsers quite a lot, and many of the parsers they write are ad-hoc, ill-specified, bug-ridden, and can't tell you why your input didn't parse right.

Writing a parser without realizing you're writing a parser, usually leads to writing a bad parser. Bad parsers do things like accepting malformed input that causes security holes. When bad parsers do reject malformed input, they rarely emit useful error messages about why it's malformed. Bad parsers are often written using regex and duct tape.

Try not to write bad parsers. If you need to parse something, consider writing a grammar and using a parser library. (If you're very ambitious, try a parser combinator library.) But at least try to recall something about parsers you learned once way back in a CS class, before throwing regex at the problem and calling it a day.

(And now the word "parser" no longer makes sense, because of semantic satiation.)

By the way, please don't write regex to try to validate email addresses. Seriously. There are libraries for that; some of them are even good. When people write their own regex to match email addresses, they do things like forget that the hyphen is a valid character in domain names.

fubo ,

The only way to correctly validate an email address is to send a message to it, and verify that it arrived.

If you're accepting email addresses as user input (e.g. from a web form), it might be nice to check that what's to the right of the rightmost @ sign is a domain name with an MX or A record. That way, if a user enters a typo'd address, you have some chance of telling them that instead of handing an email to user#example.net or user@gmailc.om to your MTA.

But the validity of the local-part (left of the rightmost @) is up to the receiving server.

fubo ,

If DNS is transiently down, the most common mail domains are still in local resolver cache. And if you're parsing live user requests, that means the IP network itself is not in transient failure at the moment. So it takes a pretty narrow kind of failure to trigger a problem... And the outcome is the app tells the user to recheck their email address, they do, and they retry and it works.

If DNS is having a worse problem, it's probably down for your mail server too, which means an email would at least sit in the outbound mail spool for a bit until DNS comes back. Meanwhile the user is wondering where their confirmation email is, because people expect email delivery in seconds these days.

So yeah ... yay, tradeoffs!

(Confirmation emails are still important for closed-loop opt-in, to make sure the user isn't signing someone else up for your marketing department's spam, though.)

fubo ,

If someone sells something to you and then takes it back later, that is theft.

fubo ,

1993 or so, before kernel 1.0. Slackware on floppies, then Debian, then Ubuntu, then Mint, now Pop!_OS.

I got a rather profitable career out of it: went into IT during/after college, then got hired into a big Silicon Valley company, stayed in that area for several years, then quit during COVID.

fubo ,

Nazi furries have been a thing for years. The regular furries don’t like them.

fubo ,

Hotmail and Gmail have “mail” in the name, too.

As a beginner, how should I go about learning difficult concepts?

I’m trying to learn programming and something I struggle with the most is trying to separate code mentally into chunks where I can think through the problem. I’m not really sure how to describe it other than when I read a function to determine what it does then go to the next part of the code I’ve already forgotten how the...

fubo ,

Difficult concepts are made of simple parts. Find the parts. Find ways to play with them.

Example: TCP/IP performance is complicated, but you can look at specific parts of it like packet latency, retransmission behavior, and the various timeouts. Eventually you understand the “gears” of the system well enough that it’s obvious that if the minimum retransmission timeout is 100msec, that a single packet loss means your whole transaction cannot possibly have <100msec latency.

What got you into coding ? (aside from money)

To give some context, I’m a developer myself and once I had a conversation with someone who has not “tasted” programming, but was wondering about passion and career. I was asked what I like about programming. My answer was that my interest in it came from writing small scripts when I was young to automate things....

fubo ,

Seeing my dad show my mom a demo he’d written in assembly on the C-64.

Has anyone checked out marginalia search? ( search.marginalia.nu )

This is not an ad BTW, I literally stumbled upon it a few minutes ago. From what I can gather, however, this is a [DIY-ish] search engine that solely searches on text (no other forms of media, such as, … idk hypertext maybe), which allows users to have more control over queries (like including and excluding terms). I suppose...

fubo ,

They don’t index Wikipedia. Why not?

Fediverse sustainability

I prefer good faith discussions please. I love the Fediverse and love what it can be long term. The problem is that parts of the culture want nothing to do with financial aspect. Many are opposed to ads, memberships, sponsorships etc The “small instances” response does nothing to positively contribute to the conversation....

fubo ,

The “financial aspect” is much smaller than you seem to think.

It is not that expensive to run a server, and there are lots of people willing to contribute. You can look at the previously posted expenses and donations information from the lemmy.world admins.

You might be telling yourself these things are difficult and expensive because you don’t know, and precaution leads you to overestimate the actual costs and difficulty. That is fine when you’re making choices for yourself, but it reliably produces incorrect results if you try to apply it to the world at large. In reality, there are lots of people out here who know how to run Internet services; and some of them have set this one up pretty well.

fubo , (edited )

Look at the actual numbers.

In August, total expenses = €1205, total donations = €2649

People want this thing to work and are willing to donate to make it happen. And again, it’s not as expensive to run as you seem to think.

fubo , (edited )

Could you explain in detail how you, personally, are helping?

Or, more generally, on what basis do you think you know better?

fubo , (edited )

I’d suggest the “complex internal politics, manager layers, architects” – and the fancy offices, cafeterias, and other amenities – are actually quite a lot more expensive than the developers.

But don’t underestimate ads, and things that are similar to ads. In competitive markets, ads are really expensive, because ads are rivalrous. Venture A has to outbid Venture B for ad placement. The same sort of logic goes for hiring, especially hiring of trend-driven fields like project management. (“I’m a Scrum Master, who are you, a scum master?”)

fubo ,

One note: It’s pretty rare for tech companies to directly issue profits to shareholders (i.e. as dividends). Rather, profits are usually reinvested into expanding the company; and shareholders make money by selling shares that have risen in value.

fubo ,

Facebook doesn’t have a lot of reason to go be telling exactly the truth there …

fubo ,

Maybe Facebook has bigger problems because they’re so huge; like being a bigger target for attack by hate groups.

Maybe they just really like their fancy offices and cafeterias.

Maybe it’s just better for the world if online speech is diversified over lots of small services instead of one monopoly service; and this is reflected in the way the world actually behaves towards these different services.

fubo ,

Google already tried doing code hosting once. It didn’t work out.

code.google.com/archive/

fubo ,

“Hey, George? Can you send me a hundred bucks?”
“Password ass-sword? Gay geek goat god goon gout, Galaga Gaelic Gorky?”
“Hemp hops hoop harangue horny hope hobags, hyper Hungarian hippies.”
“Infinite Ixian idiots incinerate imbeciles in interesting inquisitorial igloos.”
“Just joking! Jerboas jaunt jerkily, just juxtaposing jinn, janky jobs, and jalopies.”
“What’s the password?”
“Always Swordfish.”
“Okay fine, come on in.”

fubo ,

Put another way, spam sites have become more effective at defeating anti-webspam measures.

fubo ,

If you’re not paying that engineer, you have no good reason to form opinions about “where they belong” in terms of work they do that might benefit you.

fubo ,

You can explore a GUI if it’s safe to do so. If a user has been burned by easily putting their system into an unrecoverable state, they develop a fear of exploring. “I don’t want to change anything; I might break my computer / lose all my work / get a virus!” is a really common fear.

fubo ,

One alternative to both raw SQL and and ORM is a query builder, a procedural library for constructing database queries. Query builders typically don’t have the object/relational “impedance mismatch” of ORMs; they don’t encourage you to pretend that records in the database are the same as objects in your code. But they give you a syntax that looks more like your programming language, and automatically handles escaping (and thus, resistance to injection attacks).

However, query builders often don’t expose all the power of your database. If you’re using PostgreSQL, you’ve got one hell of a powerful set of tools in there. It’s often worth spending the time to master them just so you don’t end up reinventing the stone-age wheel on top of a warp-speed hovercraft.

fubo ,

It’s better that vulnerabilities be discussed openly. In general, people knowing the truth allows them to make better decisions.

fubo ,

enterprises

… can pay engineers, rather than expecting volunteers to fix everything for them.

fubo ,

Handling real money requires real identities.

fubo ,

If you want Windows, you know where to find it.

fubo ,

One issue with IRC is that there’s no archiving by default. That means discussions and context for decisions are lost. This can be fixed, though. But the default setup for social chat isn’t optimal for project planning.

fubo ,

“Open source” in the sense this article uses is not really the same as “open source software” which is what this forum is about. Open source journalism does not refer to copyright license terms.

fubo ,

The more ritual and incense-waving you wrap around your work, the more likely it is that someone is going to spend all their time on ritual and incense-waving and none on actually creating value.

fubo , (edited )

Fascists aren’t morally healthy humans. Authoritarians can’t cope with social reality, where different people can have different opinions and loyalties and yet support each other. They always seem to end up succumbing to patriarchal cults, where Lenin-Hitler-Mao-Trump gets to do whatever he wants to your sons and your daughters, and you and your working class have no recourse.

fubo ,

Two pieces of technology are behind the Internet as we know it today.

Neither one is patented.

They are TCP/IP and Linux.

All the network traffic runs over TCP/IP.

95%+ of the servers run Linux. So do the Android phones and Chromebooks.

Clearly, patent protection in software is not required for society to benefit greatly from technological innovation in software.

fubo ,

Linux isn’t a patentable thing.

Yes, that’s been true so far. Are you sure it’s true under the newly proposed law?

fubo ,

“TCP/IP” is conventionally used to indicate the whole protocol suite; including UDP, ICMP and sometimes even ARP.

fubo ,

It’s not that TCP is a catch-all term, but “TCP/IP” is often used that way.

en.wikipedia.org/wiki/Internet_protocol_suite

The Internet protocol suite, commonly known as TCP/IP, is a framework for organizing the set of communication protocols used in the Internet and similar computer networks according to functional criteria. The foundational protocols in the suite are the Transmission Control Protocol (TCP), the User Datagram Protocol (UDP), and the Internet Protocol (IP).

For that matter, the classic networking text by Douglas Comer is Internetworking with TCP/IP and it does cover UDP, ICMP, ARP, DHCP, DNS, etc.

fubo , (edited )

KoboldAI has an “KoboldGPT” mode, which is for answering questions. You can try it at lite.koboldai.net or run it on your own.

Here’s an example conversation I just had with it (emoji icons added):


🤖 Hello, I am KoboldGPT, your personal AI assistant. What would you like to know?

🧑 What is the name of the original version of the game Monopoly?

🤖 The original version of the game Monopoly is called “The Landlord’s Game.” It was created by Elizabeth Magie in the early 20th century. However, the most well-known version of Monopoly today is based on a variant called “Monopoly” that was designed by Charles Darrow in 1935.

🧑 Did “The Landlord’s Game” have any purpose besides being a board game?

🤖 Yes, “The Landlord’s Game” had a specific purpose beyond being a board game. Elizabeth Magie created it as a way to illustrate the negative aspects of concentrating land in private monopolies. She believed that it could be used as a tool for teaching economic concepts such as rent, taxes, and the distribution of wealth.

🧑 What economic ideology was associated with this game?

🤖 Elizabeth Magie was influenced by Henry George’s philosophy of Georgism. Georgists believe that land should belong to all people equally, and that taxation should be based on the value of land rather than on income or production.

fubo ,

XDG = X Desktop Group.

OpenSSH is neither an X client nor a desktop program.

fubo ,

A Google spokesperson told Motherboard in a statement at the time of the unionization that it had “no objection to these Cognizant workers electing to form a union,” but that it would not bargain with them. “We are not a joint employer as we simply do not control their employment terms or working conditions—this matter is between the workers and their employer, Cognizant,” the spokesperson said.

NLRB seems to disagree. This will be an interesting case, I suspect …

What are some FOSS programs that you think are a far better user experience than their counterparts? ( sh.itjust.works )

I used Plex for my home media for almost a year, then it stopped playing nice for reasons I gave up on diagnosing. While looking at alternatives, I found Jellyfin which is much more responsive, IMO, and the UI is much nicer as well....

fubo ,

My Pop!_OS system has never shown me ads for Candy Crush.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • All magazines