[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]

/prog/ - Programming

Programming

Catalog  Archive

Name
Email
Subject
REC
STOP
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶Show post options & limits]
Confused? See the FAQ.
Options

Allowed file types:jpg, jpeg, gif, png, webp,webm, mp4, mov
Max filesize is16 MB.
Max image dimensions are15000 x15000.
You may upload5 per post.


File: 1458975406267.png (264.11 KB,1608x882,268:147,Coding.png)

f8ebc2 No.4058 [Open thread]

Hey /prog/,

Feeling down today about my major of choice. While most /g/ and /tech/ users are apes from poo-littered shitholes, I'm starting to think that I really have just fallen for the CS meme.

Somewhat sadly I fit the stereotype described in pic related to a T, but I have been very devoted to my studies since starting uni 2 and 1/2 years ago. I'd rather graduate with this degree than get weeded out in law or med school.

It remains my dream to become a computer wizard. Is it worth the effort, /prog/? Should I really be investing all of my time into this, or have I fallen for a meme profession in relatively low demand with high standards for new recruits?

3 posts omitted. Click [Open thread] to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

f8ebc2 No.4318

>>4058

Interesting read. I'm in a somewhat similar situation.

I'm doing a double bachelor, one in math and one in cs. I spent a lot of time learning to program and I've done some stuff I'm proud of, but I still feel like I'm far from a real computer wizard. I just don't know what I should do to achieve it. I've written lots of software in many different languages, and study the theory behind it at my university; what more can I do? Yet I remain a noob.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

f8ebc2 No.4321

>>4318

> Yet I remain a noob.

Keep doing more until you become a journeyman.

Also, learn English.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

f8ebc2 No.4616

>>4105

studying =! school

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

f8ebc2 No.4627

>>4318

>>4058

Daily reminder that computer science has nothing to do with computers. If you wanted to become a computer wizard, then you should have studied electronic engineering. Computer science is the study of computation. You study computer science because you want to know about theory of computation which requires zero access to a computer.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

f8ebc2 No.4630

If it's the only thing that makes sense for you to learn, do it. Become a computer wiz, use your degree to get employed (no degree is a serious disadvantage in the industry. Ridiculous? yes, but not all that they teach you at uni is useless).

The guy who wrote the OP pic is absolutely retarded. You don't just learn the syntax and are good to go. Programming is a craft, it is very common for a beginner to think that you can do EVERYTHING with your new knowledge, but as the years pass you realize that there is a lot to learn onwards. I've seen a lot of rookie code that looks like nothing but italian dinner.

You can become a computer wizard, and be much more competent than the bunch of mandeeps that line up for shitty monkey positions. There are a lot of mediocre people but there is always need for someone who knows the ins and outs of their trade.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



2fd575 No.4314 [Open thread]

I want to build libotr but under a different name, like libotr-asdf.so

How the fuck do I do this?

Spent a really long time googling, grep'ing and looking at .m4 and Makefile.am and whatnot but none of it makes sense.

here's the code, one start by running autoreconf -i or ./bootstrap:

https://github.com/off-the-record/libotr

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.


f8f14a No.4264 [Open thread]

what do i do? what books do i read? i think about learning c++, what book should i read for it?

7 posts and 1 image reply omitted. Click [Open thread] to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

f8f14a No.4290

>>4289

sticky seemed to be recommendations of math books for programmers (I've read a number of them) whereas I'm more looking for a programming book for mathematicians

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

f8f14a No.4293

>>4288

>is there a more general book I could read alongside, a guide to the structure and thinking process of programming?

Try this:

https://mitpress.mit.edu/sicp/

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

f8f14a No.4295

>>4293

yes! this is more what I was looking for thank you anon

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

f8f14a No.4312

>>4264

My reason for entering the world of programming was to make games, so I started with shittastical yet fun engines like GameMaker. Gave me a feel for what kind of structure a game program needs. Learning C# after having used gamemaker for years allowed me to see what object oriented programming and polymorphism really are. I am now trying to get my head around C++ OOP to develop in Unreal Engine.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

2c28c3 No.5269

Alacrity

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1451066758065.png (192.84 KB,3960x1500,66:25,IzendaWebLogos.png)

802dcb No.3764 [Open thread]

Using localStorage, the forum's content can be stored offline in the browser, which'd then get synchronized between online users with Peer.js.

There'd need a signalling server to introduce users to each other, but the server-side database load would be absolutely zero. And client-side localStorage has a limit of 10MB per domain, but I think that can be worked with if it doesn't grow excessively big, or maybe it can be circumvented somehow.

You could just go to your regular php file manager and upload an index.html, then go to yourhost.com/forum/ and the forum would be there, wholely javascript without page loads.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

802dcb No.3774

It can work!

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

802dcb No.3781

I had this idea because I wanted to make a browser-side BBCode parser. So users could edit it however they wanted easily.

So I needed an excuse…

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

802dcb No.4258

>>3764

I'd like to see you faggots make a peer to peer chan like this.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

802dcb No.4309

>>3764

Prepare to be exploited m80.

You're going to let the user keep his forum files locally and then upload them to your server temporarily? Gonna be rough keeping that from backfiring.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

802dcb No.4637

>>4309

This x 100

>>3764

OP I'd say that the best way to do something like this is to have the user keep an encrypted file container not with their own information but with bits and pieces of everyone else's info a-la bittorrent. However, JS would not be the language to code something like this in. You'd be better off with C, C++, or even Erlang since you're going to be doing distributed computing. Might also want to peek at Pony because it uses object capabilities and actors. Some very powerful stuff under the hood.

I had a similar idea to yours. Its doable but it will ultimately fail if you do it in Javascript. The other user is right. Allowing some dick to upload info to your server is asking for trouble. Information has to be securely stored, tamper proof, and safely transmitted.

In summation: a distributed/P2P system that requires the user to upload his information is a good idea if its done properly. The user must not be able to edit his own info except through a secure web interface. The data itself MUST be encrypted. Otherwise you need a way to sandbox each user's code.

Maybe check out Google's Caja? Its a variant of Ecmascript that uses capabilities.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1450105938013.png (106.97 KB,1649x494,1649:494,2015-12-13-130936_1649x494….png)

642eb3 No.3717 [Open thread]

 
var a0 = document.getElementsByTagName("audio")[0];
var a1 = document.getElementsByTagName("audio")[1];
var a2 = document.getElementsByTagName("audio")[2];
var a3 = document.getElementsByTagName("audio")[3];

How to do this in a for loop?

4 posts omitted. Click [Open thread] to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

642eb3 No.4257

File: 1464941590417.webm (7.83 MB,640x356,160:89,big guys song.webm)

>>3717

>var OPisAFaggot = document.getElementsByTageName("audio")

>access variables by doing OPisAfaggot[X], where X = what ever the fuck one you want

>>3719

To be fair I had this problem too when I was a noobfag. I wanted to create new variables using a for loop but didn't know how the fuck to do that. Now I know you can't and must use an array.

>>3801

Anon, please. I'm 99% sure getElementsByTagName returns a populated array so you don't have to declare an empty array and assign all of the elements using a for loop. What you're using isn't even Javascript you fag.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

642eb3 No.4282

File: 1466136757701.png (22.02 KB,564x482,282:241,H E L L O W O R L D.png)

>>3717

Hand copy this C code, compile it, then run it.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

642eb3 No.4303

>>4282

Is this a virus?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

642eb3 No.4304

>>4303

Please don't compile that code. It right fucked my computer… I'm getting a new HD today.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

642eb3 No.4527

>>4257

>To be fair I had this problem too when I was a noobfag. I wanted to create new variables using a for loop but didn't know how the fuck to do that. Now I know you can't and must use an array.

You're still a noob. Learn how namespaces work, idiot.

>>3717

Sure, OP. Other fags here don't seem to know how to answer basic questions because they're actually stumped as to how to perfectly emulate your code. It's easy, actually.


for (var x = 0; x <= 3; x++) window['a' + x] = document.getElementsByTagName("audio")[x];

After that code runs, you can then reference a0, a1, a2, and a3 as normal.

You might want to consider making a namespace of their own to go into though, that way they won't just be tossed into the same group as everything else.

>>3720

Get off this board, idiot. Don't answer questions if you don't know the answer.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



9c29d7 No.4273 [Open thread]

I often forget to put my values as const, and my code ends up as a mess of sometimes using const and sometimes not. To mitigate this, I was thinking of ways to have const be the default behavior.

I was thinking that it would maybe be possible to achieve this with preprocessor tricks. Something like this:


typedef int m_char;
#define int const char

#define mut(x) m_##x

int main() {
char x = 0;
mut (char) y = 0;

x++; // Error
y++;
return 0;
}

This, however, fails with types that use two keywords like "unsigned char".

Is there a way to have "unsigned m_char", or have "mut (unsigned char)" be translated into m_unsigned_char?

3 posts omitted. Click [Open thread] to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

9c29d7 No.4281

>>4276

Just build the habit of declaring variables const, man.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

9c29d7 No.4284

So… I decided to go full retard, if anyone's interested:

# This patch adds an option the the C compiler: -fdefault-const
# When this is enabled, everything will be a constant by default, and only be mutable if specified with the "mut" or "mutable" keyword.
# I tried to implement this the easiest way possible, by just flipping the const_p bit, and adding the keyword (reusing "mutable" from C++).
# Unfortunately, the fact that const_p is a single bit makes it hard to get everything right, as some checks assume that a keyword was specified only if the bit is on.
# As such, I had to flip the bit to "fix" a warning, but with a consequence: If -fdefault-const is enabled, it will only warn about "mut" being specified at the wrong places, and if not, it will only warn about "const".
# This was only tested and works with regular C. I haven't tested it on C++, so the option is unavailable there.
# The only effect this has on C++ is a new keyword: "mut", that means the same as "mutable".
# Also untested is compatibility with library headers such as libc.

--- gcc/c/c-decl.c
+++ gcc/c/c-decl.c
@@ -6128,6 +6128,7 @@

/* Type qualifiers before the return type of the function
qualify the return type, not the function type. */
+ type_quals ^= TYPE_QUAL_CONST * flag_default_const; // Only has effect on the warnings given by qualifying a function.
if (type_quals)
{
/* Type qualifiers on a function return type are
@@ -9499,6 +9500,7 @@
ret->expr_const_operands = true;
ret->typespec_kind = ctsk_none;
ret->address_space = ADDR_SPACE_GENERIC;
+ ret->const_p = flag_default_const;
return ret;
}

@@ -9546,6 +9548,11 @@
specs->const_p = true;
specs->locations[cdw_const] = loc;
break;
+ case RID_MUTABLE:
+ dupe = !specs->const_p;
+ specs->const_p = false;
+ specs->locations[cdw_mutable] = loc;
+ b
Post too long. Click here to view the full text.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

9c29d7 No.4296

>>4284

That's actually cool in a hacky way, but you are aware that that makes the language you are using not C, right? That will affect not only the code you write, but all imports as well, meaning many libraries will need their headers rewritten before you can use most of them.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

9c29d7 No.4301

>>4296

I'm aware. That's the reason for making it a compiler flag: if you want to compile external libraries alongside your own code, you just make them compile without that flag.

Library headers will need to be rewritten indeed, if they define structs you have to modify (as the members will be marked constant by default, and may need to be modified), or define any functions.

I'm writing an OS from scratch, so I don't feel the consequences as much as when working in an environment with tons of libraries.

Also, I updated it, fixed another warning related to functions with only void as a parameter.

http://chunk.io/f/4a714fd853a940dc9471c786121f6e04?lang=diff

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

9c29d7 No.4322

> #define int

Yes, this seems like a good idea.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1452039794302.jpg (63.98 KB,375x569,375:569,1440958394312.jpg)

a2d99b No.3813 [Open thread]

Thought I'd come here to ask:

I'm trying to self-teach programming so that I can find a job doing it, though the main reason is I want to write my own games since modern games are shit and I want more Tactics Ogre and Sengoku Rance.

I have begun by picking up "Java: A Beginner's Guide 6th Edition" by Herbert Schilt and am working through it now. I'm in chapter 4 now, which is about classes and methods, and it is making me really excited.

Question, though: am I learning the right language? What other steps should I take? I have looked at github and it very confusing to me, but then again I only started in earnest about a week ago. I know that it's possible to develop games with Java 8 and libgdx, but I also want to make sure I can get a job with the skills I'm learning because my current one (teaching middle school) is the worst fucking job on the planet.

If this isn't the right place to ask I'll delete my post,

9 posts omitted. Click [Open thread] to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a2d99b No.3825

>>3824

>Learn how to design and use databases

These are good bonus skills but there's such thing as DBA staff

>>3822

There's some development related stuff like version control, continuous integration and testing, you probably won't read about those in general books on Java. You're probably not expected to be familiar with those as a junior, but then again, those are good bonus skills. And unlike databases, those 100% will be useful.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a2d99b No.3827

>>3825

Most of the time, I've been expected to make the whole application. That includes designing the database.

Gotta agree on version control, though.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a2d99b No.3828

>>3824

>>3825

All right, I'm saving those posts even though I don't yet know what most of the acronyms stand for. It seems that some research is in order.

Thanks guys.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a2d99b No.4260

>>3815

I learned this summer that lectures are fucking shit after I started studying my text books due to getting less than desirable grades last semester.

With text books you get full explanations and good examples instead of shitty TL;DR's and scribbled slides/diagrams.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a2d99b No.4262

>>3813

If you'd like to learn game development, I would suggest C# (which is like Java) and then moving on to Unity.

If you want to learn Java for games, after your beginners book I'd suggest Data Structures and Algorithms in Java by Peter Drake. It's an intermediate Java book which teaches many of the data structures you'd use in game and the examples are simple games which makes it fun.

If you want a day job programming, your best bet is to learn C# or Java, and SQL Database programming, and Javascript/CSS/HTML. You'll probably have to learn a ORM or two, but please make it a point to learn how databases work, because I run into programmers now who are clueless about how a fucking SQL works because they use shit like Hibernate their whole lives.

Really, if you had to learn just one thing to get a job, I'd say learn SQL and SQL Server. It's been around forever, it really doesn't change, and if you're near a major metro area you should be able to find a job with that.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1458359244569.png (4.95 KB,230x230,1:1,haxe-logo.png)

177801 No.4036 [Open thread]

I have never in my life seen anybody talk about this programming language.

Personally I love it, since its syntax, libraries, and cross-compile features are amazing.

Is it just because it is unpopular or do I most people dont like it and thats why they dont talk about it.

2 posts omitted. Click [Open thread] to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

177801 No.4076

>>4073

So, uh, he said that the main problem of haxe is being unpopular and hxcpp having high bus factor, that's all?

Kikewheels, let me post

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

177801 No.4078

>Is it just because it is unpopular

I hadn't heard about this language before seeing this thread. So, probably.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

177801 No.4079

>Is it just because it is unpopular

I hadn't heard about this language before seeing this thread. So, probably.

Hotwheels pls, your site is defective

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

177801 No.4082

>>4076

> Is it just because it is unpopular

> that's all?

Also, the Haxe Foundation not making the necessary effort to spread the word that Haxe exist and is still actively being developed.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

177801 No.4261

>>4036

It's fine, it's quite comparable to Java/C# (statically typed, garbage collected, OOP) but has a nice macros and slightly less verbose syntax. I enjoyed it.

Have you guys used openfl with haxe and the html5 target?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



8bcfe2 No.4106 [Open thread]

What do you think the best language is to learn for beginners and why?

3 posts and 1 image reply omitted. Click [Open thread] to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

8bcfe2 No.4177

>>4154

Are you the guy that made this post?

https://8ch.net/prog/res/1410.html#4152

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

8bcfe2 No.4192

>>4106

C because you can learn it knowing EXACTLY what's going on, what the code is doing and what the hardware is doing.

Many people recommend super high-level object oriented stuff for a beginner language because supposedly it's easy to use and easy to understand because muh representation of reality with OOP.

Then they end up on stack overflow like "So I'm writing a hello world but the compiler says i'm missing an abstract virtual base private destructor".

In languages like python or c# it's easy to do advanced things with little code but you won't know how it all works and it will bite you in the ass later.

In C and perhaps other low level languages it's easy to know exactly what's happening.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

8bcfe2 No.4201

>>4154

was trying to start with this but a black screen with a ">" is the only thing I see. What do?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

8bcfe2 No.4204

>>4201

That's the REPL (read-eval-print loop). You type expressions in it, it evaluates and prints them.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

8bcfe2 No.4255

File: 1464881197929.jpg (523.87 KB,1400x1341,1400:1341,programming powerlevels.jpg)

anything that's functional and not object-oriented. some people are saying C and that's ok but in C you really spend more time learning C syntax than learning how to program, if you get my drift. I'd say learn racket/scheme/any form of lisp. and buy SICP, dont just try to read a pdf online or you won't actually read it

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1464130638999.jpeg (7.25 KB,300x300,1:1,and_the_syntax_is_ass_as_….jpeg)

fd6f4c No.4241 [Open thread]

hey /prog/

I'm having a little problem here that you can hopefully help me with, even though it's not a hundred percent programming related.

I have to do some frontend stuff in html and css. Thing is, last time I touched that shit was back in junior high, using macromedia dreamweaver. And doing the layout with tables and frames.

Do you guys know of any good html/css crash course tutorials, and maybe some useful "dev" tools?

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

fd6f4c No.4242

If you dont care too much about the look but more about the funcionality, I would recommend you to use bootstrap or another html/css framework, they make that shit way easier. Its mean using html with a css and js made by another person basically.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

fd6f4c No.4246

go to codeacademy and do the html/css course.

After that use bootstrap, foundation 6 or mdl.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1464058131846.jpg (93.22 KB,600x400,3:2,fattest-animals-8-Fattest-….jpg)

5c45e7 No.4235 [Open thread]

learning PHP right now. I bought some cheap ass kindle book and noticed that on the first chapter on variables it said that I add two variables like this

 $a = $b.$c;

the period acting as a plus sign. When I tried doing that all it did was put the two numbers next to eachother. After a quick google search I found that PHP actually uses "+" for adding and "." for concatenating strings, you know, the sane way.

Before I blast this author on Amazon for putting downright wrong information in their book, is there any reason the author would do this? is it something that was changed in PHP or is it downright wrong information?

pic unrelated

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

5c45e7 No.4236

File: 1464075041861.png (82.7 KB,255x213,85:71,1454853439273.jpg.png)

>PHP

Sounds to me like your book is about as good as the language itself.

By the way, here's a good place to learn all you need to know about PHP:

https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

5c45e7 No.4240

>>4236

I know but it's what Wordpress uses so I need to learn at least a little bit about it

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

5c45e7 No.4243

I know PHP. How do I git good with CURL. I want to make some webbots. Also know bit JS. I see lot of things on node, angular and shit should learn them to make some meme stuff?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



9da7eb No.4227 [Open thread]

I'm wanting to lean programming… what should i start with?

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

9da7eb No.4228

by lurking more

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

9da7eb No.4229

literally everything you need is on this board already. look for it

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1421771585722.png (1.55 MB,1366x768,683:384,1409640772840.png)

303b9f No.1082 [Open thread][Last50 Posts]

Share your unpopular opinions. I'll start:

I think Python is the best general purpose language if speed doesn't matters.
113 posts and 7 image replies omitted. Click [Open thread] to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

303b9f No.4196

Javascript isn't too bad, it's just being used for something it wasn't designed to do. Hence every update is essentially adding more duct tape to the shitshow that is the web.(not the mention the hell that is php)

Stallman has done good I'm glad for the GPL even if it's not for ever open source project but he is himself just mad, if he didn't start something he just doesn't like it and gets his followers to help.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

303b9f No.4216

There is a need in standard, high performance, dynamic language that also supports functional and OOP paradigms.

JavaScript perfectly fits this niche.

Modern javascript runtimes are very performant. V8 is the fastest compiler ever written for a dynamic language.

Using a modern dynamic functional garbage-collected language like JS speeds up development 3-5x compared to C/C++ (development time and source code size). No more segmentation faults, no more memory micromanagement. you write your application and it just werks.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

303b9f No.4217

My unpopular opinions are neatly summarized in this artwork https://ngnghm.github.io/

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

303b9f No.4218

Best technology always feels like magic.

Best programming language should be just a natural language interface allowing the programmer-user to specify his/her task to the machine and have it executed.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

1181d0 No.5236

revival post

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1463205569990.gif (5.33 KB,360x814,180:407,32colcode.gif)

a40d91 No.4202 [Open thread]

I wanteds a 4x6 screen mode for a bespoke Z80 board with a 128x96 bitmap display… The likes of the ZXSpectrum sites have code for it, but they made use of lots of register rolls (enough of which to be slow).

Eh, I don't have much experience with Z80 coding (I was a C64 kid..), but it was fun.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a40d91 No.4203

File: 1463205699299.jpg (32.55 KB,630x434,45:31,20160514-155421-dottorikun….jpg)

…and here's the results.

The board has only 512 bytes of free RAM, that's only enough for testing the core routines with a few characters.. It'll get the entire ASCII character set when it goes into eprom.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a40d91 No.4205

File: 1463249232826.jpg (105.49 KB,796x700,199:175,20160515-034502-dottori-wo….jpg)

>>4203

"Did I just write 920 bytes of code just to shitpost on my ex girlfriend?"

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

a40d91 No.4213

>>4202

Wow! Impressive project, thanks for the post.

Ever seen any c64 demos?

https://m.youtube.com/watch?v=LDQseYNBNRQ

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



File: 1449441840308.webm (4.31 MB,1280x720,16:9,bear.webm)

2e559b No.3683 [Open thread]

Hi /prog/.

I'm 17 and in my Senior year of high school. I love programming, and I recently scored an internship at a Software Engineering/Cybersecurity firm. I was one of 3 people out of the 10 that were interviewed that was chosen. I'm pretty pumped about it, and feel like this could lead to opportunities.

But I still want to talk to people that are farther than I am.

If this internship leads to some sort of apprenticeship that I can learn significantly more from, then I don't think I'm going to head straight to college to start working on a degree in Computer Science, mainly for debt and time-saving reasons.

However, if it doesn't, I'll probably head to community college and take classes to get knowledge and experience that I need to get started in the field.

What I want to know is, what did you do to get a career in programming going? What do?

I posted this on /g/ as well, but since this board is strictly about programming, I feel I should mention that I know HTML, CSS, some JavaScript and C++, and have been learning Java for a little bit (definitely looking like my favorite thing I've learned thus far).

2 posts omitted. Click [Open thread] to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

2e559b No.3697

>>3696

your physical appearance has an impact on how people perceive and interact with you. you will be perceived as a lazy slob if you're fat.

a high quality of life means you benefit from the positive feedback cycle, and in turn are presented with more opportunity.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

2e559b No.3730

File: 1450240962144.mp4 (287.3 KB,400x400,1:1,1449693708852.mp4)

>>3696

Lifting has to do with respect and improved brain functionality due to greater HGH/blood circulation. Your dick will get bigger with better blood circulation too.

We're all going to make it.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

2e559b No.4181

>>3683

>what did you do to get a career in programming going? What do?

I got an AS degree at school, and made some important networking connections with other students and professors.

I then got an opportunity to interview with a small company and they quickly offered me a 90-day internship, after which they offered me a full time salary as an engineer.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

2e559b No.4186

>>3696

If you spend all your time on a computer you'll eventually hate it. You need a hobby that doesn't involve the logical part of your brain.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

2e559b No.4199

>>3684

>>3730

To add to this, attempt to sleep eight hours a day, this ensures optimal problem solving ability.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



Delete Post [ ]
[]
[1] [2] [3] [4] [5] [6] [7] [8]
| Catalog | Nerve Center | Random
[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]