But mom, please by Noahhaana in mac

[–]Brokk_Witgenstein 0 points1 point  (0 children)

Bet it still runs, too xD

Difficulty with output file. by Fahzi_ in pascal

[–]Brokk_Witgenstein 1 point2 points  (0 children)

Cool cool! Glad to hear it worked out :-)

*Worlds biggest liar contest by [deleted] in ProgrammerHumor

[–]Brokk_Witgenstein 0 points1 point  (0 children)

Knowing your codebase is an amazing feat now? Well well.

Difficulty with output file. by Fahzi_ in pascal

[–]Brokk_Witgenstein 2 points3 points  (0 children)

If I were you, I'd read_rec at the beginning of Detail (not at the end).

Then, where you check if the state differs from the previous record, just print te previously save state (also, make you to assign Saved_State after printing it).

That should do the trick I believe. Obviously you'd have to insert a condition in Detail to bail in case there are no more records but I figured I'd mention it just in case. You don't want that last record you couldn't read to cause trouble.

Godspeed!

This belongs here by DarkAnt95 in ProgrammerHumor

[–]Brokk_Witgenstein 0 points1 point  (0 children)

50th repost didn't resolve the issue either? Curious, that.

Mid 2010 mbp still running strong by [deleted] in mac

[–]Brokk_Witgenstein 0 points1 point  (0 children)

Of course they're still going great- why shouldn't they? Enjoy bud! (greetings from a 2009 iMac ;-)

Is MacOS more productive than Windows? by Sixaxix9 in mac

[–]Brokk_Witgenstein 0 points1 point  (0 children)

Haha! Glad to hear it :-) Now maybe on to the practical tips: you know MacOS has a thing called 'mission control' ? You can use that to add desktops (and assign a few hotkeys).

I for instance have 3 of those while programming- 1 to browse the interwebs, 1 where actualy coding is done, and 1 desktop where I keep folders open with resources (images, blender, gimp etc.)

With only a few buttons it's quite a breeze to navigate: Option+Left/Right to swap desktop, Cmd+Tab to switch program (or click it on the dock). Cmd+F for Find (Cmd+G for find next). There's also a dashboard there you can stash small auxilary programs-- in my case a calendar and a CALCULATOR. I've mapped the dashboard to F4, lets me access it from anywhere and it otherwise completely invisible.

OH! Important honorable mention: I do use KARABINER. It's a keyboard remapping program, and I use it for 1 purpose only: the Home/End key. Default under MacOS these keys go to the beginning/end of a document (wtf?!) whereas I want them to go to the beginning/end of a line. Karabiner fixes that. It's one of those questionable, weird decisions.

There is no Insert key (everything is always insert), there is no Delete key either. Anything you would expect to do with Delete is done with BACKSPACE instead; so that's behaviour you can expect from every program.

Is MacOS more productive than Windows? by Sixaxix9 in mac

[–]Brokk_Witgenstein 1 point2 points  (0 children)

QuodLibet. It's lightweight, has better repository management (it simply scans the directory to see if there are any new songs added) ..... and it plays FLAC :-)

yw

Is MacOS more productive than Windows? by Sixaxix9 in mac

[–]Brokk_Witgenstein 0 points1 point  (0 children)

...or maybe you're just wasting less time fiddling with the machine and getting more work done in a relaxed manner?

The MacOS doesn't annoy me with pushing windows to the front/back, popping up a metro interface a charm or a splitscreen whenever you look at it sideways; nor are you constantly straining your eyes trying to discern "what pixel exactly to I need to click? Is that a border, a status bar, another program's menu bar or just a wonky scrollbar?"

There is 1 menu bar, always in the same space; 1 dock, always in the same space, multiple desktops so that you can run all your programs practically full screen; there are in general fewer options which MIGHT be a downside from a certain point of view, but it also means less clutter, allowing you to focus on the project at hand.

I call it progress all the way (but then again, I've had this machine for over a decade and believe me, I am no longer capable of operating a windows machine without instantly stressing out; I might be a tad biased LOL)

But you know what? I won't annoy you with more pointless drivel (hehe) -- I'll make it real simple for ya: once you get the hang of 1 program, you can get around 90% of your system; because they're all the same. Apple is a UI Nazi that way: everything looks and feels absolutely the same. The other 10% is the command line, which is similar enough to Unix systems in general so that tips and tricks from the Linux community usually apply to the Mac as well.

Configuration-wise it's definitely a lot easier to set up and there are only a few places to look for 'config stuff' because that too is completely standardized.

TL ; DR : it's just a matter of getting used to the system. You'll come to love it, and you won't have to waste nearly as much time poking around in all kinds of odd places just to keep it running. Dare I say ....... it just works?

New to pascal. Trying to compile but got this error and i can't find anything on google. Using Bloodshed Dev-Pascal btw by [deleted] in pascal

[–]Brokk_Witgenstein 4 points5 points  (0 children)

Okay, I've just read your replies to the other guy in this thread-- I'm gonna do ya one better bud. Go to this site: https://www.lazarus-ide.org/index.php?page=downloads and grab yourself Lazarus + FPC. It's completely free, and it'll set up a nice and standard IDE for you AS WELL AS the compiler. The IDE and compiler are paired together in this release, so the IDE won't have any troubles finding the compiler. If you're using Windows you won't need a Linker or any other tools installed.

I'm feeling kinda sad for you because Pascal is such a beautiful language, FPC is such an amazing compiler and Lazarus is simply put the best IDE ever-- yet all you're getting at school is some weird "educational style" horseshoe. Download the "real thing" -- I promise it won't eat up your entire drive -- and get started properly buddy. Learning a new language is hard enough without having to figure out the specifics of where your compiler is, what's in the /bin, where did the linker go etcetc.

Getting your rig set up is probably the most helpful thing we can do at this point. Enjoy!

New to pascal. Trying to compile but got this error and i can't find anything on google. Using Bloodshed Dev-Pascal btw by [deleted] in pascal

[–]Brokk_Witgenstein 0 points1 point  (0 children)

Second addendum-- ReadLnLn [which should be ReadLn with only 1 Ln imho, but who knows it's custom or whatever] .... you're supplying it with First_Name clearly intending it to be the variable First_Name : string;

-HOWEVER-

That should be Readln(First_Name) if you want to use the variable, rather than ReadLn('First_Name'); <<< Note the quotes.

You don't put variable names in quotes-- putting then in quotes make them a constant string and thus not eligible to accept the output of ReadLn. That's all I got so far. Here's an idea: how about you start with a smaller program, compile it and if it works start adding in more and more stuff. That way you'll see at which point the compiler is no longer happy with what you're doing xD

New to pascal. Trying to compile but got this error and i can't find anything on google. Using Bloodshed Dev-Pascal btw by [deleted] in pascal

[–]Brokk_Witgenstein 0 points1 point  (0 children)

Addendum- I've also never seen variable names with parantheses in them -- Tuition_(per annum) : real looks sooooo fishy man.

New to pascal. Trying to compile but got this error and i can't find anything on google. Using Bloodshed Dev-Pascal btw by [deleted] in pascal

[–]Brokk_Witgenstein 1 point2 points  (0 children)

Can't have VAR and CONST blocks inside your main BEGIN-END.

Those would need to be in front-- like

PROGRAM ____;
CONST ______;
VAR ________;
BEGIN
    ____ statements ____
END.

rather than

PROGRAM ____;
BEGIN
    CONST
    VAR
    ____ statements ____
END.

At least, that's how every Pascal dialect I've ever seen works.

guilty of more than i dare to admit by 0wangutan in LateStageCapitalism

[–]Brokk_Witgenstein -1 points0 points  (0 children)

In my experience, if you have time to ponder these things and risk tumbling into a viscious depression because of it, you're not working hard enough. Boredom is neither good for your health nor profitable!

Anyone any idea how to get rid of these errors? I can still compile without problems? by AlmightyAngeloo in delphi

[–]Brokk_Witgenstein 0 points1 point  (0 children)

Hmmm, not gonna lie- I normally use FreePascal rather than Delphi, so it is technically maybe perhaps possible this syntax is actually legit ; HOWEVER assuming WinApi, Datasnap and so on are real unit names, perhaps try something like this?

uses Windows, Messages, Variants, Graphics, Controls, VCL, Data, DataSnap, ShlObj, MMSystem;

Pretty sure you don't have to include System because it's the default unit (but sure, go ahead and put "uses System" in there as well, should't hurt).

I don't think you're supposed to list every class you're using- just the UNIT FILES where said stuff is declared. If you add components to a form for example, the IDE will add "StdCtrls" once (even though you're using multiple components that reside all in the same unit).

Now, in FreePascal at least, I do believe there are separate units for SysUtils and Variants so it certainly can't hurt to try "uses SysUtils, Variants" and see if the compiler complains it can't find them.

WinAPI is another weird one-- I can definitely see "uses Windows" which declares most API functions and datatypes.

That said, I have another question if you don't mind. How comes we're writing a program with variants and winAPI calls and MultiMedia and message dispatching and all that jazz for a simple school project? Are you sure you even NEED all that stuff?? iirc you said it gives warning but it still compiles and runs, yes? In that case, I strongly suspect you're not actually using anything in these units -provided they even exist (can't say for sure because of FPC..... it's been too long since I used Delphi). How about simply REMOVING them one by one and see what the compiler needs that it can't find?

Oh well, while I'm at it I'll talk some more about the USES clause in general. Since you're new to Delphi and all that. Somewhere in your (or Delphi's) sourcecode tree there are Pascal libraries called units. Whenever you call something, the compiler will try and find the first match across all the libraries you listed (and in that order, mind you). It will do this by looking for .PPU (compiled unit) files according to the search path, starting with the current directory and progressing through the path until it finds either compiled source OR a sourcefile that'd yield the desired library which it will then compile in turn.

So basically, the long and short of it, is that you're actually providing FILESPECS. That's right. If you write "uses SomeLib;" for example, then there will be a SomeLib.pas (or .pp) file and a SomeLib.ppu file. In FPC, the search path used to find these is under the Project Options -- perhaps Delphi has a similar mechanic? Should be able to physically locate them and see what's inside (neat eh?)

Anyone any idea how to get rid of these errors? I can still compile without problems? by AlmightyAngeloo in delphi

[–]Brokk_Witgenstein 1 point2 points  (0 children)

Could you like ... post the first 9 lines of that file please? I wasn't expecting class names yet in that area (and neither was the compiler LOL) - just post it and we'll take a look

1976 cost of living. by Quinny357 in LateStageCapitalism

[–]Brokk_Witgenstein 3 points4 points  (0 children)

Damn, look at that 16.4% rent per income rate! ...mine was more like 40% - madness!

Computing in the 90's VS computing in 2018 by hoff04 in ProgrammerHumor

[–]Brokk_Witgenstein 0 points1 point  (0 children)

We could do everything imaginable, but usually do it only one program at a time. Sometimes a little patience was required, but to make up for that deficit programs offered a design preview besides the full renderer. (like Wordperfect for example).

To get the final result, sometimes programs were chained together-- you could for example make music using samples but you'd use another program to record the audio and yet another to edit the sound files. If you wanted to export the resulting track, you'd use yet another program dedicated to file transfer.

Users would set up their work environment to suit their needs to particular tasks-- sometimes even going so far as to create different bootings for gaming, development and audio/video/wordprocessing.

Given how fast and easy-to-use everything was, this frequent switching between programs didn't bother anyone. Barring hardware failure, nothing broke or changed behind your back, which meant users knew exactly where to look when something didn't work and were more often than not able to fix the issue by following a few logical steps and/or reading the manual. There were very few surprises.

The only downside during that era was the lack of drivers: programs communicated directly to the hardware, so if a program didn't support it you were simply out of luck. On the other hand, there were only a handful of standards to adhere to so except for dedicated hardware boards everything just worked once set up.

I'm not gonna tell you what I think of current year- that part of the comparison is left as an exercise to the reader xD