u/hfkmfn - 28 Archived Voat Posts in v/programming
u/hfkmfn
  • home
  • search

u/hfkmfn

1 post · 27 comments · 28 total

Active in: v/programming (28)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: The Rise and Fall of Java [10 minute video]

I still haven't learned Java fluently but have been becoming more sympathetic for the language over time... The interest in this video was the history and seeing that tablet device thingy and stuff like that.

0 10 Nov 2018 20:16 u/hfkmfn in v/programming
The Rise and Fall of Java [10 minute video]
1 0 comments 10 Nov 2018 19:13 u/hfkmfn (..) in v/programming
Comment on: Terry David says computer sciences is brain fucking the kids. Is he right?

I don't know whether Terry was MK Ultra, naturally crazy, a blackmailed patsy or any other situation...

I think some of the rants are reactive to something that isn't always obvious in video. I think the resentment against "M.I.T. Niggers" could be from an MIT student leaving a rude comment on a previous video. I wouldn't know but that is what I think after watching the video above.

Various rants and insights in both videos, many of which may well be correct or at least half right.

0 04 Nov 2018 21:47 u/hfkmfn in v/programming
Comment on: Female Programmers

I used to know a lesbian software developer, but wouldn't think most were. While I haven't met any/ err many in person, but MTF trannies is something that has been known to happen among upper level programmers/hackers...

Now being a geek, maybe even on the autism spectrum... You do see signs of that among some of the female developers.

0 03 Nov 2018 01:29 u/hfkmfn in v/programming
Comment on: Female Programmers

There are some video talks/lectures on youtube. You almost get a feeling that you sort of understand while listening... But you don't really, fully. The theory can get advanced. It's still exiting when you feel like you're understanding things in the moment! haha

Haskell people have specific names and terminology for certain use cases, both practical and theoretical... I think those names are used in their standard library and/or popular frameworks. Some of the terminology is mathematical... The jargon kind of runs together lol.

0 31 Oct 2018 00:51 u/hfkmfn in v/programming
Comment on: D Language Front-End Finally Merged Into GCC 9

Something ain't right when a programming language needs excessive promotion...

At least excessive compared to... Everyone self-promotes a little... C beat Pascal because of being first to get standardized and getting bureaucrats on board... And then spreading to universities with UNIX. Nobody even thinks of SmallTalk.

Okay EVERYTHING in life is quasi-political to some extent, but those languages are hyped way too much!

0 30 Oct 2018 20:58 u/hfkmfn in v/programming
Comment on: Female Programmers

I thought, maybe she wanted to do something with brains... Like insecurity over only being known for looks. But I was wrong.

0 30 Oct 2018 20:18 u/hfkmfn in v/programming
Comment on: Female Programmers

Oh, she partnered with one of those codecamps. A codecamp for girls... :/

0 30 Oct 2018 20:02 u/hfkmfn in v/programming
Comment on: Female Programmers

Good evening girlprogrammers and brogrammers.

0 30 Oct 2018 19:55 u/hfkmfn in v/programming
Comment on: Female Programmers

That is almost a monad. Haskell people can go on for hours about monads... Kind of wish I understood better. :/

0 30 Oct 2018 19:49 u/hfkmfn in v/programming
Comment on: Female Programmers

Oh, you were replying to my script, it sucks so far...

#!/bin/sh
VER="0"
PROG="ccjar.sh"
NAME="Cargo Cult Java Archive"
VID="https://m.youtube.com/watch?v=qmlYe2KS0-Y"
MDIR="META-INF"
MFILE="MANIFEST.MF"
TMPDIR=./
TDIR=$(mktemp -d)
# this isn't working...
#trap "rm -fr $TDIR"  3       2      9       15      # unix
#trap "rm -fr $TDIR" SIGQUIT SIGINT SIGKILL SIGTERM # bash
#trap "rm -fr $TDIR" QUIT    INT    KILL    TERM    # BSD /bin/sh
showhelp() {
    echo "$NAME ($PROG) version $VER - imitate jar, crudely"
    echo "usage: $PROG [--help | -h | -?]"
    echo "       $PROG {ctx}{f}{mMe} <jar-file> [<manifest-file>, if 'm'] [<entry-point>, if 'e'] [<files...>]"
    echo ""
    echo "the first argument is required for non-help and requires 3 letters in above order"
    echo ""
    echo "{ctx}"
    echo "  c = create new jar"
    echo "  t = list contents (crudely)"
    echo "  x = extract contents in current directory"
    echo""
    echo "{f}"
    echo "  f = <jar-file> is the next argument, we require this"
    echo ""
    echo "{mMe} note: these are ignored unless this first argument starts with 'c'"
    echo "  m = use arg following <jar-file> as manifest"
    echo "  M = don't include any manifest"
    echo "  e = use arg following <jar-file> as entry point (autogenerates basic manifest)"
    echo ""
    echo "note: the real jar has other switches not implimented here..."
    echo "      the switch groups above are mutually exclusive (no overrides like real jar)"
    echo "      this script doesn't directly generate Android compatible dex/aot files"
    echo "      <manifest-file> and/or <entry-point> aren't reckoned unless first switch is 'c'"
    echo ""
    rm -fr "$TDIR"
    exit
}
if [ $# = 0 ] || [ $# = 1 ]; then
    showhelp;
fi
tmp=$(echo -n "$1" | tr -c -d 'f' | wc -c)
if [ "x$tmp" != "x1" ]; then
    showhelp;
fi
switch1=""
switch2="f"
switch3=""
if echo "$1" | grep -q "$switch2"; then
    switch1=$(echo "$1" | cut -d "$switch2" -f 1)
    switch3=$(echo "$1" | cut -d "$switch2" -f 2)
else
    showhelp;
fi
shift 1;
JAR="$1"
shift 1;
0 30 Oct 2018 19:14 u/hfkmfn in v/programming
Comment on: Female Programmers

lol Yeah, Facebook allowed one of their top guys and a hand-selected team to seclude themselves in a battle cave to create HipHop PHP.

0 30 Oct 2018 19:09 u/hfkmfn in v/programming
Comment on: D Language Front-End Finally Merged Into GCC 9

gdc has been available for awhile but now it's an official frontend, that means support for an alternative besides Rust and Go! =)

It won't shut up the Rust and Go fanbois, but it's a start...

0 30 Oct 2018 11:02 u/hfkmfn in v/programming
Comment on: Female Programmers

Maybe she downloaded and extracted a code folder into Desktop via GUI and doesn't know where Desktop folder is... I don't know, if presenting something in front of an audience it's good to do dress rehersals.

0 30 Oct 2018 10:29 u/hfkmfn in v/programming
Comment on: Female Programmers

It was an easy lie to fall for, and maybe they should teach more about computers... But I wouldn't know what common cirriculum looks like nowadays.

0 30 Oct 2018 09:56 u/hfkmfn in v/programming
Comment on: Female Programmers

Hey! I just started writing a bash script yesterday to imitate the functionality of jar! Maybe it will be ready later this week... :/

0 30 Oct 2018 09:53 u/hfkmfn in v/programming
Comment on: I have a problem with some Java code

Oh. They probably want you to create jar files. I don't have jar installed on this machine... Drat, I ought to do that too haha!

0 29 Oct 2018 14:59 u/hfkmfn in v/programming
Comment on: I have a problem with some Java code

The code as written in your paste doesn't import java.util.Random or anything else that might provide a dice class... It won't compile because of that.

Maybe you used something like this? http://quabr.com/29466475/java-dice-program I should try that...

Okay that works. Your program as written works using the Die.java code from that link.


I got your program to work and eventually understood the rules of the game, my solution was wrong. Sorry about that.


I tried to rewrite a solution following the rules properly but neither this nor your version will compile. It errors on import Die.

That was a hiccup solved in a couple minutes the first time but a roadblock now. Maybe I'm too tired? I don't know why it won't compile now...


I misunderstood your rules. I should rewrite this... What was your question? Where the extra 5 points comes from. Let me try more test runs...

I see, it doesn't happen very often. The problem is you don't see the mini-BUNCO rolls, only that it was a mini-BUNCO. The 5 extra points come from the mini-BUNCO. You wouldn't see those because of not printing the roll in those cases but the score was still added.


Your problem seems to be mixing the logic for printing a roll, calculating the score, and figuring whether to roll again. Those should be totally seperate blocks of code.

Sorry, I would demonstrate but the Die class won't import anymore. I can't get your old version nor my new updated version to work now. :(

0 29 Oct 2018 07:26 u/hfkmfn in v/programming
Comment on: I have a problem with some Java code

I suck at Java, and programming in general but got this going. https://justpaste.it/5ygg4

0 27 Oct 2018 01:07 u/hfkmfn in v/programming
Comment on: SQLites new COC reminds me of this joke:

There is no way he programmed all that in less than a week!

kek

0 26 Oct 2018 14:19 u/hfkmfn in v/programming
Comment on: SQLite introduces it's own Code of Conduct

R.I.P. Terry.

0 26 Oct 2018 14:10 u/hfkmfn in v/programming
Comment on: SQLite introduces it's own Code of Conduct

Slashdot. The Rule of St. Benedict was done months ago but it only got noticed in a viral way this week.

0 26 Oct 2018 14:03 u/hfkmfn in v/programming
Comment on: I have a problem with some Java code

Java has a bias towards over using objects. :/

0 26 Oct 2018 13:49 u/hfkmfn in v/programming
Comment on: I have a problem with some Java code

Many games have chance bonuses, like snake eyes. Just assumed it was the rules of his game...

0 26 Oct 2018 13:46 u/hfkmfn in v/programming
Comment on: I have a problem with some Java code

You need a closing brace for both the for loop and the if statement inside it. I would recommend using a while instead of for.

I don't see what your try-again condition is but you could do something like this.

boolean done = false;
while(!done) {
}

Breaking out of the loop with a break statement when finished with rolling can be reasonable too.

0 26 Oct 2018 13:41 u/hfkmfn in v/programming
Comment on: I have a problem with some Java code

You could have used (x == y && x == z) as a condition, assuming primitive int-'s. The three-way expression resembles a swap idiom, but it is good to be explicit in the business logic however conceived.

I don't see what the previous (or later) conditionals in the if-else... chain are, execution probably branched to one of the other conditionals (i.e. (x == 5) taking a higher priority than than (x == y && x == z))

0 26 Oct 2018 13:28 u/hfkmfn in v/programming
Comment on: (cross-post /v/news) Linux developers threaten to pull "kill switch"

Linus would not take ESR's advice. https://voxday.blogspot.com/2018/09/trust-not-in-personality.html?m=1 Whatever you think of him it wasn't his call, other forces had more leverage.

0 30 Sep 2018 22:50 u/hfkmfn in v/programming
Comment on: (cross-post /v/news) Linux developers threaten to pull "kill switch"

Some of those people in twitter threads are literally furries or other deviants, which might be fine for a hacker but they are all pro-inclusitivity. They just think the SJWs are going too far...

Have you seen this yet? http://esr.ibiblio.org/?p=8139

0 24 Sep 2018 23:33 u/hfkmfn in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.