There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Rai , in How big is your desk?

Reminds me of a scam call center person telling Kitboga “your IP address is tied to your house address. You don’t get a new one unless you move houses”

MaggiWuerze ,

I wish

TechNerdWizard42 , in Old timers know

You will pry ftp from my cold dead hands.

JackbyDev ,

Can you use sftp instead? Pwease? 🥺

TechNerdWizard42 ,

Who can afford the performance hit?

My production server running Win XP Home has to have the firewall off just to make all the super secret company internal networks work. SFTP would cripple us!

/s, except about the performance hit being stupidly unacceptable in 2024.

zzx , in Old timers know

This is how I deployed an app less than 5 years ago (healthcare).

It’s sad

Flipper ,

This is how I deploy my personal website today. The holster doesn’t give ash access.

drathvedro ,

I know a place where they still do this. They’ve got an 8-digit user count, 7 digit monthly profits, all running on one server that costs something like $20 a month. They’ve downsized a few years ago to single-digit employee number and just sit there and collect profits. And this is why I’m now working for a company that casually dropped a few grand for a glorified CPU usage meter and a few grand on top of that for deployment tool that does the same thing that the old guy at a former place was doing with his trusty FTP client.

Ticklemytip , in JavaScript

I love inside jokes. I hope you be apart of one someday

stembolts , in Old timers know

This application looks fine to me.

Clearly labeled sections.

Local on one side, remote on the other

Transfer window on bottom.

No space for anything besides function, is the joke going over my head?

tiramichu , (edited )

I’m sure there’s nothing wrong with the program at all =)

Modern webapp deployment approach is typically to have an automated continuous build and deployment pipeline triggered from source control, which deploys into a staging environment for testing, and then promotes the same precise tested artifacts to production. Probably all in the cloud too.

Compared to that, manually FTPing the files up to the server seems ridiculously antiquated, to the extent that newbies in the biz can’t even believe we ever did it that way. But it’s genuinely what we were all doing not so long ago.

ID411 ,

It’s that automated workflow ? With human checkpoints ?

Like, a programmer will ‘hit save’ and drop his work in version control, which automatically lands in a development environment, is promoted to test, and lands in the queue of a tester, and so on ?

tiramichu ,

Yes, exactly that.

30p87 ,

manually FTPing the files up to the server seems ridiculously antiquated

But … but I do that, and I’m only 18 :(

Poiar ,

Old soul :)

tiramichu , (edited )

That’s probably okay! =) There’s some level of pragmatism, depending on the sort of project you’re working on.

If it’s a big app with lots of users, you should use automation because it helps reliability.

If there are lots of developers, you should use automation because it helps keep everyone organised and avoids human mistakes.

But if it’s a small thing with a few devs, or especially a personal project, it might be easier to do without :)

realbadat ,

Like anything else, it’s good to know how to do it in many different ways, it may help you down the line.

In production in an oddball environment, I have a python script to ftp transfer to a black box with only ftp exposed as an option.

Another system rebuilds nightly only if code changes, publishing to a QC location. QC gives it a quick review (we are talking website here, QC is “text looks good and nothing looks weird”), clicks a button to approve, and it gets published the following night.

I’ve had hardware (again, black box system) where I was able to leverage git because it was the only command exposed. Aka, the command they forgot to lock down and are using to update their device. Their intent was to sneakernet a thumb drive over to it for updates, I believe in sneaker longevity and wanted to work around that.

So you should know how to navigate your way around in FTP, it’s a good thing! But I’d also recommend learning about all the other ways as well, it can help in the future.

(This comment brought to you by “I now feel older for having written it”, and “I swear I’m only in my fourties,”)

OpenStars ,
@OpenStars@discuss.online avatar

Then switch to use sth more like scp ASAP? :-)

30p87 ,

Nah, it’s probably more efficient to .tar.xz it and use netcat.

On a more serious note, I use sftp for everything, and git for actual big (but still personal) projects, but then move files and execute scripts manually.

And also, I cloned my old Laptops /dev/sda3 to my new Laptops /dev/main/root (on /dev/mapper/cryptlvm) via netcat over a Gigabit connection with netcat. It worked flawlessly. I love Linux and its Philosophy.

OpenStars ,
@OpenStars@discuss.online avatar

Ooh I’ve never heard of it. netcat I mean, cause I’ve heard of Linux 😆.

The File Transfer Protocol is just very antiquated, while scp is simple. Possibly netcat is too:-).

30p87 ,

Netcat is basically just a utility to listen on a socket, or connect to one, and send or receive arbitrary data. And as, in Linux, everything is a file, which means you can handle every part of your system (eg. block devices [physical or virtual disks]) like a normal file, i.e. text, you can just transfer a block device (e.g. /dev/sda3) over raw sockets.

xtapa ,

It’s perfectly fine for some private page etc. but when you make business software for customers that require 99,9% uptime with severe contractual penalties it’s probably too wonky.

JackbyDev ,

Think of this like saying using a scythe to mow your lawn is antiquated. If your lawn is tiny then it doesn’t really matter. But we’re talking about massive “enterprise scale” lawns lol. You’re gonna want something you can drive.

aard ,
@aard@kyu.de avatar

Shitty companies did it like that back then - and shitty companies still don’t properly utilize what easy tools they have available for controlled deployment nowayads. So nothing really changed, just that the amount of people (and with that, amount of morons) skyrocketed.

I had automated builds out of CVS with deployment to staging, and option to deploy to production after tests over 15 years ago.

DinosaurSr ,

after tests

What is “tests”?

towerful ,

Tests is the industry name for the automated paging when production breaks

MonkderDritte ,

webapp deployment

Huh? Isn’t this something that runs on the server?

tiramichu ,

It’s good practice to run the deployment pipeline on a different server from the application host(s) so that the deployment instances can be kept private, unlike the public app hosts, and therefore can be better protected from external bad actors. It is also good practice because this separation of concerns means the deployment pipeline survives even if the app servers need to be torn down and reprovisioned.

Of course you will need some kind of agent running on the app servers to be able to receive the files, but that might be as simple as an SSH session for file transfer.

lightnegative ,

But it’s genuinely what we were all doing not so long ago

Jokes on you, my first job was editing files directly in production. It was for a webapp written in Classic ASP. To add a new feature, you made a copy of the current version of the page (eg index2_new.asp became index2_new_v2.asp) and developed your feature there by hitting the live page with your web browser.

When you were ready to deploy, you modified all the other pages to link to your new page

Good times!

Wangus ,

The large .war (Web ARchive) being uploaded monolithicly is the archaic deployment of a web app. Modern tools can be much better.

Carighan ,
@Carighan@lemmy.world avatar

Of course, it’s going to be difficult to find a modern application where each individually deployed component isn’t at least 7MB of compiled source (and 50-200MB of container), compared to this single 7MB war that contained everything.

MonkderDritte ,

And then confused screaming about all the security holes.

trustnoone ,

This application looks fine to me.

Clearly labeled sections.

Local on one side, remote on the other

Transfer window on bottom

Thats how you know its old. Its not caked full of ads, insanely locked down, and trying yo sell you a subscription service.

T156 ,

It even has questionably-helpful mysterious blinky lights at the bottom right which may or may not do anything useful.

ed_cock ,

Except that FileZilla does come with bundled adware from their sponsors and they do want you to pay for the pro version. It probably is the shittiest GPL-licensed piece of software I can think of.

en.wikipedia.org/wiki/FileZilla#Bundled_adware_is…

trustnoone ,

Aw that sucks

blackn1ght ,

The joke isn’t the program itself, it’s the process of deploying a website to servers.

Fades , in Old timers know

Ah yes, war files

JackbyDev ,

Don’t forget ear files. Oh, and don’t forget the abomination that is the executable war file when you’re using Spring Boot but your company hasn’t fully embraced it yet.

WalrusDragonOnABike , in How big is your desk?

If your desk is only 3/4ths of a chain long, how will you fit more than one computer?

dutchkimble ,

That’s the whole advantage of block chain. You can add more lego blocks to your desk and keep the chain going.

southernwolf , in How big is your desk?
@southernwolf@pawb.social avatar

This is why we need 3, 4, or even 5 monitors at a time.

Varven ,
@Varven@lemmy.world avatar

More monitors the better

briggsyj , in JavaScript
9point6 , in JavaScript

GIGO

bahbah23 ,

I’ve read different defenses for JavaScript for cases like this, which usually runs somewhere from you shouldn’t be doing that anyway all the way up to if you just understood the language better you’d know why. While I agree with both of those points strongly as general principles, JavaScript also violates the principle of least surprise enough to make it concerning.

For what it’s worth, I do like JavaScript. I really don’t think that there is any perfect programming language.

5C5C5C ,

I really don’t think that there is any perfect programming language.

You’d be wrong 🦀🦀🦀🦀🦀

bahbah23 ,

Fair, I haven’t used Rust so I don’t really have an opinion on it.

9point6 ,

That’s a weird emoji to use for elixir

sparkle ,

Elixir? Is that the weird older cousin of Gleam?

skulbuny ,
@skulbuny@sh.itjust.works avatar

Compile times say otherwise

palordrolap ,

JavaScript, like some other languages of the time, was designed with the Robustness Principle in mind. Arguably the wrong end of the Robustness Principle, but still.

That is, it was designed to accept anything that wasn't a syntax error (if not a few other things besides) and not generate run-time errors unless absolutely necessary. The thinking was that the last thing the user of something written in JavaScript wants is for their browser to crash or lock up because something divided by zero or couldn't find an object property.

Also it was originally written in about five minutes by one guy who hadn't had enough sleep. (I may have misremembered this part, but I get the feeling I'm not too far off.)

zarkanian ,
@zarkanian@sh.itjust.works avatar

It was 10 days, but, yeah, not a lot of time, especially for one guy. (That one guy was Brendan Eich, by the way.)

01101000_01101001 , in JavaScript

Just wait until OP learns about cross product of matrices.

sparkle ,

mfw non-commutativeness

FQQD , in Old timers know
@FQQD@lemmy.ohaa.xyz avatar

People don’t use FileZilla for server management anymore? I feel like I’ve missed that memo.

RonSijm ,
@RonSijm@programming.dev avatar

I suppose in the days of ‘Cloud Hosting’ a lot of people (hopefully) don’t just randomly upload new files (manually) on a server anymore.

Even if you still just use normal servers that behave like this, a better practice would be to have a build server that creates builds, like whenever you check code into the Main branch, it’ll create a deploy for the server, and you deploy it from there - instead of compiling locally, opening filezilla and doing an upload.

If you’re using ‘Cloud Hosting’ - for example AWS - If you use VMs or bare metal - you’d maybe create Elastic Beanstalk images and upload a new Application or Machine Image as a new version, and deploy that in a more managed way. Or if you’re using Docker, you just upload a new Docker image into a Docker registry and deploy those.

dan ,
@dan@upvote.au avatar

For some of my sites, I still build on my PC and rsync the build directory across. I’ve been meaning to set up Gitlab or something similar and configure automated deployments.

amazing_stories ,

This is what I do because my sites aren’t complicated enough to warrant a build system. Personally I think most websites out there are over-engineered. Example: a Discord friend made a React site that displays stats from a gaming server. It looks nice, but you literally can’t hyperlink to any of the data, it can only be loaded dynamically and only looks coherent on a phone in portrait mode. There are a lot of people following trends (some good trends) but without really thinking about why.

dan ,
@dan@upvote.au avatar

I’m starting to like the htmx model a lot. Server-rendered app that uses HTML attributes to configure the dynamic bits (e.g. which URL to hit and which DOM element to insert the response into). Don’t have to write much JS (or any in some cases).

you literally can’t hyperlink to any of the data

I thought most React-powered frameworks use a URL router out-of-the-box these days? The developer does need to have a rough idea what they’re doing, though.

RonSijm ,
@RonSijm@programming.dev avatar

Yea, I wasn’t saying it’s always bad in every scenario - but we used to have this kinda deployment in a professional company. It’s pretty bad if this is still how you’re doing it like this in an enterprise scenarios.

But for a personal project, it’s alrightish. But yea, there are easier setups. For example configuring an automated deployed from Github/Gitlab. You can check out other peoples’ deployment config, since all that stuff is part of the repos, in the .github folder. So probably all you have to do is find a project that’s similar to yours, like “static file upload for an sftp” - and copypaste the script to your own repo.

(for example: a script that publishes a website to github pages)

ResoluteCatnap ,

They have bundled malware from the main downloads on their own site multiple times over the years, and even denied it and tried gaslighting people that AVs were giving false positives because AV companies are paid off by other corporations. And the admin will even try to delete the threads about this stuff but web archive to the rescue…

web.archive.org/web/…/viewtopic.php?t=48441#p1614…

FQQD ,
@FQQD@lemmy.ohaa.xyz avatar

You know what? I didn’t believe you, since I’m using it for a long time on Linux and never had any issues with it. Today, when I helped a friend (on Windows) with some SFTP transfer and recommended FileZilla was the first time I realised the official Downloads page provides Adware. The executable even gets flagged by Microsoft Defender and VirusTotal. That’s actually REALLY bad. Isn’t FileZilla operated by Mozilla? Should I stop using it, even though the Linux versions don’t have sketchy stuff? It definitely leaves a really bad taste.

ResoluteCatnap ,

Yeah, it’s bad. Surprised they’re still serving that crap in their own bundle but i guess some things don’t change.

Filezilla is no relation to mozilla. But yeah i moved away from it years ago. The general recommendation I’ve seen is “anything but filezilla”. Personally i use winscp for windows, and will have to figure out what to use when i switch my daily driver to Linux.

ch00f , in JavaScript
tmpod ,
@tmpod@lemmy.pt avatar

Mandatory link

iAvicenna , in It's called attaining divinity
@iAvicenna@lemmy.world avatar

I guess this is what gen z programmers making memes look like

darklamer , in How big is your desk?
@darklamer@lemmy.dbzer0.com avatar

Would it be possible to work around this by using virtual desktops? 🤔

OsaErisXero ,

Technically yes, but the thermal load of putting all those computers inside the other computers is generally prohibitive, and image quality once you get 3 monitors deep in the tool chain is poor enough you have to start making the text bigger.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines