mithaldu

- friends
5,257 link karma
1,168 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • One-Year Club

    Verified Email

[Free] Perl Obfuscator by MegaDomoin perl

[–]mithaldu 2 points3 points ago

Neat. :)

Is the source on github?

The way I tried first looks more equal to me by scgein programminghorror

[–]mithaldu 5 points6 points ago

And today on: Guess The Mystery Language!

The Magical Comment; or, Why I'm Not a CS Major by Jhazain programminghorror

[–]mithaldu 0 points1 point ago

Lua is not an interpreted language. Basic was the last of those. See the Wikipedia entry*: "Lua programs are not interpreted directly from the textual Lua file, but are compiled into bytecode which is then run on the Lua virtual machine."

It works just like Java does.

The Magical Comment; or, Why I'm Not a CS Major by Jhazain programminghorror

[–]mithaldu 1 point2 points ago

That argument is very self-serving and short-sighted. By your way of thinking Britney Spears would be a good singer and PHP would be a good language. Popularity does not reflect on quality.

(x-post from r/webdesign) Anyone have any knowledge with perl and xml and willing to help? by LUCARiOin perl

[–]mithaldu 1 point2 points ago

XML is meant for multimedia documents, not for data serialization. If you want a flat file database, use SQLite, YAML, JSON, Storable or heck, even Data::Dumper round-tripping, but not XML. Then use Dancer to write your web-app and interact with your database, running its data through templates. (Text::Xslate is extremely nice.)

If for some ungodly reason you absolutely want or have to subject yourself to this kind of thing, write the thing in Java, as that has actually tools to deal nicely with XML.

Perl Job Growth Sinking by uYKUUHNxcQin perl

[–]mithaldu 6 points7 points ago

state of the economy

Of course, that explains it. The growth of other dynamic languages has suffered as well, starting in 2011:

http://www.indeed.com/trendgraph/jobgraph.png?q=perl,python,ruby,php&relative=1

The Magical Comment; or, Why I'm Not a CS Major by Jhazain programminghorror

[–]mithaldu 0 points1 point ago

Python is a good alternative, since Eve was written in it and you can port performance-relevant parts to C inside your Python program. IronPython also comes well-recommended since it seems to have a proper parallelism model.

The Magical Comment; or, Why I'm Not a CS Major by Jhazain programminghorror

[–]mithaldu 2 points3 points ago

Well, on 3. i can agree as well. :)

Perl 5.16 Released by mr_chromaticin programming

[–]mithaldu 0 points1 point ago

They're much easier to pronounce.

The Magical Comment; or, Why I'm Not a CS Major by Jhazain programminghorror

[–]mithaldu 7 points8 points ago

Your conclusion was basically this:

A baby has heard people talk a bit, so it tries to talk on its own, but the output it produces generates results that are not consistent with its intent. Clearly the baby should never talk again.

Obviously this wasn't anywhere close to being the right one. They should've been:

  1. C++ sucks
  2. You need to read more code before writing code.

Programming Breaks Things by mr_chromaticin perl

[–]mithaldu -1 points0 points ago

Depending on the context it might be very prudent to to specify that one is talking about US-Americans, as opposed to the anyone from Northern America or America itself. In the case of the article he points towards the US-American Geometry taught in schools, which might well be different in other countries in America. (In fact, from reading about it, i know it is.) Specifying that brings across to the reader that he doesn't mean the entire discipline as practiced world-wide, or as practiced in a wide region he kind of knows, but a very specific branch of it.

Also, to correct your example with Europe: The practice of calling US-Americans "Americans" would in Europe be the same as referring to Germans as "Europeans" exclusively, just because they have the biggest GDP there.

HatePaste. Where the worst code is. by Raisinsin programminghorror

[–]mithaldu 1 point2 points ago

Each language has its own syntax, since that determines what the compiler can understand, but i think you meant formatting and naming conventions. And yeah, those differ from language to language.

Python FAQ: I only know PHP. How do I write a Web application in Python? by jirachiexin Python

[–]mithaldu 13 points14 points ago

ITT people don't actually read the link.

Chasers gonna chase by Blan21in shazbot

[–]mithaldu 0 points1 point ago

Dropbox then.

Paying The Price of Cleverness by OvidPerlin perl

[–]mithaldu 0 points1 point ago

I never said it was and i honestly disagree with putting it into actual CPAN modules. My answer was only to explain to moltar what golfing is.

The golfing of Mo was actually meant to provide a means for people on the DarkPAN who cannot, by organization decree, use Moose, Mouse or Moo, to at least be able to use a tiny amount of Moosiness.

Paying The Price of Cleverness by OvidPerlin perl

[–]mithaldu 0 points1 point ago

If I want terrible generated code that abuses undocumented and unintentional features of the parser

Actually, no, it won't do that. Think of it more as a reverse Perl::Tidy. I guess a more fitting name would be Perl::Minify, but that doesn't quite carry the ring of ::Golf.

Paying The Price of Cleverness by OvidPerlin perl

[–]mithaldu -1 points0 points ago

No, it makes the code smaller. :)

Paying The Price of Cleverness by OvidPerlin perl

[–]mithaldu -2 points-1 points ago*

It's this: https://metacpan.org/module/Mo::Golf

I plan to spin it out into its own module in ther future.

Edit: To the people downvoting: You are only giving me more reason to make Perl::Golf a thing. :)

Paying The Price of Cleverness by OvidPerlin perl

[–]mithaldu 1 point2 points ago

So the redditors see it as well, the code is actually a lot less clever. That line there actually looks like this in development:

https://github.com/ingydotnet/mo-pm/blob/master/src/Mo.pm

It is condensed down by an auto-golfer i helped write, the reason for which is actually not bad: It was meant to provide a way for people who cannot use any CPAN deps to at least have a tiny bit of Moose. I do think it shouldn't be in YAML, but i think ingy wanted some kind of exposure to that code in public conditions.

Infinite scrolling should limit content, as seen in jQuery Endless Scroll by canglanin programming

[–]mithaldu 0 points1 point ago

Grepped the page for "limit" and found no mention. What are you talking about?

view more: next