What code did you write today?

Page may contain affiliate links. Please see terms for details.

Bollo

Failed Tech Bro
Location
Winch
Yes I downloaded Visual Studio the other day and wanted to find a project to use as a learning curve.
I come from the days of text editors and compilers, and then Delphi 4 and Visual Basic in the MS Office suite. So with Visual Studio it just seems a case of finding what GUI elements will do stuff on autopilot (resizing and placement) and what I've got to do with donkey work in code (responses to redraw or button events and such). I'm writing for Windows 7, Server 2008 R2 and 10. It's all familiar and equally unfamiliar!

Just looking at Visual Studio Code. Looks like Notepad++ on steroids! I think I'll be downloading that soon ^_^
What goes around comes around - compilers are back in fashion. You'll see a lot of technologies with 'cli' knocking around, or 'command line interface'. You're right about VS Code, it's a hyper-code-aware text editor with pluggable bits for almost anything, often hooking into the clis. Despite the name, its a very different beast to Visual Studio.

Enjoy your coding. It can be rewarding and frustrating all at once. I'm ready to frisbee my laptop out of the window today (Angular again - hate it soooooooo much) , but another day I'll feel like I've sorted world peace.
 
OP
OP
Shut Up Legs

Shut Up Legs

Down Under Member
Now I'm doing some serious work on a major feature of my cycling logging app, namely: charts! :okay: I plan to implement various types of charts (line, scatter, bar, etc.) using the JFreeChart charting library for Java. I'm looking forward to when I get this feature working.
 
OP
OP
Shut Up Legs

Shut Up Legs

Down Under Member
Well, it's been a while since I posted to my coding thread :smile:
Amusingly enough, when I searched for this thread in the CC search feature using the search text "coding", it replied to me with a message "did you mean colinj?". :laugh: Have you hijacked the CC Search feature, @ColinJ ?

Anyway, I just did various geeky things to try to speed up Linux Mint on my desktop PC at home, because it was behaving fairly sluggishly. These included:
  1. removed a package called mlocate that was indexing files for the 'locate' command, only I don't use that command.
  2. installed a package called preload (referred to in its manual page as an "adaptive readahead daemon") which speeds up application startup times by trying to load them into RAM before they're started.
  3. updated /etc/sysctl.conf with the parameters: vm.vfs_cache_pressure=50, and vm.swappiness=10
  4. in System Settings | ... | Startup Services, turned off Bluetooth and Touchpad, since my desktop PC needs neither.
  5. turned off logging by the ufw firewall (I can turn it on again if I want to).
  6. wrote a script that starts my preferred web browser, Opera, and sets its disk cache directory location to under /run/user/1000, which conveniently enough, happens to be in RAM, and at the moment at least, Opera is running lightning fast, with pages loading in a split second! :hyper:
 

keithmac

Guru
About 10 years ago I extensively modified some ECU code and wrote my own closed loop idle valve and ignition timing routines etc. Also showhirned in a water injection fuel and ignition timing map.

All out of necessity to get my car with daft overlap cams running well.

Took about 6 to 8 months of learning assembly language (it was in .asm package I believe). Main restriction was the available memory on the board more than anything else.

Upshot of it all was as well as getting my car working properly I also supplied it to a bloke in Australia for his Mk1 Escort Rally car!.

Been meaning to have a crack at C++ just don't get time, would be a good skill to have.
 
OP
OP
Shut Up Legs

Shut Up Legs

Down Under Member
About 10 years ago I extensively modified some ECU code and wrote my own closed loop idle valve and ignition timing routines etc. Also showhirned in a water injection fuel and ignition timing map.

All out of necessity to get my car with daft overlap cams running well.

Took about 6 to 8 months of learning assembly language (it was in .asm package I believe). Main restriction was the available memory on the board more than anything else.

Upshot of it all was as well as getting my car working properly I also supplied it to a bloke in Australia for his Mk1 Escort Rally car!.

Been meaning to have a crack at C++ just don't get time, would be a good skill to have.
Java is also sought-after, and a hell of a lot easier to program in than C and C++. The problem with C and C++ is that dynamic memory management (i.e. stuffing about with pointers, etc.) is a nightmare.
 

mybike

Grumblin at Garmin on the Granny Gear
Well, it's been a while since I posted to my coding thread :smile:
Amusingly enough, when I searched for this thread in the CC search feature using the search text "coding", it replied to me with a message "did you mean colinj?". :laugh: Have you hijacked the CC Search feature, @ColinJ ?

Anyway, I just did various geeky things to try to speed up Linux Mint on my desktop PC at home, because it was behaving fairly sluggishly. These included:
  1. removed a package called mlocate that was indexing files for the 'locate' command, only I don't use that command.
  2. installed a package called preload (referred to in its manual page as an "adaptive readahead daemon") which speeds up application startup times by trying to load them into RAM before they're started.
  3. updated /etc/sysctl.conf with the parameters: vm.vfs_cache_pressure=50, and vm.swappiness=10
  4. in System Settings | ... | Startup Services, turned off Bluetooth and Touchpad, since my desktop PC needs neither.
  5. turned off logging by the ufw firewall (I can turn it on again if I want to).
  6. wrote a script that starts my preferred web browser, Opera, and sets its disk cache directory location to under /run/user/1000, which conveniently enough, happens to be in RAM, and at the moment at least, Opera is running lightning fast, with pages loading in a split second! :hyper:

Interesting things. I really need to delve deeper into Linux and when I get a new hard disk for my desktop I can see at least one thing there to do. Not sure whether I use 'locate', I'll have to look it up.
 
Too many variable writing code, unless you get a chance to code something
worthwhile, like 500.000 worthwhile, the rest is copy and paste.
 
Top Bottom