Better HN
topnewbestaskshowjobs
Log inSign up

Bambo

491 karma · joined Dec 9, 2011 (14y ago) · 73 submissions

From the UK!
Submissions

1.

Ask HN: What are your top 3 coolest software engineering tools?

2 points · by Bambo · 2y ago · 1 comment

2.

C++ Embedded template library – Heap free STL(github.com ↗)

2 points · by Bambo · 4y ago · discuss

3.

Show HN: Cppcheck – A tool for static code analysis(cppcheck.sourceforge.io ↗)

2 points · by Bambo · 4y ago · discuss

comment 4y ago · link · parent

I'm not sure if it is actively maintained, but another option for formatting C code is https://clang.llvm.org/docs/ClangFormat.html

5.

Show HN: GNU Indent – CLI code formatting(gnu.org ↗)

5 points · by Bambo · 4y ago · 3 comments

comment 4y ago · link · parent

A good way to learn more is to search for books about topics you're interested in e.g.; sqlite, zeromq, google testing libraries, opengl...

1. https://www.amazon.co.uk/Design-Patterns-Object-Oriented-Add...

2. https://www.oreilly.com/library/view/using-sqlite/9781449394...

3. https://www.glprogramming.com/red/

4. https://gameprogrammingpatterns.com/

5. https://zguide.zeromq.org/

7.

Ask HN: What happened to Modula-2 style modules?

2 points · by Bambo · 4y ago · 1 comment

8.

Show HN: NAppGUI – A Cross platform C GUI library(nappgui.com ↗)

4 points · by Bambo · 4y ago · discuss

comment 5y ago · link · parent

Looking for CC, advice and bugs!

10.

Show HN: Embedded Ring Buffer C++98(github.com ↗)

26 points · by Bambo · 5y ago · 37 comments

comment 5y ago · link · parent

"The Pragmatic Programmer" is much more detailed.

comment 5y ago · link · parent

A problem with the chunk system is that i don't know how big a chunk is at the time it's declared?

13.

Ask HN: Is memory fragmentation with C still an issue?

1 points · by Bambo · 5y ago · 2 comments

comment 5y ago · link · parent

I like to apply the things i learn and enjoy how they change the way i work or do tasks!

15.

Show HN: Doxy2plantuml - A tool to generate PlantUML from doxygen XML(github.com ↗)

4 points · by Bambo · 5y ago · discuss

comment 5y ago · link · parent

You can't implement the assertions at compile time since they are predicates evaluated at runtime. This is also why it is a performance hit on the code. I chose to use C-style macros because it is easier to debug than templates.

comment 5y ago · link · parent

Yes OLD stores the value of the variable before the execution of the DO.

This is because all of the virtual methods that have been overriden are visited in order to gather their assertions, but not execute their DO(). So while the assertions are being collected it also collects OLD() values which then can be tested at the called virtual method in its ENSURE() clause.

OLD is a complicated mechanism to implement in C++ because it requires saving current variables at the same time deferring the code to be executed.

Using the OLD() and ENSURE() (along with the other) clauses together, is described as subcontracting where subclasses "require less" and "ensure more", given in the https://en.wikipedia.org/wiki/Object-Oriented_Software_Const... (first edition).

comment 5y ago · link · parent

The exception throwing is a compromise, it allows you to view the stack trace in an IDE to find out which assertions failed.

19.

Show HN: Design by Contract (tm) – C++(github.com ↗)

6 points · by Bambo · 5y ago · 6 comments

20.

Hy – a Python based Lisp dialiect(github.com ↗)

12 points · by Bambo · 6y ago · 1 comment

comment 6y ago · link · parent

Imagination, to come up with solutions!

comment 6y ago · link · parent

I learnt C++!

23.

Grid – A Lua Game Engine(planimeter.org ↗)

177 points · by Bambo · 6y ago · 77 comments

24.

Show HN: I started making OOP design patterns learning C++(github.com ↗)

2 points · by Bambo · 6y ago · discuss

comment 6y ago · link · parent

What is your favourite design pattern?

26.

Easy 3D Framework for C#(github.com ↗)

3 points · by Bambo · 6y ago · discuss

27.

Pico is a spartan framework that allows you to write websites in C++ and C(github.com ↗)

3 points · by Bambo · 6y ago · discuss

comment 6y ago · link · parent

My windows defender indicates this has malware in the download.

29.

My first real app release, check it out(play.google.com ↗)

1 points · by Bambo · 6y ago · discuss

123