u/GrislyAtoms - 36 Archived Voat Posts in v/programming
u/GrislyAtoms
  • home
  • search

u/GrislyAtoms

9 posts · 27 comments · 36 total

Active in: v/programming (36)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Easy 6502 - A short 6502 assembly tutorial
6 3 comments 21 Dec 2016 20:05 u/GrislyAtoms (..) in v/programming
Comment on: The Lost Art of C Structure Packing

So I tried this out (on ideone, because it was fast and easy) and it did make a difference. I guess that means that the compiler ideone uses, which I assume is some relatively modern version of GCC, doesn't do any optimization in terms of structure member ordering? I find that surprising. Or perhaps ideone doesn't use GCC, or I'm just missing something

0 19 Dec 2016 02:22 u/GrislyAtoms in v/programming
Comment on: The Lost Art of C Structure Packing

I see you're point, and have read a little about that sort of thing (micro optimizations), as well as premature optimization.

I have also seen this quote before, about optimization, which seems like it might be good advice:

"The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet."
— Michael A. Jackson

1 18 Dec 2016 03:43 u/GrislyAtoms in v/programming
Comment on: The Lost Art of C Structure Packing

I just thought it was interesting. Whether it's actually worth it—especially these days—to do it, is another matter, I am only an amateur hobbyist programmer, so I don't know too much about it.

But I guess it's a "lost art" for a reason (such as better compilers)?

1 18 Dec 2016 03:05 u/GrislyAtoms in v/programming
The Lost Art of C Structure Packing
16 7 comments 17 Dec 2016 23:25 u/GrislyAtoms (..) in v/programming
Comment on: Anyone know of any good SDL2 tutorials for C/C++?

Good idea. I'll give that a whirl.

1 05 Oct 2016 23:06 u/GrislyAtoms in v/programming
Anyone know of any good SDL2 tutorials for C/C++?
1 0 comments 05 Oct 2016 21:44 u/GrislyAtoms (self.programming) in v/programming
Comment on: What programming language SHOULDN'T you learn?

I guess this probably goes for all of the languages listed on Esolang?

2 04 Oct 2016 02:43 u/GrislyAtoms in v/programming
Comment on: [Poll] Do you write hexadecimal numbers in upper- or lowercase?

Also I just rage deleted my account due to being censored. so long.

Shitty. I actually wanted to read what you wrote there. And don't give up and quit. Fight the power!

1 15 Aug 2016 18:49 u/GrislyAtoms in v/programming
Comment on: [Poll] Do you write hexadecimal numbers in upper- or lowercase?

That was the impression that I got as well. That it was just some sort of uppercase hex fanboy.

2 15 Aug 2016 01:10 u/GrislyAtoms in v/programming
Comment on: [Poll] Do you write hexadecimal numbers in upper- or lowercase?

Lower, because it involves less key presses, and makes the letters stand out more.

Edit:

Just curious about the reasoning behind the downvote? Obviously someone has a differing opinion. I'd like to know what it is. Don't just downvote and run; that's fucking lame.

4 14 Aug 2016 22:47 u/GrislyAtoms in v/programming
Comment on: Screeps: MMO RTS sandbox for programmers

This looks cool. I've always enjoyed games that involve/incorporate programming. This looks simple enough for most people to grasp, but complex enough to be able to program some interesting behaviour, if you want to get into it. It's also mildly educational (teaching some basic programming/JavaScript), which is always good. Thanks for sharing!

1 08 Jul 2016 21:52 u/GrislyAtoms in v/programming
Comment on: Screeps: MMO RTS sandbox for programmers

I'm guessing the hate is due to all of the websites with JavaScript bloat these days. It's a bit of an epidemic.

I think JS is useful though, and can improve the usability and/or performance of a website, if it's used responsibly, and properly. I'm not really a programmer though; that's just how it seems to me.

2 08 Jul 2016 21:49 u/GrislyAtoms in v/programming
Comment on: There's a guy over in /v/IAMA ATM claiming to write cryptography programs for the U.S. Gov.

Indeed. That is only evidence at best. And not even good evidence.

4 22 Apr 2016 01:45 u/GrislyAtoms in v/programming
Comment on: There's a guy over in /v/IAMA ATM claiming to write cryptography programs for the U.S. Gov.

Well that's pretty convenient.

So you have no proof, is basically what you're saying? Then I will be taking everything you say in this matter with at least a dozen grains of salt. But I usually take everything on the internet that way.

4 22 Apr 2016 01:43 u/GrislyAtoms in v/programming
Comment on: There's a guy over in /v/IAMA ATM claiming to write cryptography programs for the U.S. Gov.

But deleted it, so that is moot, unless someone has an archive.is link or something? I doubt you're willing to provide the proof again.

Edit:

Not sure why I replied twice to the parent comment. This really should have been part of an edit to my first reply. Brain farting today.

2 22 Apr 2016 01:39 u/GrislyAtoms in v/programming
Comment on: There's a guy over in /v/IAMA ATM claiming to write cryptography programs for the U.S. Gov.

I want to believe.

Then you should be wary of confirmation bias.

7 22 Apr 2016 01:33 u/GrislyAtoms in v/programming
Comment on: There's a guy over in /v/IAMA ATM claiming to write cryptography programs for the U.S. Gov.

Did you? Can you link to it then? I'm not just going to take your word for it. This is the internet. I can make shit up too.

6 22 Apr 2016 00:48 u/GrislyAtoms in v/programming
Comment on: There's a guy over in /v/IAMA ATM claiming to write cryptography programs for the U.S. Gov.

His post reads like a stereotypical paranoid delusion.

I find it hilarious that people seem to believe him, even though he's offered absolutely no proof, or even any evidence that he is involved in what he says he is. I almost think people just want to believe these sorts of things these days (like governments are the most corrupt, evil things in the universe, and they are watching every single move every single person makes, for nefarious purposes). Sure, things are fucked up right now, but I don't know if they're as fucked up as some people seem to want to believe. Or maybe they are? I don't really know.

Edit:

Added to my spiel a bit.

13 22 Apr 2016 00:12 u/GrislyAtoms in v/programming
Comment on: Apollo 11 source code

This looks neat. Thanks for sharing.

0 01 Feb 2016 02:22 u/GrislyAtoms in v/programming
MIT App Inventor - A Scratch-like, web-based tool for creating phone apps
2 0 comments 20 Jan 2016 14:14 u/GrislyAtoms (..) in v/programming
Comment on: 97 Things Every Programmer Should Know - GitBook

Probably not, but there are still some good tips to be had in the book, as far as I could tell.

1 12 Nov 2015 06:50 u/GrislyAtoms in v/programming
97 Things Every Programmer Should Know - GitBook
15 3 comments 08 Nov 2015 00:49 u/GrislyAtoms (..) in v/programming
Comment on: Sorting Algorithm Music

I posted the source of this video a short while back, which has links to the CPP library used to generate these demos:

http://panthema.net/2013/sound-of-sorting/

Interesting stuff.

1 08 Nov 2015 00:39 u/GrislyAtoms in v/programming
Comment on: Side-by-side programming languages comparisons from Rosetta Code

Well it's good to know that the examples are shit. I wouldn't know, considering I don't know most of the languages there. And even the ones I do know, I don't know well enough to tell whether someone's implementation of something is shit.

I'm, personally, just happy if something I write works at all.

0 28 Oct 2015 06:21 u/GrislyAtoms in v/programming
Comment on: Side-by-side programming languages comparisons from Rosetta Code

I don't know much about either of those languages, so I don't know one way or the other. And I don't think the point of the site is to try to make any language seem better than another. It's just comparing them. Also, the code snippets are from Rosetta Code, and quite possibly aren't the best examples of how to code what they are trying to achieve.

And your version of what? That wasn't meant to be snarky, I honestly am not sure what you're referring to. Your code appears to be a simple example of object classes and inheritance?

0 27 Oct 2015 22:03 u/GrislyAtoms in v/programming
Side-by-side programming languages comparisons from Rosetta Code
6 6 comments 27 Oct 2015 21:29 u/GrislyAtoms (..) in v/programming
The Sound of Sorting - "Audibilization" and Visualization of Sorting Algorithms
3 0 comments 22 Oct 2015 10:16 u/GrislyAtoms (..) in v/programming
Comment on: You Might Not Need jQuery

It works essentially the same as Simple Jekyll Search. It just searches through a JSON file containing relevant data (title, post date, tags, category, etc) for each post/page on the site, and returns the entries best matching your query. My version is nowhere near as polished as Simple Jekyll Search, but it seems to work fine. Here is my little test page (the "post data" in this case is "fake", and is just a few adventure game titles):

https://trebek.github.io/gittest/

and the source:

https://github.com/Trebek/gittest/tree/gh-pages

The code is sloppy, as it's just a test, but I'm sure you can get the gist of it. I've cleaned it up a bit since uploading that version.

Also, I'm still learning, so cut me some slack if I've done some things the hard way, or just plain wrong.

Edit:

I may update the page sometime today, so it may change/break.

Edit 2:

Updated the page. Changed a number of things in terms of JS, and added a little more "post data". Seems to work on my laptop, using Firefox, and on my Android tablet, using Chrome.

0 21 Oct 2015 21:42 u/GrislyAtoms in v/programming
Comment on: You Might Not Need jQuery

Again, I'm not (and I don't think the page is) trying to deter anyone from ever using jQuery. I think the point of the page is that you may not need it if all you need to do is some simple tasks.

And I don't know enough about JS or web development in general to say whether JS is insane or not. I haven't really had any troubles grasping the basics. But that's just the basics. Maybe it gets stupid with complex projects.

1 20 Oct 2015 05:50 u/GrislyAtoms in v/programming
Plain JavaScript - The Vanilla JavaScript Repository
10 1 comment 20 Oct 2015 00:16 u/GrislyAtoms (..) in v/programming
Comment on: You Might Not Need jQuery

I just want to clarify that I am not against jQuery or anything like that (I've only dabbled with it myself). I just think learning how to do things without it is valuable for someone who is learning JS, like myself, and I found this site informative.

And personally, I am not too worried if someone with IE8 (or 9, 10, etc.) can't properly view a site I've made. I am not a web dev, or aspiring to be one, and don't really know shit about it, but I've never understood why people bend over backwards to provide support for browsers that refuse to adhere to web standards. Wouldn't it make more sense to just say "f--- 'em", so that people would have incentive to update/switch browsers? It's 2015... Is there really any good excuse for using IE? And those aren't rhetorical questions, I am genuinely curious.

1 18 Oct 2015 03:02 u/GrislyAtoms in v/programming
Comment on: You Might Not Need jQuery

Exactly. That is what I am trying to avoid, myself, learning JS. I want to learn how to use JS, not jQuery, Bootstrap, etc. I'll get to those afterwards.

1 18 Oct 2015 02:09 u/GrislyAtoms in v/programming
Comment on: You Might Not Need jQuery

Indeed. I'm not against jQuery, as it's a great library as far as I understand it, but like the site title says, you/I may not really need it. I haven't so far.

1 18 Oct 2015 01:11 u/GrislyAtoms in v/programming
Comment on: You Might Not Need jQuery

Came across this site while learning a bit of JavaScript, and looking for ways to do things without jQuery, which has become almost ubiquitous these days. Many, if not most JavaScript tutorials I've seen seem to rely on jQuery, and just assume you will be using it anyway -- and perhaps you should be -- but I felt like it was probably overkill for some of the stuff I wanted to try.

I've managed to write some relatively simple things without jQuery, such as a crappy, little static, client-side "search engine" for a Github Pages site, and a simple lightbox for displaying images and YouTube videos.

1 18 Oct 2015 00:40 u/GrislyAtoms in v/programming
You Might Not Need jQuery
17 16 comments 18 Oct 2015 00:33 u/GrislyAtoms (..) in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

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