Comment on: Oracle: Java 9 will not receive long-term support
0 09 Sep 2017 01:31 u/Antikaon in v/programmingOracle: Java 9 will not receive long-term support
2 1 comment 09 Sep 2017 00:42 u/Antikaon (..) in v/programmingCOBOL Is Everywhere. Who Will Maintain It?
13 6 comments 14 May 2017 22:43 u/Antikaon (..) in v/programmingIBM and Red Hat plan to vote against the module plan for Java's next release,
5 2 comments 06 May 2017 21:14 u/Antikaon (..) in v/programmingComment on: Share your favorite programming cartoons.
Ballmer Peak: https://xkcd.com/323/
Also, if you're not already familiar with XKCD..... You're welcome.
Banks scramble to fix old systems as IT 'cowboys' ride into sunset
2 1 comment 10 Apr 2017 07:43 u/Antikaon (..) in v/programming350+ Data Structure Problems and Their Solutions
12 4 comments 10 Apr 2017 03:43 u/Antikaon (..) in v/programmingPSA: don't run 'strings' on untrusted files (CVE-2014-8485)
2 0 comments 11 Mar 2017 13:34 u/Antikaon (..) in v/programmingComment on: Brand new and feeling kind of ridiculous right now. Could someone help?
Personally, for general purpose editing, I use Vim. But, for other development and larger projects....
I'm going to throw this out there. It's not one of the usual editors people suggest. Also, It's not just an editor, it an IDE with support for Java, C, C++, HTML, Javascript, CSS, PHP and more. It supports creating HTML5 projects with a debugger that integrates into Google Chome too. It supports version control right out of the box with Git, SVN, or Mercurial. I've used it to push to GitHub repositories too.
It's not the fastest IDE I've ever used, but it is extremely capable.
NetBeans https://netbeans.org/downloads/
CIA Leaks - Process Hollowing. Starting a benign process with suspended threads, then replacing the address space with another executable before resuming the threads.
4 0 comments 08 Mar 2017 00:07 u/Antikaon (..) in v/programmingCIA Leaks - DirectInput Keylogger. Uses the Microsoft DirectX API to collect keystrokes from any running application. With Source Code!
2 0 comments 07 Mar 2017 23:58 u/Antikaon (..) in v/programmingComment on: 50 Bytes of Code That Took 4 GB to Compile
No, it's not valid code. Visual Studio’s C++ compiler had a bug that caused it to go into an infinite loop allocating memory when it hit certain invalid inline assembly like that.
BTW, assembly is fun.
Comment on: 50 Bytes of Code That Took 4 GB to Compile
Your example compiles fine (or... it would if you have the memory I think).
I meant the code in the article that the compiler choked on....
void test()
{
__asm { add eax
__asm { add eax
}
Comment on: 50 Bytes of Code That Took 4 GB to Compile
Interesting... I have 16gb of RAM (and 8gb swap) and I can't successfully compile it.
g++ creates an object file with 17,179,869,671 bytes, but it fails to link:
/usr/bin/ld: final link failed: Memory exhausted
Of course, I think the point was that the code in question shouldn't compile at all and it used 4gb just trying because of a compiler bug.
Comment on: 50 Bytes of Code That Took 4 GB to Compile
I dunno... were you baited into clicking it?
50 Bytes of Code That Took 4 GB to Compile
25 11 comments 13 Feb 2017 14:39 u/Antikaon (..) in v/programmingReverse-engineering the surprisingly advanced ALU of the 8008 microprocessor
10 0 comments 10 Feb 2017 16:17 u/Antikaon (..) in v/programmingComment on: Trying to get balls deep into SQL, dont really like it, any tips?
You'll get the hang of it in time, trust me. I've worked with some complicated SQL in several environments. Mostly MySQL, and DB2/400 (that's the "embedded" database that is actually the file system on IBM's iSeries machines... It's pretty cool). I went from not knowing anything about SQL to being pretty damn good at it, being able to pull in data from dozens of tables across multiple data sources and systems. You start to think in SQL, and you'll get an intuitive sense of how to get at and organize the data you want.
And it only took me 16 years.
Comment on: [rant] Somethings you'll learn in college but should NEVER use in the real world
Check these out:
Kernel Newbies discussion of the Linux kernel's linked list API: https://kernelnewbies.org/FAQ/LinkedLists
From the Linux kernel 4.9 src (Linux/include/linux/list.h) http://lxr.free-electrons.com/source/include/linux/list.h
Linked lists are used in various places in the kernel and in device drivers. They're fast and efficient.
Comment on: Newbie... Need motivation.. something "real" to sink my teeth into.
I would suggest implementing something that already exists, just to learn how. Most of programming (regardless language) consists of:
- Having a good understanding of what needs to be done/what you are trying to accomplish
- Breaking the project down into manageable pieces.
- Determining the best way to implement each piece in code (This will usually involve breaking the piece down in to even smaller pieces and implementing those)
- Test each piece individually and debug as necessary.
- Start coding the "glue" that ties the pieces together and debug as needed
- As you get closer to completion, test the program as a whole. Debug as needed
- Ask others to test your program. They WILL discover things you overlooked. Debug those things
- Test and tweak until you (or your users) are satisfied.
So, pick a simple old video game like Pac-Man or Tetris and make yourself a clone. It doesn't have to be perfect or even similar. Just the exercise of figuring out all the steps you need to implement and how to tie them together into a working program will make you a better programmer in the long run. Plus...it's fun!
The little book about OS development
1 0 comments 27 Dec 2016 23:13 u/Antikaon (..) in v/programmingComment on: The Rise of NetBeans - Why The Increasingly Popular IDE Has Streamlined Java Application Development for a Network of 1.5M+ Active Users
I was the lead developer on a large project that was primarily Java, but had elements requiring C, HTML, CSS, PHP, SQL, and Javascript. A few parts of the project used SVN for version control, most of it used Git.
After struggling with Eclipse and all of its plug-ins and updates and incompatibilities, slowness and random crashes, I got fed up and gave NetBeans a try. I had last tried it when it was around version 4.x (4.5ish maybe..) and it was real slow and buggy. At this point 6.0 had just been released.
I installed it and and was stunned that it did everything I needed right out of the box. It had its quirks and a few bugs, but nothing that couldn't be worked around. After a couple weeks of using NetBeans myself, I helped the other developers transition to NetBeans and we never looked back. Each new version was smoother and more polished than the last and upgrades never broke anything.
I'm not a big fan of Oracle. I think they have screwed up or ignored projects I care about. I hope NetBeans never becomes a victim of Oracle's negative influence.
In case you didn't know, NetBeans supports:
- Java,
- C,
- C++ (and Qt),
- PHP,
- HTML5/Javascript (With a great Chrome addon for debugging your project),
- Python (via a plugin, for NetBeans 8.0 and 8.1, but not 8.2,yet)
- Version control (CVS, Subversion, Git, Mercurial built in, others via plugins)
- Audrino development (via plugin)
If you're looking for a full featured IDE, I highly recommend giving NetBeans a try.
The Rise of NetBeans - Why The Increasingly Popular IDE Has Streamlined Java Application Development for a Network of 1.5M+ Active Users
1 1 comment 21 Dec 2016 20:00 u/Antikaon (..) in v/programmingComment on: What is the best comment in source code that you have ever encountered?
From the 3com 3c501 network driver linux source (3c501.c):
This is a device driver for the 3Com Etherlink 3c501.
Do not purchase this card, even as a joke. It's performance is horrible,
and it breaks in many ways.
The driver is less efficient than it could be. It switches through
receive mode even if more transmits are queued. If this worries you buy
a real ethernet card.
Comment on: For those who went from one language to another that were wildly different, how did it work out? Any advice/tips?
Wow, I thought it was just me....
For the last 17 years I've routinely needed to work with Pascal, C, Java, Perl, PHP, Bash, SQL and JavaScript. On my own time I've done projects in C++, and I've even started writing an OS kernel (C and Assembly) that, so far, boots, handles keyboard input and has VERY basic memory management.
But I still just can't seem to get into Python.
Comment on: 8088 MPH: We Break All Your Emulators - Incredible Demo - IBM PC (8088 4.77Mhz w/CGA)
Hell yeah!
Comment on: 8088 MPH: We Break All Your Emulators - Incredible Demo - IBM PC (8088 4.77Mhz w/CGA)
Tandys were great! Remember DeskMate? MS-DOS 2.1 built into ROM? I knew quite a few people who had various varieties of Tandy 1000s . I was the oddball with a 100% AT compatible 10Mhz 286 Tandy 3000NL.
8088 MPH: We Break All Your Emulators - Incredible Demo - IBM PC (8088 4.77Mhz w/CGA)
37 10 comments 07 Nov 2016 19:56 u/Antikaon (..) in v/programmingComment on: Programming tip: Stay away from frameworks
I somewhat agree with this.
I think new programmers should take the time to learn the underlying tech that frameworks try to simplify. This will give you a better understanding of the lower level stuff and make you a better programmer in the long run. Building your own framework, even if it's only purpose is to learn how, is a worthwhile experience.
However, learning to use a framework or two is not a bad idea. Bottom line: People need jobs. Even if you are a "script kiddy" who gets replaced after a year or two, you still got a couple years of employment out of it.
Interesting note: In my former job, I was in on most of the programmer interviews. It amazes me how many programmers (not just entry level ones....) have NO IDEA how computers work.
Yep, pretty much.