Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the format Name#Password
Subject
Comment
[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
File

Sandwich


C Newbie

View Thread Reply
- Sat, 06 Jun 2020 21:13:58 EST NygEZFtl No.38763
File: 1591492438364.png -(76257B / 74.47KB, 1200x1276) Thumbnail displayed, click image for full size. C Newbie
I learned the basics of C and I really want to get my hands dirty. However, I try to look at GitHub repositories and they look nothing like what I learned. Any good way to learn more than basic newbie syntax? Thanks, anon
>>
Fucking Goodville - Sun, 07 Jun 2020 05:58:27 EST gdSxk96e No.38764 Reply
>>38763
>>38763
C is just systems language. Download minimal OS for educational purposes https://github.com/mit-pdos/xv6-public try to add new functionalities. You can also call C from other language like python for things that need speed. I am making algotrading bot in python, i model on metatrader and chartsyone, so it should at least have GUI, and maybe own DSL. If you want you can help me with writing GUI or whatever
>>
Jarvis Crangerstone - Sun, 07 Jun 2020 16:59:03 EST MmoLooUZ No.38765 Reply
>>38764
Why do you need a GUI? Unless you're making a SaaS bot for normies, isn't it easier to keep it in the terminal?
>>
Sophie Drirrylure - Fri, 12 Jun 2020 06:08:26 EST gdSxk96e No.38775 Reply
>>38765
i want to write metatrader but for cryptocurrencies. For now i think i will go for tkinter+matplotlib, and llvm for writing embedded DSL

Made a new text board

View Thread Reply
- Fri, 30 Mar 2018 08:47:43 EST UVRoze3r No.37484
File: 1522414063536.png -(91555B / 89.41KB, 1280x1024) Thumbnail displayed, click image for full size. Made a new text board
Made a new text board tell me what do you guys think. I am a beginner coder
4 posts omitted. Click View Thread to read.
>>
Simon Soblingman - Sat, 14 Sep 2019 13:37:37 EST tIjRESAS No.38024 Reply
>>38023
Yeah, he should keep the field but change the greyed-out-text to "don't actually use this though"
>>
Ernest Nuzzleway - Thu, 11 Jun 2020 16:41:25 EST 21Mtqpwz No.38772 Reply
>>37484
Not too bad, just needs some style.
How is it moderated?
Any plans to add CAPTCHA?

Script-Oriented Game Design Patterns?

View Thread Reply
- Fri, 21 Feb 2020 15:01:57 EST T/9YlMHx No.38504
File: 1582315317098.jpg -(32683B / 31.92KB, 400x400) Thumbnail displayed, click image for full size. Script-Oriented Game Design Patterns?
I'm having trouble finding any good resources for how to design my game around scripts.

It's not hard to parse an XML file and get data from it. It's even easier to use Java's ScriptEngine on a JavaScript String... Heck, you can even use Java as it's own scripting language with runtime compilation/reflections.
Actually creating script files / reading the data isn't the problem I face.

Thanks to Unity's massive popularity: when I try to look up design conventions for using scripts (in games), all I get is Unity tutorials.
I'm sure there's an obscure video with 2 views on it which answer's my question, I'm skeptical YouTube's algorithm will ever deem me worthy of seeing it, however.

My question is how should I use scripts properly? How do I design my code around scripts?

My goal is to write as much of my game as possible with Scripts instead of code. I intend the actual executable to be more of an engine/interface as a go-between between my scripts and Java / the various frameworks I'm using. I am aware of the extra processing overhead scripts add, but I'll just deal with that in loading screens. Being able to add new scripts at runtime is cool but not mission-critical.

Right now it feels like I could do ANYTHING I want with scripts, and I mean... functionally speaking, yes. But that's exactly the problem. It's exactly how I felt when I first discovered a Singleton. Needless to say, if someone feels like they can do "literally anything" they want, it's a sure sign they're about to do something stupid.

Is there a set of conventions / best practices/design patterns specifically concerning an application that revolves around scripts? I have no idea where to begin.

Any reading/resources concerning Script-Oriented software design would be greatly appreciated, thanks!
6 posts and 1 images omitted. Click View Thread to read.
>>
Cornelius Gullystone - Wed, 01 Apr 2020 15:45:41 EST S0dGIlDe No.38545 Reply
>>38504

Jesus christ, I can't stop laughing at that cat.

Thanks, OP.
>>
Ian Duckdale - Thu, 02 Apr 2020 20:36:05 EST 5B13wTGc No.38548 Reply
>>38504
Scripts are still code. Maybe you meant data vs. code? Like a game which mainly consists of data and only a small amount of code?
>>
Priscilla Pisslebid - Wed, 03 Jun 2020 13:44:57 EST Jfj/g2sp No.38762 Reply
>>38504
what you're doing in java is configuration which is a component of making a scriptable engine. Java is actually an amazing language for configuration files, but that's only half of what you need for a scripting engine and java kind of sucks at the other half.

c/c++/c# tend to have very well supported set ups for being wrapped by scripting languages in such a way where the scripting language can sort of wrap the code sort of becoming the executor within its interpreter; while java has that too with jni, it's kind of ass in comparison.

Video killed the radiostar

View Thread Reply
- Sat, 30 May 2020 06:40:29 EST G9D/G2wm No.38756
File: 1590835229345.gif -(717929B / 701.10KB, 3600x1900) Thumbnail displayed, click image for full size. Video killed the radiostar
Animated gif first
>>
Hugh Gossleford - Sat, 30 May 2020 16:00:32 EST CbByaK3u No.38757 Reply
Oh hey it's Firefox 4. Haven't seen that in a while.

I created this social media site because I got kicked off Facebook

View Thread Reply
- Sun, 12 Jan 2020 08:52:35 EST SsATvW5N No.38374
File: 1578837155720.png -(370342B / 361.66KB, 1618x867) Thumbnail displayed, click image for full size. I created this social media site because I got kicked off Facebook
I created this social media site, sharfly.com

Free speech, no bans

check it out, tell me what you think.
5 posts omitted. Click View Thread to read.
>>
Hannah Pizzlepedging - Mon, 23 Mar 2020 14:50:02 EST 453xW4kH No.38541 Reply
>>38429
Because OP used a PNG instead of a vector graphic.
>>
Caroline Claystone - Tue, 05 May 2020 16:00:37 EST XD9Mb3w0 No.38718 Reply
>>38374
cool site but it sounds way too close to shartfly

work less

View Thread Reply
- Thu, 24 May 2018 21:38:13 EST c0hoKBBr No.37548
File: 1527212293108.png -(66024B / 64.48KB, 1269x598) Thumbnail displayed, click image for full size. work less
The book called 4 hour workweek inspired me to develop this system. What it taught me is having a business is good but having a formula for it is better. There's no doubt scaling with no resources is hard, but in a way that is the essence of scaling.

by the way, I hate my life and wish I had the guts to commit suicide
>>
Riker - Tue, 05 May 2020 01:57:31 EST KIo+iTpT No.38716 Reply
1588658251519.jpg -(71546B / 69.87KB, 618x412) Thumbnail displayed, click image for full size.
>>37548

I've used the quarantine as an excuse to edit my schedule and optimize productivity. If I wake up earlier I have more time to do things, but the lack of sleep will usually hit right around early evening which absolutely sucks.

Selling a service makes more sense to me than selling a product.

JS Canvas Laser Light 3D FX

View Thread Reply
- Fri, 05 Jan 2018 16:22:23 EST E0anbCqO No.37255
File: 1515187343914.png -(58209B / 56.84KB, 1000x1000) Thumbnail displayed, click image for full size. JS Canvas Laser Light 3D FX
<html>
<body onload="setInterval(doit,101);" bgcolor="black">

<canvas id="myCanvas" width="1000" height="1000" style="border:1px solid #black;">
Your browser does not support the HTML5 canvas tag.</canvas>

<script>
function doit(){
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");

var gradient = ctx.createLinearGradient(Math.random()*5000,Math.random()*4000, Math.random()*235, Math.random()*235);
gradient.addColorStop("10", "black");
gradient.addColorStop("0.5", "red");
gradient.addColorStop("1.0", "black");

ctx.fillStyle = gradient;
ctx.lineWidth = 10;
ctx.fillRect(100, 1000, 500,250);
}
</script>
</body>
</html>
<center>
<body bgcolor="black" onmousemove="setInterval('doit()',0.3);" onmousedown="drawe" onchange="drawe" ondoubkeclick="drawe;">
<video id="video" autoplay>

<canvas id="canvas" onchange="doit;" onchange="doit;" width="500" height="500" style="opacity:1.0;fillColor:none;">
<script>
var ii=1;
Comment too long. Click here to view the full text.
527 posts and 69 images omitted. Click View Thread to read.
>>
Hannah Miblingbury - Sat, 01 Aug 2020 01:24:49 EST gCG4yvFE No.38868 Reply
Check out edabit.com for algorithmic challenges!! I've got 3,175 points so far.
>>
JS AM/PM custom background/foreground color mod by BrU - Mon, 03 Aug 2020 22:19:14 EST 0vUsREHQ No.38876 Reply
<center>
<body onload="test();">

HEY,THIS IS A TEST!! - BrU

<script>
function test() {
var d = new Date();
var n = d.toLocaleTimeString();
if(n.indexOf("AM")){
document.body.style.backgroundColor = "white";
document.body.style.color = "black";
}
if(n.indexOf("PM")){
document.body.style.backgroundColor = "black";
document.body.style.color = "white";
}
}
</script>
>>
Nell Trotwater - Mon, 03 Aug 2020 22:21:17 EST 8L0F/N3I No.38877 Reply
Any modifications to this code would be appreciated.

bad at tech

View Thread Reply
- Thu, 16 Mar 2017 12:21:25 EST Zudx1stW No.36610
File: 1489681285293.png -(2817549B / 2.69MB, 1920x1080) Thumbnail displayed, click image for full size. bad at tech
I graduated with a liberal arts degree from a top private uni in the US a year ago- i originally got admitted for electrical & computer engineering (a top 10 program) and just struggled like hell in that major for 3 years before dropping into a (semi-useless) liberal arts major so i could gtfo with a degree. my gpa is sub >2.5

I got a shitload of C's, D's and F's in my engineering classes cause I was/am immature, had no discipline and never did my homework. i never moved past the sophomore level of courses, i.e I only got to signal processing, circuits, 3D calc, diff eq, thermo, and a bunch of 'intro' programming classes in C++, python. i did way better in my liberal arts classes cause they were mostly jokes. didn't make it to any junior 'specialized' work or any capstones.

now i'm at a small 'consulting' firm where i'm basically an excel monkey/note taking bitch making a bit below 59k a year. Yes i'm lucky to even have a job but i'm a paper pusher and I feel like I'm wasting my potential every day in an industry i give 0 fucks about

i always get an itch to self-study Ruby or something and try and get back into tech, or go back to grad school (dubious with my poopoo gpa) and try again at something 'useful'- even though I blew tits at anything i touched related to tech. at work I still read tech articles, I still have hordes of engineering textbooks i flip through from time to time cause i feel nostalgic.

Should I move on and leave tech behind since I suck at it or is there a chance to redeem myself?
11 posts and 2 images omitted. Click View Thread to read.
>>
David Greenlock - Wed, 11 Mar 2020 09:10:21 EST 7qc5XCxo No.38532 Reply
If you want to be good at programming you need to study math in college. I was bad in it so often get help with private tutor on https://www.ezymathtutoring.com.au/ because I need to preparing for tests and exams
>>
Archie Pickspear - Sun, 05 Apr 2020 23:52:48 EST KIo+iTpT No.38550 Reply
1586145168159.jpg -(22164B / 21.64KB, 400x400) Thumbnail displayed, click image for full size.
>>38532

I know some incredible programmers who absolutely despise math. Hell, one failed calculus 3 times and dropped out. Ended up getting a bachelor of arts. Makes way more than I do and can do some pretty nifty things with python and lisp. Dude is honestly a fucking wizard, though I think the reason folks make what they do in software is because more often than not they are pretty damn intelligent. They also happen to know the right people.

Math can make you a better programmer, it certainly helps cut down on time I spend developing an algorithm for something I want to design.
By no means should math be viewed as a pre-requisite to programming. I only say this because of the programmers I've met who are not that great at math, but can do things you would never have thought of doing.

tl;dr you can use math to make coding easier, you don't *need* mathematics to code. I'm high.


Spying aplication

View Thread Reply
- Mon, 20 Jan 2020 07:25:39 EST cC75b9f3 No.38403
File: 1579523139046.jpg -(31465B / 30.73KB, 720x1280) Thumbnail displayed, click image for full size. Spying aplication
Hello anons I'm looking for an android spying drug. FREE. It's supposed to be invisible and so I can download the files on my system.
I apologize in advance for the English

Resume/portfolio project ideas?

View Thread Reply
- Tue, 30 Jul 2019 16:20:32 EST R9gxgrMh No.37940
File: 1564518032365.jpg -(36331B / 35.48KB, 700x700) Thumbnail displayed, click image for full size. Resume/portfolio project ideas?
I just got my CS bachelors, and I'd like to get some personal projects under my belt before I apply to places.

What are some good ideas for software projects for a new graduate?
11 posts omitted. Click View Thread to read.
>>
Archie Pickspear - Sun, 05 Apr 2020 23:47:42 EST KIo+iTpT No.38549 Reply
1586144862159.jpg -(112099B / 109.47KB, 1300x975) Thumbnail displayed, click image for full size.
Make a version of chess that always wins.
Make a version of tic-tac-toe that always wins(should be easy with C++ I have to re-take calculus cus I suck at math, built this in about a week)
Games can be fun, open source stuff on github is probably better.
Surprised you don't have a job lined up, the way they sell these degrees seems like you should be shooing away recruiters the second your diploma is delivered.
>>
Alice Menkinshaw - Mon, 06 Apr 2020 07:55:39 EST ZvR7Ir/f No.38555 Reply
>>38549
You can't make a tic tac toe program that always wins. Always winning is not the same thing as never losing.

is this shit even worth it?

View Thread Reply
- Tue, 25 Feb 2020 18:19:47 EST /PxwMEAt No.38517
File: 1582672787720.jpg -(17495B / 17.08KB, 270x480) Thumbnail displayed, click image for full size. is this shit even worth it?
>be me
>study python for 6 months
>apply for entry level python dev job
>get called for interview
>interview goes great
>they like my personal projects
>"Hey anon, we have no python positions atm. Here's a PHP project. If you do it in 2 weeks you're hired"
>mfw I have to learn php, sql, jquery and js basics AND finish the project in 2 weeks

What should I do? I have no prior experience and I could really use this. Plus it's a work from home job
4 posts omitted. Click View Thread to read.
>>
Polly Clayhood - Wed, 04 Mar 2020 07:15:55 EST CzvlG8li No.38524 Reply
>>38523
Isn't Laravel just a RoR clone? Pretty sure OP already knows Django or something.
>>
George Paffingchock - Thu, 05 Mar 2020 21:18:09 EST 9IARvDIT No.38525 Reply
>>38524
I guess you could call all MVC libraries "clones" since they all implement the same basic functions. I mean, MVC as a design is pretty well standardized, so of course they'll all be similar.
>>
Cedric Wonningsetch - Sat, 07 Mar 2020 14:13:29 EST grW9fWKu No.38528 Reply
>>38517
there's no such thing as "study python", nor are there python programmers. some programmers (with a computer science degree or an equivalent hacking experience) just happen to like python, so they spend a lot of time with it, learning various nooks and crannies, thus becoming somewhat more valuable, when choosing between equivalents. some languages require "study", because underlying concepts that they come with might be novel, or esoteric (for lack of better word), that's why you sometimes hear programmers "study" haskell or apl or the like. if you're one of those people who, with no other programming experience, decided to learn python to get a lucrative programming job, you're in for a surprise.

This is a drug board. This is a shit post. I am rather up there on stimulants at the moment

View Thread Reply
- Wed, 05 Feb 2020 19:08:51 EST jlQ0sUgr No.38469
File: 1580947731116.png -(93460B / 91.27KB, 449x702) Thumbnail displayed, click image for full size. This is a drug board.  This is a shit post.  I am rather up there on stimulants at the moment
Hello /prog/

Being as I've spent my time since before the sun went down compulsively railing crushed stimulant tablets and fucking around with my computer, I just wanted to express that it's FUCKING FANTASTIC when some random internet stranger comes out of nowhere and manages to not only find the solution to a scripting problem that I have, because obviously I don't understand the script nearly enough, because obviously I only found the scripting software yesterday and to my knowledge it uses a unique scripting language, and BAM fucking solution to the problem. Here's the script, fucking run that shit and be amazed.

Oh I'm fucking amazed. I'M FUCKING SO AMAZED FUCKING KORNSOMETHINGINTERNET GUY FUCK THANK YOUUUUUUUU

Anyways. I just wanted to say it's great when people more knowledgeable with codes, scripts, and programming languages are nice enough to help those who are far less familiar or skilled with the craft.

FEELS GOOD.

LOOKS GOOD

WORKS GOOD

YOUR GOOD

fuck

LUV U 420CHANS PROGRAMMING PEOPLES
1 posts and 1 images omitted. Click View Thread to read.
>>
Ian Bardshaw - Mon, 24 Feb 2020 08:50:08 EST w3xYW6Kp No.38514 Reply
>>38469
I've used stims and programmed. I found the more drugs i took the more productive i was but the quality went down.
>>
Emma Pucklefet - Mon, 24 Feb 2020 12:41:09 EST UsKhzVYo No.38515 Reply
>>38514
isn't that kind of a paradox? Wouldn't quality be a modifier on productivity?
>>
Betsy Pablingwit - Tue, 25 Feb 2020 03:20:13 EST ulFtssol No.38516 Reply
>>38515
weed did the same for me.
i wrote easily a few solutions a session, but the next day i overlooked my commits and wondered why i'd implement these things overly complex.

but i got shit done.

Declaring a Constant with four potential values?

View Thread Reply
- Mon, 27 Jan 2020 18:55:33 EST cxiYXZa6 No.38430
File: 1580169333590.png -(8552B / 8.35KB, 1002x199) Thumbnail displayed, click image for full size. Declaring a Constant with four potential values?
In this homework assignment, I've hit a snag. We're working with superclasses and subclasses, and in one of the subclasses he wants us to declare the property as a contant. The trouble is, if I declare a constant property initialized to an empty string, I can't later assign a value to it, and there are four potential values. I get that he wants us to declare it as final with it's associated value, but buggered if I can figure out how to do it...
1 posts omitted. Click View Thread to read.
>>
Thomas Merringwedge - Sat, 01 Feb 2020 02:43:36 EST gTE5/eSF No.38442 Reply
>>38432

It's not intro. I figured it out. Declaring it as a property of the subclass then adding it as a parameter to the constructor allows me to assign it a value at the time of creation. My teacher is just being a weirdo. He likes to make us do ridiculous things.
>>
Walter Clayhood - Sat, 15 Feb 2020 04:13:00 EST vKYETtkX No.38495 Reply
>>38432
I think you actually just summarized how React works.
>>
Basil Sillernane - Mon, 24 Feb 2020 01:21:07 EST CXDAbT7D No.38511 Reply
>>38430
Your mistake was initializing the value as an empty string.

also, it shouldn't be static.

also you need to add a default constructor.

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