Leave these fields empty (spam trap):
You can leave this blank to post anonymously, or you can create a Tripcode by using the format Name#Password
[i]Italic Text[/i]
[b]Bold Text[/b]
[spoiler]Spoiler Text[/spoiler]
>Highlight/Quote Text
[pre]Preformatted & Monospace Text[/pre]
[super]Superset Text[/super]
[sub]Subset Text[/sub]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists


Discord Now Fully Linked With 420chan IRC

its not about the language, just the logic

View Thread Reply
- Mon, 24 Oct 2016 08:33:25 EST CRO9Njb3 No.36253
File: 1477312405053.jpg -(30129B / 29.42KB, 284x177) Thumbnail displayed, click image for full size. its not about the language, just the logic
Fuck moving shit from one language to another.

building a universal translator for this shit.
so im going to pass everything to, lets say a .txt file since it's universal as shit.

what's a comparable attempt at this? I need to see where they stopped on the path of it being a truely universal translation.
5 posts omitted. Click View Thread to read.
Phoebe Sammerstone - Mon, 24 Oct 2016 17:10:28 EST xLz8+Ihk No.36259 Reply
I used to work for a modernization/migration company.
We would take your existing source code, parse it into a language agnostic model, then convert it to a language specific model, then generate into the new language. For example we'd parse COBOL, put it in a transitional model, then translate that model to any other language you wanted, i.e. C++. The process seems like voodoo, and it basically fits your idea of a universal language. Trans-piling is something different.
Hannah Denkinfeck - Tue, 25 Oct 2016 21:12:18 EST fI0+sbkd No.36260 Reply
You do realize that all programs ultimately run on one of three(-ish) instruction sets, right? And that all three of those could be mapped to a turing machine?

What problem are you trying to solve?
Basil Blollypadging - Fri, 28 Oct 2016 22:41:35 EST gA3E5l0l No.36268 Reply
I am inclined to say that this is impossible. First of all, some languages have referential transparency while some do not, so any universal translator will need to "understand" what it's translating in a relatively deep way. For anything that touches memory directly you have not one model of computation but many depending on what type of machine the program is being run on and what state it's in. For purely functional languages you could spew out an equivalent program in a different purely functional language, but that program might not have anywhere near the same meaning to a human programmer, since in general there are many sources that compute the same function.

Actually, this might just reduce to the halting problem. If I had a universal program translator then it would send source code for a program that does not halt to source code for another (equivalent) program that does not halt. However, we know by the halting problem that there is no finite-length program which can make this determination in a finite amount of time, so the universal translator cannot exist.

Could i be a proffessional programmer?

View Thread Reply
- Tue, 18 Oct 2016 20:47:22 EST smMtB5CL No.36249
File: 1476838042100.jpg -(51659B / 50.45KB, 409x293) Thumbnail displayed, click image for full size. Could i be a proffessional programmer?
I work in a McJob. I had to control key lends of a building and send email when the badge arrives.
I made a program in Java, that reads the excel file .xlsx with the key numbers and name and put it on a sqlite3 db.
I don't have access to the enterprise database, so II use a webscrapping lib to get the name of the employee by the internal id.
It was possible to play with sql and get some usefull stuff as search for people or keys. All employee was registered with date/hour that got the key, when got it and when delivered.

About the badge, I made a program that reads the input of a badge reader, that I found on reception deskt. Remember I used a web scrapping lib? I got the number of the badge, figure out how to get the registry by the badge number, search the website of intranet got the name and email. Put the email on a sender list and set the program to open a new email, openniing the default email program, calling all to get the new badge with a default message. Much less painful than typing all emails.

I think that my MVC wasn't very good, but it worked like a charm.
The ugliest code was on webscrapping because it was try and error, since the site didn't named any tags!

Do you think I could work coding? I'm I good programmer? I do it just for fun and hobby.
I don't know how professional programmers job is.
In level of difficulty, what my program is?
Charlotte Dishkud - Wed, 26 Oct 2016 03:27:30 EST 27ni4VQG No.36261 Reply
> I think that my MVC wasn't very good
Does your program have a UI? Did you even try to separate the UI into a logical model, presentation and user interaction components?

If not, you're not doing MVC. That's not necessarily bad, if you don't have a UI, you don't need it anyway. Don't be a framework fanboy that has to tick off all the buzzwords on every project.

It sounds like you could work as a coder. I've worked with people who couldn't do as much on their own. Why not apply for a job as a junior/trainee programmer? You'll get trained much quicker in the trenches than experimenting on your own.


View Thread Reply
- Wed, 26 Oct 2016 19:49:39 EST ntxuGVLh No.36263
File: 1477525779957.jpg -(19272B / 18.82KB, 256x455) Thumbnail displayed, click image for full size. Facebook
How can I get someone to unblock me on Facebook.
The girl took my virginity I need to talk to her
Basil Bobbermotch - Wed, 26 Oct 2016 23:09:01 EST rBqpmoLn No.36264 Reply
You've never had sex don't fucking lie to us OP
Beatrice Buzzdock - Thu, 27 Oct 2016 09:49:24 EST CUa5MQaI No.36265 Reply
>The girl took my virginity I need to talk to her

Why, do you need her to give it back?

python noob

View Thread Reply
- Mon, 22 Aug 2016 04:28:41 EST w6YT+uIi No.36039
File: 1471854521962.gif -(2052859B / 1.96MB, 446x252) Thumbnail displayed, click image for full size. python noob
Give me a good noob programmers book to programming in Python 3

im rusty since i havent programmed since highschool

a link to a torrent or a link to an online site would be appreciated
6 posts omitted. Click View Thread to read.
Archie Bosslewell - Tue, 18 Oct 2016 02:50:22 EST fdIwp4pX No.36247 Reply
Python is an awesome language, however I would not wish it on my worst enemy as a first language. Yes, it's easy to understand and the syntax is logical. Yes, many things are vastly simplified by how easy they are to implement with just a few lines of code. However:

The community sucks, the tutorials suck, and the flexibility sucks.

Everybody wants to force on you their way of doing things but they never explain their reasoning(which is usually wrong or just a preference anyway).

Tutorials are bad for this reason also, and there's a very limited selection of them.

There's not much you can do on a learner's level besides print Fibonacci

Want to make a game? Learn new syntax using shit libraries
Want to make a gui? Learn new syntax using shit libraries.
Portability and multiple platforms? Nightmare.
Multiple "official" python versions = Libraries incompatible, tutorials inconsistent

If you get decent at it but don't want to use it for what it's designed for you are screwed and must learn another language again.
-Anyone can read your code
-Can't make modern games without severe performance issues and lack of support
-No multi threading
-Difficult to make portable

Honestly I could rant for hours. I also can't comprehend how anyone would want to learn something the "hard way" but that pretty much sums up the community for you
Esther Dipperhane - Tue, 18 Oct 2016 08:08:09 EST 9QSfnS0r No.36248 Reply
Python just isn't a language that is widely used for game development.

In scientific computing and somewhat in the web backend development things look quite different. For web development you can pretty much choose any language that is widely used enough.

Python is the best tool if you want to write your own command line utility and to generate and manipulate data that is stored to be used by another program.
Want to calculate a lookup table for rgb LEDs based on spectrometer images?
Want to parse a logfile for certain error messages?
Call a web API or scrape some data?
Need to generate some proprietary XML like file format?

All things python is simply the best tool.

If you want to use python in game development properly you can, using ctypes and C/C++. Write the game logic in python and the engine and game loop in C/C++.

I know there are weird people who are obsessed with it and use it for stuff it shouldn't be used like GUI programs and games. This also brings me to the performance "issue"...

The sane part of the python community doesn't do performance critical code in the language itself, but rather takes the approach I mentioned above.
But I think python is probably better equipped to make a game than most other languages except C, C++ and C#. Try to write a game in Go for instance...

PS: If you want just to develop games, like pythons syntax but don't want to deal with the issues associated with a hybrid design or performance issues take a look at

It has a pythonic scripting language built in, along with an editor and so on what game frameworks provide. It's no unity or unreal engine, but still...
Graham Hecklebury - Wed, 19 Oct 2016 10:31:07 EST CUa5MQaI No.36250 Reply
1476887467203.jpg -(42344B / 41.35KB, 960x540) Thumbnail displayed, click image for full size.

Invent Computer Games With Python is a pretty good book for beginners, and you can read it all online for free on their website (https://inventwithpython.com/chapters/). It's focused on writing simple games, but the stuff you learn can be applied to anything else, and writing games is a very rewarding way to learn programming IMO.

Now I'll start unnecessarily editorializing: Python is decent as an introductory language, just to learn the very basics of programming like conditional statements and loops and arrays, but if you already know that stuff (and it seems like you do) you should just jump right into something like C++ or Java because there's vital stuff you need to learn there that you won't learn with Python; dealing with static typing, memory management, optimization, etc. And as much as it tries not to be, Python is pretty lenient and lets you get away with doing a lot of stuff you shouldn't do and you'll end up having to get out of a lot of bad habits. Same thing happened to me when I first started programming in BASIC (I'm old) - when I moved on to Pascal and C++ I had to unlearn all the stupid things BASIC let me do.

Learning HTML/CSS/JS for UX/UI Design?

View Thread Reply
- Thu, 29 Sep 2016 21:17:39 EST Wfn6QLML No.36212
File: 1475198259621.jpg -(108407B / 105.87KB, 750x938) Thumbnail displayed, click image for full size. Learning HTML/CSS/JS for UX/UI Design?
Is it worth it to learn HTML/CSS/JS/jQ if i wanted to design user interfaces and do human-computer interaction shit as a career? Or could I get away with just Adobe Creative Suite and mockup tools like Balsamiq or Axure?
Emma Sottingpure - Thu, 29 Sep 2016 21:34:53 EST cyPUa9oe No.36213 Reply
In addition to being the lingua franca of structured design, you really don't want to lock yourself into a bunch of proprietary shit.
Molly Pecklefudge - Mon, 17 Oct 2016 17:44:53 EST bQyU08lo No.36244 Reply
> you really don't want to lock yourself into a bunch of proprietary shit

considering proprietary shit is the only thing used in industry, there's not really an issue with locking yourself in
Fucking Gockledirk - Mon, 17 Oct 2016 18:52:12 EST l4yKp8I5 No.36245 Reply
I wasn't aware UX was an industry unto itself.

D is cool

View Thread Reply
- Mon, 10 Oct 2016 19:38:59 EST CUa5MQaI No.36241
File: 1476142739772.png -(7964B / 7.78KB, 317x317) Thumbnail displayed, click image for full size. D is cool
I started messing around with D recently and I have to say, I really like it. I tried Go before this and it's pretty awful, it's like a dumbed down, verbose version of C for the retarded web 2.0 cloud computing generation. But D seems like it could be a worthy contender to C++ if people were interested enough in it (but unfortunately they're not and never will be)
Fucking Shakewell - Mon, 10 Oct 2016 20:07:48 EST WegIBFzD No.36242 Reply
I don't think anything will unseat C++ as the de facto systems-application language, but I have hopes for Rust. D doesn't look attractive to me.
Augustus Honeystone - Wed, 12 Oct 2016 17:55:44 EST CUa5MQaI No.36243 Reply

I would like Rust more if it didn't have weird syntax

Imperative was a mistake, OOP was a mistake

View Thread Reply
- Sat, 05 Dec 2015 21:40:59 EST RGQiywhV No.34856
File: 1449369659078.png -(19671B / 19.21KB, 400x300) Thumbnail displayed, click image for full size. Imperative was a mistake, OOP was a mistake
Haskell paves the way to the future, though cabal is shit. Something like backpack, which aims at a versioning system which accounts for library functionality rather than human hur-de-dur-I'll-just-increment-this-position versioning is the future. Stack is okay but curating is not good enough unless you have massive involvement.
33 posts and 2 images omitted. Click View Thread to read.
Charles Worthingham - Sun, 18 Sep 2016 22:57:24 EST RPCblsN0 No.36166 Reply
No. I'm not going to let you force that shitty meme.
Nell Sidgelan - Mon, 10 Oct 2016 19:10:42 EST CUa5MQaI No.36240 Reply
Haskell is for enthusiastic manbabies


View Thread Reply
- Fri, 23 Sep 2016 19:29:38 EST caKG/2O4 No.36196
File: 1474673378851.png -(286389B / 279.68KB, 395x575) Thumbnail displayed, click image for full size. Imageboard
I am looking to learn how to program an imageboard, I would love some help
1 posts omitted. Click View Thread to read.
Frederick Clayson - Wed, 28 Sep 2016 15:32:41 EST xLz8+Ihk No.36204 Reply
If you're taking input from users and putting it in a database you should bear this in mind;
the user cannot be trusted
the user is an enemy
the user wants to kill you, your family, your database and your webhost
the user wants to spread malware and cp
the user wants to spam their retarded message everywhere
Only when you truly see the user as your mortal foe will you know the user.

Object serialization in C++

View Thread Reply
- Sun, 02 Oct 2016 00:42:54 EST CUa5MQaI No.36217
File: 1475383374511.png -(7997B / 7.81KB, 634x396) Thumbnail displayed, click image for full size. Object serialization in C++
So I'm writing a tile-based platformer game with SDL. I just wrote a level editor, but the only thing missing is save functionality. I'm pretty new to serialization, the only time I've done it in the past was in a roguelike game I wrote in Python ages ago that used a YAML serialization library, and I've never done it in C++. Everyone says to use Boost, but I'm running Codeblocks on Windows and trying to compile it for that has been nothing but trouble, and all the information I've found on how to do it is out of date. Is there another decent library for serialization, preferably one that has pre-compiled builds available?
2 posts omitted. Click View Thread to read.
Angus Hiblingstone - Mon, 03 Oct 2016 11:40:38 EST 9QSfnS0r No.36224 Reply
Don't use codeblocks, if you want a decent open source c++ IDE get
qt creator
You don't have to use qt with it and are perfectly fine if you're just using SDL.

But honestly if you don't own a premium IDE package doing a full project in C++ is a pain. Why not make the game loop/engine in C++ and use Ctypes and python for the high level stuff. Even more so persisting and serializing data would make much more sense to be done in python.
Nathaniel Pedgechadging - Sat, 08 Oct 2016 04:11:24 EST 4AC8OQBZ No.36236 Reply
OP you should use Visual Studio now that you can get a free version of it that doesn't have all of the features stripped out. It's what most other people use to build large projects on Windows.
Shitting Bidgeridge - Sat, 08 Oct 2016 07:42:00 EST OheqWBBY No.36237 Reply

Oh, and don't forget to setup a CI environment, because that's also a must in large projects.

Xamarin app design

View Thread Reply
- Tue, 04 Oct 2016 17:38:21 EST ZvbVja19 No.36226
File: 1475617101731.jpg -(40442B / 39.49KB, 450x287) Thumbnail displayed, click image for full size. Xamarin app design
Hello, I've got a project as a paid job. It is basic Android app. I do it in Xamarin. I have no experience with Xamarin whatsoever, but I really need money so I take any jobs. Can you, guys, please help me out with some advice before I start doing it more deeply?

What's it used for?
10+- people in clubs scanning QR codes, that are uploaded to some internet storage in real time under their ID. Purpose is to determine how many QR codes were scanned in each club during the night.

-QR code scanes
code is compared to the list of possible codes and list of existing codes. Which means, code must match the list of possible codes and cannot be scanned more than once.
-code is then sent to some internet storage under curren ID

This is it. Of course I downloaded components for scanning QR codes, some uploader etc.. But I would like to ask some questions on best design possible used for this app.

Log in - Since there is only a certain number of accounts and we don't need any high security. (I higly doubt that some club bouncer would disassemble the app to do some scam) Is it enough and even the best way to authenticate via local database of users? Even so local that the login-password combos would be stored in code?

Now user is logged in and can start scanning.
Scan is successful -
  1. It needs to look up in some file, whether the code is valid. What way should I store the file? As JSON? XML? plain text?
  2. It needs to look up in some file, whether the code hasn't been scanned yet.

Is it wise idea to make some local storage of scanned codes and whenever it is possible (being online) to send it to the internet storage?

What is the best way to again to store already scanned codes? Again JSON XML?

And finally, what is the best way to send the data to the net storage? Should I send the whole file and replace it every time new scan is scanned?

I would be able, of course, to implement these things in some way or another to provide the functioning needed. This way, however, I would learn nothing, since I doubt I would use good/recommended/standard techniquies to do such basic work.

I will appriciate all the help :) Thank you very much for even reading the post :)
Basil Honeyham - Wed, 05 Oct 2016 14:10:35 EST 9QSfnS0r No.36227 Reply
>Hello, I've got a project as a paid job. It is basic Android app. I do it in Xamarin. I have no experience with Xamarin whatsoever,


Also the whole point of qr codes is to just have a short string of numbers, you "upload" the strings using a simple http request and the string url encoded to some endpoint. You store the string using SQL(ite).
The backend then replies with a 201 (created) message if you got an empty result to a simple query and a 409 (conflict) if it's already there.

Again, I'm baffled how you managed to convince somebody to pay you with that little knowledge.
Basil Honeyham - Wed, 05 Oct 2016 14:29:46 EST 9QSfnS0r No.36228 Reply
Also storing anything local doesn't make sense, you have to connect to a sort of service either way to know if the code has been scanned.

Codes can be just a random number stored in a table, but it might turn out that doing it the right way is just as easy (or easier) using
json web tokens
for instance.

I still can't fathom how somebody would pay somebody that clueless for an app that would basically replace 4-6 people's labor, worth 5 figures in reality.
George Nickleworth - Fri, 07 Oct 2016 15:39:03 EST xLz8+Ihk No.36235 Reply
And I wonder why there is so much shit software around...

KC Game Jam #01

View Thread Reply
- Thu, 06 Oct 2016 04:14:58 EST s5NLs05u No.36230
File: 1475741698202.gif -(2085974B / 1.99MB, 320x200) Thumbnail displayed, click image for full size. KC Game Jam #01
To: Amateur Gamedevs of 420chan
For: Training purpose

  • Develop the core gameplay of a game of Snake (aka. Nibbler, Blockade, ...).
  • The code should be in only one file
  • You should do it today.
  • Post the source ITT and at least a screenshot or a webm.
  • Rate others work and get your work rated
1 posts and 1 images omitted. Click View Thread to read.
Barnaby Hummerfick - Thu, 06 Oct 2016 07:11:00 EST hemOjN9f No.36232 Reply
1475752260394.png -(618980B / 604.47KB, 757x833) Thumbnail displayed, click image for full size.
Sidney Worthingbanks - Fri, 07 Oct 2016 11:15:56 EST LQVV02XK No.36234 Reply
Level height and width
A vector for the pellet
The lenght of the snake
An array of vectors for the snake

Read user input
Check if snake eating pellet
If eaten spawn new pellet and increase size of snake
Move the snake forward
Check if collision with itself or borders to end game

Draw snake, pellets and borders
GOTO Read user input

Looking to learn more.

View Thread Reply
- Sat, 03 Sep 2016 14:28:27 EST iP/biX2m No.36100
File: 1472927307091.jpg -(100601B / 98.24KB, 763x427) Thumbnail displayed, click image for full size. Looking to learn more.
I am a beginner when it comes to programming. I am familiar with python and some front end but I wanted to learn something I considered obscure. I wanted to Learn LISP. I come here to ask for any suggestions on where or what I should start learning next?

Pic related.
15 posts and 4 images omitted. Click View Thread to read.
John Givinghall - Sat, 24 Sep 2016 21:02:14 EST 9QSfnS0r No.36199 Reply
Yeah that's cool and all, but as I see there is really only documentation for how to use javascript native libraries. Documentation on other targets seems lacking or even missing ( in case of java ).
I guess if you are doing pretty basic stuff in the backend so you can only use haxe libraries and your own code is fine.
But then I can't imagine the community for haxe is large enough to provide that.

All in all I don't see a benefit to the traditional workflow where you write the frontend and backend code yourself besides not requiring any premium ide package.
Hannah Lightham - Sun, 25 Sep 2016 15:28:44 EST RufML0b0 No.36200 Reply
>Documentation on other targets seems lacking or even missing
Anyone can write a backend for Haxe, so some aren't as well documented. I've never found the documentation or support to be lacking thou, and I just crawl through source code if something isn't documented.

>I guess if you are doing pretty basic stuff in the backend so you can only use haxe libraries and your own code is fine
Not sure why you would assume that. I don't know how many libraries you normally use in a project, but I generally write most of my server code. The built in Java libraries are generally all I need.

>I don't see a benefit to the traditional workflow
Faster development? Macros? Pattern matching? Dynamic types and high order functions? Haxe has many improvements on its targets.

>besides not requiring any premium ide package
I'd avoid any language that needs an IDE. I rolled my own Emacs mode for haxe.
Jarvis Debberridge - Sun, 25 Sep 2016 20:27:27 EST 9QSfnS0r No.36201 Reply
I try to avoid any software development library that doesn't provide a complete official documentation.
That said I see there is a MVC web framework for haxe which I would look into if it had documentation beyond the autogenerated API docs. http://ufront.net/

If you think software development is anything but 80% reading documentation and 20% writing code you are delusional imho.

GCC diagnostics are great, but they are not enough

View Thread Reply
- Thu, 01 Sep 2016 08:05:00 EST 1Cry0o0J No.36092
File: 1472731500014.png -(224154B / 218.90KB, 604x540) Thumbnail displayed, click image for full size. GCC diagnostics are great, but they are not enough
Bugs found in GCC with the help of PVS-Studio: http://www.viva64.com/en/b/0425/
2 posts omitted. Click View Thread to read.
Isabella Dundlebot - Tue, 20 Sep 2016 18:57:40 EST CUeO0MBJ No.36185 Reply
  1. This post is advertisement.
  2. -Wall isn't enough anyway. I recently found out about -Wconversion, which is not covered by -Wall. Go read: http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
  3. PVS-Studio costs money (it even has licensing plans, yo!), GCC doesn't, and I'm only a hobbyist, probably like most posters here.
Isabella Dundlebot - Tue, 20 Sep 2016 19:02:18 EST CUeO0MBJ No.36186 Reply
Maybe pitting GCC vs PVS-Studio would be a good idea, anyway:
Let GCC try to find issues in PVS-Studio; then let PVS-Studio try to find issues in GCC.
Charles Pocklock - Tue, 20 Sep 2016 19:08:06 EST 4Qqv0Ibg No.36187 Reply
You just bumped an ad to point out that it's an ad. Great job. nb


View Thread Reply
- Sat, 23 Jul 2016 08:05:47 EST rK/rO6pk No.35894
File: 1469275547373.jpg -(106208B / 103.72KB, 1200x1628) Thumbnail displayed, click image for full size. Advice
I'm getting a small review done off my site (not very big or successful). It's made of angularJS, C# Web API and MS SQL Server (not very trendy). I'm being asked what the stack is.

Is it:

A: Bad for security reasons to tell them this.
B: Bad rep to admit it (since the cool kids don't use microsoft)

Thanks for any advice, really struggling with this one.
6 posts omitted. Click View Thread to read.
Charles Sanningbanks - Wed, 31 Aug 2016 14:22:59 EST mX05OzHB No.36088 Reply
Man I dont know.
Augustus Hennerfield - Wed, 14 Sep 2016 14:35:16 EST pJbbrFEH No.36150 Reply
1473878116090.jpg -(14563B / 14.22KB, 304x425) Thumbnail displayed, click image for full size.
Reported this stupid fucking idiot for shitting up OPs thread and no actions from staff.
I'm beginning to think bru is a troll mod.
pic related, it's bru / justin
Cedric Mushwudge - Thu, 15 Sep 2016 17:41:28 EST h666BHp6 No.36156 Reply
Don't hold out on us Bru are you going to get training with that lovely lady?

Report Post
Please be descriptive with report notes,
this helps staff resolve issues quicker.