Author Topic: Programming Megathread  (Read 143923 times)

deep understanding
Please don't use buzzwords, they're basically meaningless. Save the buzzwords for your resume.

Please don't use buzzwords, they're basically meaningless. Save the buzzwords for your resume.
you're not my mom

the bleeding edge
hackable
AGILE

write a miraclesort implementation in your favorite language

rules:

1. check if array is sorted.
    a. if array is sorted, then we are done.
    b. if it isnt sorted, wait a while and check again.

a while ago I got bored at work and made two functions that that reminds me of
http://pastebin.com/Txff6SR5
the first one shuffles the list until it's sorted
the second one creates a list of integers by adding random numbers from one to the length argument, until all relevant numbers are added. then it sorts it and returns it

I don't actually need sleep() to be imported, I can't even remember why I did it in the first place

lmao something i need to brush up on!

i have a deep understanding in: bash, c++, ruby, and java. i've been trying to fit in time to download eclipse (or visual studio, i want something good but not bloated) and getting back into some small projects. i've done a class for c++ and i also want to start working seriously with that at one point but no clue where to start.

I use Eclipse
Its open source and has a metric assload of downloadable plugins in the marketplace


ugh
the only problem I have with pycharm is that you can't magically suppress inspections for just one piece of code
for example, I have a class that inherits another class, but I specifically do not want to call the parent class's __init__ method because the new one does the same thing but with some added functionality
but pycharm highlights the new init method, because calling the parent's init method is the normal thing to do. which is a small annoyance, but an annoyance nevertheless

the only option for preventing this is an ugly comment above the method definition, or to disable it globally
I guess it wouldn't hurt much to disable it, I'm sure I'd remember to do it in a normal situation, but idk

the point is, why not just keep a small database or something, with all the methods/functions/lines/whatever, and the inspection you want to suppress?
that would mean that other people wouldn't get that same suppression automatically, but I think that's okay, because this seems like the kind of thing that people would want to decide on an individual basis

a while ago I got bored at work and made two functions that that reminds me of
http://pastebin.com/Txff6SR5
the first one shuffles the list until it's sorted
that's actually called a bogosort and it has an average runtime of O(n!)

I knew it was already a thing, but I've only heard it called "stupid sort" before now
« Last Edit: December 13, 2015, 02:30:56 AM by Foxscotch »

the other day I was looking for something I could use to convert a bunch of markdown files that make up a collection of stories into a bunch of corresponding HTML files
I tried several tools, but I didn't quite like the way any of them did it. the most obvious problem was that the vast majority of existing static site generators are designed for blogs, and are mostly useless for anything else. Hyde almost seemed good enough... but the documentation for it was abysmal. so even the things I knew it could do, I had no idea how to make it do them

the obvious solution was to make my own
https://github.com/foxscotch/Ocelot
https://pypi.python.org/pypi/Ocelot
if you have python and pip (which usually comes with python), it can be installed very easily by typing "pip install ocelot" into a command line

I like it. it's not perfect, but it does what I need at this very moment. some of it is kinda cool in my opinion
if you know python and want to contribute, be my guest. pls be my guest. pls

until I write a real tutorial (which I do intend to do tomorrow), I guess you'd just have to figure it out on your own
an example config file would probably help so here's one

Your school should already have servers set up for the common source control stuff like git and mercurial. Spend an hour getting it up and running to avoid losing days worth of work.
very very late but
i managed to get gogs.io running in maybe 5 minutes, if you want to host something yourself
or really anyone


I started Salesforce development at work and it's kinda cool but kinda annoying.
It's cool how much you can do with customized code for an SaaS application not hosted by you.
But it's kind of annoying because the ide (eclipse with a custom plugin) does almost no error checking on its own, you have to upload the code to the server to compile to get anything. Then of course learning not only the custom language (Apex) but Salesforce in general, and how our software connects with it

currently working on an implementation of fractal terrain generation in C#, trying to get a 2d line to generate a backdrop for a sidescroller but the line segments always seem to progressively get more aggressive towards the end of the line, even though the same algorithm is used to process the segments from beginning to finish.  with 500 tests the results are the same, wondering what I did wrong :(

man i thought this thread already died
nvm
carry on