Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?
For the out-of-band Slashdot experience (mostly headlines), follow us on Twitter, or Facebook. ×

Comment: How do you tell if .h is C or C++??? (Score 1) 264 264

by halfdan the black (#49635773) Attached to: C Code On GitHub Has the Most "Ugly Hacks"
I suspect that most search engines classify .h as a C file. In reality it could be either, and far and away the most common practice is for C++ to also use .h for header files.

On in extremely rare cases have I seen anything other than .h for C++ headers. Once in a great while, I've come across .hxx (there used to be a company that wrote compilers for Windows shareware developers called Borland that used .hxx or maybe .hpp I think) On SGI, I think I've once or twice seen .hh

Comment: Re:Qt? (Score 2) 54 54

by halfdan the black (#49396129) Attached to: 5 Alternatives For Developing Native iOS Apps

But who would do that?

A: You should NOT be giving the impression that either Google or Apple use Qt because you found a few independent developers how make apps for Android or iOS which happen to use Qt.

B: The OSX VLC GUI is written with Cocoa/Objective C, the only platform than I know is Qt is Linux.

I haven't used them much on Windows, but Qt apps on OSX are always a train wreck, nothing feels write, everything looks fake (because it is fake, all the controls are emulated), nothing lines up, and all look like a warmed over Win3.1 app with a cheesy emulated OSX skin. Linux is usually the only platform where Qt apps work well.

Comment: Delphi is dead, just accept it. (Score 2) 492 492

by halfdan the black (#48900989) Attached to: Ask Slashdot: Is Pascal Underrated?
Who in their right minds would use a closed source proprietary language that is locked to Windows from a company that is NOT Microsoft and is on the verge of their next bankruptcy/sale/???

What could delphi possibly every offer that in not in not available in C#??? With C#, at least you have a solid company behind it (Microsoft). Ive seen this so-called Delphi cross platform and it is an utter joke. The dev environment is completely locked to Windows, the apps it generates don't even vaguely resemble a native Mac application. Visual Studio is freaking FREE, yes, FREE, and supported by an actual company like Microsoft.

The company has such a great track record as well, lets see, it was borland, then they had this brilliant idea to throw everything away and wrap everything around QT, then they threw all that away, went bankrupt and became inprise. Then that went bankrupt, assets were bought by code gear, that went bankrupt, assets bought by what embarcadero now. How long until this joke goes bankrupt.

You want cross platform, use something that actually has a standard like C#, C++ or Java.

I guess Delphi is great for maintaining your shareware windows applications you wrote back in 1995.

How about interacting with others, well Delphi is such a joke that it can't even use a C++ library compiled with MSVC, and what 3 people on the planet actually use Delphi, so I guess you could work with them???

Funny how every company I've ever worked for "used to be Borland shop". Think about it.

Comment: Re:pfsense (Score 1) 403 403

by halfdan the black (#48824189) Attached to: Ask Slashdot: Migrating a Router From Linux To *BSD?

400 lines of shell script is just absolutely ridiculously long. These shell scripts co-mingle configuration with business logic, a recipe for disaster. I'm not blaming them, they are a product of their time, the 1970's, back when shell scripts were the only option for configuring a system. Before we had a declarative rule based system of configuration. And then hack upon hack upon hack got added to these shell scripts.

Its the same idea as concatenating a bunch of strings together at run-time to create a sql query. Sure, its quick, dirty but is a security disaster (ever hear of SQL injection). As apposed to having some proper stored procedures in the database itself, and only sending and receiving parameters and data from the database.

A tangled maze of shell scripts was perfectly acceptable in the 1970's but we need to move beyond this, we need to move to a grown up rule based system that cleanly separates business logic from configuration parameters.

Comment: Re:pfsense (Score 0, Offtopic) 403 403

by halfdan the black (#48823507) Attached to: Ask Slashdot: Migrating a Router From Linux To *BSD?

However, I don't understand the blatant systemd misrepresentation/hatred

About 80% of the hatred comes from the bandwagon effect. I'll bet the vast majority of the haters have no idea who Poettering, only he's some bad guy we have to hate. The other 20% of the hate comes from graybeard sys admins who know the unique file formats of the 1000 different config utilities Linux has traditionally had and are either afraid to learn anything new or afraid that they might not be so indispensable at their jobs.

What systemd does is give a single consistent way of configuring the system. You want security nightmare, how about the 1000's of freaking shell scripts that call each other in a giant mass of spaghetti to configure a traditional Linux system.

One of the great benefits of systemd is that it is written in C and not a giant mess of shell scripts. With C, you actually get COMPILE TIME CHECKING. With these dammed shell scripts, you have no idea if they work up until they run, and you have no idea what execution path they could go through. Shell scripts are fine a glue code for user programs, but give me something with some static checking like C for critical components.

Comment: My home server is even older (Score 2) 197 197

My home server is an old blue and white Apple G3 running Yellow Dog.

Sure I've added a Sata card and a GB Ethernet a while back and it's got 6 TB in a software raid.

But it's a server, why would a server ever need more processor, all it does is read/write stuff between Ethernet and disk. I'll keep running it until it finally dies.

Comment: I hope they also bring back floppy installs (Score -1, Troll) 647 647

by halfdan the black (#48481167) Attached to: Debian Forked Over Systemd
I really miss installing slackware from a 6" tall stack of floppies. Much like the sysv init, floppies are a tried and proven technology and we should accept that CDROMs and God forbid, DVDs are just far too radical of an experiment.

. We also need trusted technologies like token ring networks. Just look at what kind of radical experimentation is going on with ethernet: they can't even agree what kind of ethernet we should use, should it be 10 base-t, or maybe 100 base-t or how about 1000 base-t, just too radical changes, we need to stick with what is tried and proven for veteran administrators, like token ring.

Comment: Re:Why use these hybrid rocket engines (Score 1) 445 445

by halfdan the black (#48284725) Attached to: Virgin Galactic SpaceShipTwo Crashes
I was talking about these hybrid (rubber / NOx) vs liquid (kerosene / O2) engines. I know conventional solid do make more thrust, but are not controllable -- hence they make a good booster but not a main engine. It would seem like for a main engine, conventional liquid would give the most thrust and the most controllability.

Comment: Every hardware component?!?!? (Score -1) 162 162

by halfdan the black (#48255217) Attached to: OpenBSD Drops Support For Loadable Kernel Modules
So, you're telling me that the FreeBSD kernel now has to be compiled with support for every piece of hardware out there?

Are you fucking serious? FreeBSD no longer supports drivers that were not statically compiled into the kernel?

This is either a joke or has to be the most idiotic thing I've ever heard of.

The rate at which a disease spreads through a corn field is a precise measurement of the speed of blight.